Does ChatGPT Generate Accessible Code? Investigating Accessibility Challenges in LLM-Generated Source Code
The DOI matches its Crossref record; 32 of the 32 references it cites were found in a registry or an index.
Abstract
Context. Large Language Models (LLMs) such as GPT-3.5 show great promise in generating source code based on natural language descriptions, which could significantly facilitate web development. However, the level of accessibility in generated code by these models is still unexplored. Objective. We empirically evaluate the accessibility of the web code produced by ChatGPT and its ability to fix accessibility violations in two contexts: its own generated code and open-source web code extracted from GitHub. Method. A total of 88 web developers used natural language descriptions to prompt ChatGPT to create websites with diverse characteristics and web elements. Such websites were assessed by two well-known accessibility checker tools, and ChatGPT was prompted to fix the accessibility violations found. Finally, the model was used to address accessibility violations in different open-source projects from GitHub. Result. The majority of websites (84%) generated by ChatGPT exhibited many accessibility problems. While the model demonstrates strength in adhering to certain accessibility guidelines, it struggles with specific aspects related to established accessibility principles. ChatGPT achieved a 70% success rate in rectifying the accessibility violations within its generated source code and a 73% success rate in fixing accessibility issues within third-party open-source project code. These findings can help developers to understand potential areas requiring intervention to ensure website inclusivity.
Overview
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
Claims other papers make about this one
Each is checked against this paper’s own text: does it say what the citing paper says it does?
In the citing paper
“Studies evaluating AI-generated web code have found accessibility violations in the large majority of outputs produced without explicit instruction [10-12], and this pattern extends to documents, images, and other content types.”
From A Protocol for Evaluating the Accessibility of AI-Generated Educational Materials: Prompt Configuration, WCAG-Derived Criteria, and Content Overload (2026) · cites this paper as [10]
In the citing paper
“However, a growing body of evidence indicates that generative AI tools do not meet these requirements by default.”
From A Protocol for Evaluating the Accessibility of AI-Generated Educational Materials: Prompt Configuration, WCAG-Derived Criteria, and Content Overload (2026) · cites this paper as [10]
In the citing paper
“Markets captioning, transcript, and audio-description tools explicitly as WCAG/ADA compliance aids, in- cluding a dedicated 'accessibility compliance videos' template.”
From A Protocol for Evaluating the Accessibility of AI-Generated Educational Materials: Prompt Configuration, WCAG-Derived Criteria, and Content Overload (2026) · cites this paper as [10]
In the citing paper
“three of the specialized authoring tools, Genially, Canva, and HeyGen, explicitly market built-in features meant to help a creator produce accessible output (a design accessibility checker, captioning/audiodescription templates).”
From A Protocol for Evaluating the Accessibility of AI-Generated Educational Materials: Prompt Configuration, WCAG-Derived Criteria, and Content Overload (2026) · cites this paper as [10]
In the citing paper
“Results under Condition A are consistent with prior evidence that generative AI tools reproduce, rather than correct, inaccessible practices absent explicit instruction [10-14].”
From A Protocol for Evaluating the Accessibility of AI-Generated Educational Materials: Prompt Configuration, WCAG-Derived Criteria, and Content Overload (2026) · cites this paper as [10]
3 more claims about this paper
Create a free account to see every claim other papers make about this one.
Citations
Cites
ChatGPT for Education and Research: Opportunities, Threats, and Strategies
Rahman, M. M., & Watanobe, Y. (2023) · Applied Sciences · doi:10.3390/app13095783 · Cited by 1,080
ChatGPT for Education and Research: Opportunities, Threats, and Strategies
Rahman, M. M., & Watanobe, Y. (2023) · doi:10.20944/preprints202303.0473.v1 · Cited by 1,080
Competition-level code generation with AlphaCode
Li, Y., Choi, D., Chung, J., Kushman, N., Schrittwieser, J., Leblond, R., Eccles, T., Keeling, J., Gimeno, F., Dal Lago, A., et al. (2022) · Science · doi:10.1126/science.abq1158 · Cited by 1,043
Competition-Level Code Generation with AlphaCode
Li, Y., Choi, D., Chung, J., Kushman, N., Schrittwieser, J., Leblond, R., Eccles, T., Keeling, J., Gimeno, F., Lago, A. D., et al. (2022) · arXiv · doi:10.48550/arxiv.2203.07814 · Cited by 1,043
Code Llama: Open Foundation Models for Code
Rozière, B., Gehring, J., Gloeckle, F., Sootla, S., Gat, I., Tan, X. E., Adi, Y., Liu, J., Sauvestre, R., Remez, T., et al. (2023) · arXiv · doi:10.48550/arxiv.2308.12950 · Cited by 531
IntelliCode compose: code generation using transformer
Svyatkovskiy, A., Deng, S. K., Fu, S., & Sundaresan, N. (2020) · Proceedings of the 28th ACM Joint Meeting on European Software Engineering Conference and Symposium on the Foundations of Software Engineering · doi:10.1145/3368089.3417058 · Cited by 474
Liu, J., Xia, C. S., Wang, Y., & Zhang, L. (2023) · arXiv · doi:10.48550/arxiv.2305.01210 · Cited by 390 · cited 1×
“…outputs in future interactions; ii) ChatGPT has shown outstanding performance in coding tasks compared to other LLMs in HumanEvalPlus benchmark [26]; iii) ChatGPT is available in a free version , which is suitable for our participants to conduct scalable experiments; and iv) ChatGPT has been…”
Automated Repair of Programs from Large Language Models
Fan, Z., Gao, X., Mirchev, M., Roychoudhury, A., & Tan, S. H. (2023) · 2023 IEEE/ACM 45th International Conference on Software Engineering (ICSE) · doi:10.1109/icse48619.2023.00128 · Cited by 256
Few-shot training LLMs for project-specific code-summarization
Ahmed, T., & Devanbu, P. (2022) · Proceedings of the 37th IEEE/ACM International Conference on Automated Software Engineering · doi:10.1145/3551349.3559555 · Cited by 240
Refining ChatGPT-Generated Code: Characterizing and Mitigating Code Quality Issues
Liu, Y., Le-Cong, T., Widyasari, R., Tantithamthavorn, C., Li, L., Le, X.-B. D., & Lo, D. (2024) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3643674 · Cited by 149
Research works printed but not linked: 10
- 2023. Stack Overflow Developer Survey 2023. https://survey.stackoverflow.co/2023/
- Josh Achiam Steven Adler Sandhini Agarwal Lama Ahmad Ilge Akkaya Florencia Leoni Aleman Diogo Almeida Janko Altenschmidt Sam Altman Shyamal Anadkat et al. 2023. Gpt-4 technical report. arXiv preprint arXiv:2303.08774 (2023). · arXiv
- Jinat ARAa and SL Cecilia. 2022. Artificial intelligence in web accessibility: potentials and possible challenges. Proceedings of IAC (2022) 173.
- Tom Brown Benjamin Mann Nick Ryder Melanie Subbiah Jared D Kaplan Prafulla Dhariwal Arvind Neelakantan Pranav Shyam Girish Sastry Amanda Askell et al. 2020. Language models are few-shot learners. Advances in neural information processing systems 33 (2020) 1877–1901.
- Mark Chen Jerry Tworek Heewoo Jun Qiming Yuan Henrique Ponde de Oliveira Pinto Jared Kaplan Harri Edwards Yuri Burda Nicholas Joseph Greg Brockman et al. 2021. Evaluating large language models trained on code. arXiv preprint arXiv:2107.03374 (2021). · arXiv
- Matjaž Debevc Tilen Škraba Bogdan Cerovac Ines Kožuh and Nataša Rajh. 2023. Monitoring website accessibility: Evaluating current approaches and a proposal for improvements. Journal of Accessibility and Design for All 13 2 (2023) 162–187.
- Barbara Leporini and Fabio Paternò. 2002. Criteria for usability of accessible web sites. In ERCIM Workshop on User Interfaces for All. Springer, 43–55.
- Fardin Ahsan Sakib Saadat Hasan Khan and AHM Karim. 2023. Extending the frontier of chatgpt: Code generation and debugging. arXiv preprint arXiv:2307.08260 (2023). · arXiv
- WebAIM. 2023. WebAIM Million - The 2023 report on the accessibility of the top 1,000,000 home pages. https://webaim.org/projects/million/
- Chunqiu Steven Xia and Lingming Zhang. 2023. Keep the Conversation Going: Fixing 162 out of 337 bugs for $0.42 each using ChatGPT. arXiv preprint arXiv:2304.00385 (2023). · arXiv
Cited by
Enhancing Accessibility in Software Engineering Projects with Large Language Models (LLMs)
Aljedaani, W., Eler, M. M., & Parthasarathy, P. D. (2025) · ACM Technical Symposium on Computer Science Education (SIGCSE) · doi:10.1145/3641554.3701841 · Cited by 41
Self-citationCodeA11y: Making AI Coding Assistants Useful for Accessible Web Development
Mowar, P., Peng, Y.-H., Wu, J., Steinfeld, A., & Bigham, J. P. (2025) · Proceedings of the 2025 CHI Conference on Human Factors in Computing Systems · doi:10.1145/3706598.3713335 · Cited by 31
“…by developers to generate UI source code from natu-ral language descriptions or tab completions [1, 16, 33, 46, 71, 95], but LLMs frequently produce inaccessible code by default [4, 52], leading to inaccessible output when used by developers without sufficient awareness of accessibility knowledge.”
Towards accessible website design through artificial intelligence: A systematic literature review
Vera-Amaro, G., & Rojano-Cáceres, J. R. (2025) · Information and Software Technology · doi:10.1016/j.infsof.2025.107821 · Cited by 25
Understanding developer challenges and trends in web accessibility: a stack overflow analysis
Alghamdi, A. M., Aljedaani, W., Jalali, H., Ludi, S. A., & Eler, M. M. (2024) · Universal Access in the Information Society · doi:10.1007/s10209-024-01174-3 · Cited by 24
“Similarly, other studies used artificial intelligence in the accessibility aspect to (1) analyze user reviews to understand the impact of updates Dos Santos et al [20], (2) sentiment analysis accessibility user reiew Aljedaani et al [3], and generate accessible code Aljedaani et al [8, 10].”
Self-citationAn Empirical Study on Evaluating Accessible Code Generation Capabilities of LLMs
Suh, H., Tafreshipour, M., Malek, S., & Ahmed, I. (2026) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3820782 · Cited by 25
“Aljedaani et al. [20] examined ChatGPT’s ability to generate accessible code and found that it often produces code with accessibility issues.”
Metadata
- Authors
- Aljedaani, W., Habib, A., Aljohani, A., Eler, M., & Feng, Y.
- Affiliations
- University of North Texas (US)
- Saudi Data and Artificial Intelligence Authority, Riyadh, Saudi Arabia
- Universidade de São Paulo (BR)
- Venue
- Proceedings of the 21st International Web for All Conference
- Publisher
- ACM
- Published
- 2024-05-13
- Pages
- 165-176
- OpenAlex
- W4403624926
- Semantic Scholar
- 6f1a23e6f26849d538e6642465ca3ccd7a155400
- Cited by
- 42
- References
- 23
- Citations by year
- 2026: 20 · 2025: 21 · 2024: 1
- FWCI
- 15.96
- Type
- conference paper
- Language
- en
- Open access
- closed
- Locations
- International Web for All Conference (W4A) (publishedVersion)
- Topics
- Physical Sciences › Computer Science › Information Systems › Software Engineering Research
- Social Sciences › Human Factors and Ergonomics › Digital Accessibility for Disabilities
- Physical Sciences › Computer Science › Software › Software Testing and Debugging Techniques
- Keywords
- ChatGPT, large language models, LLM-generated code, accessibility, code quality
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.