# HTML Tidy

> Mediated Wiki article. Canonical URL: https://mediated.wiki/source/HTML_Tidy
> Markdown URL: https://mediated.wiki/source/HTML_Tidy.md
> Source: https://en.wikipedia.org/wiki/HTML_Tidy
> Source revision: 1355551104
> License: Creative Commons Attribution-ShareAlike 4.0 International (https://creativecommons.org/licenses/by-sa/4.0/)

<!-- Please do not remove or change this AfD message until the discussion has been closed. -->
{{Article for deletion/dated|page=HTML Tidy|timestamp=20260522143841|year=2026|month=May|day=22|substed=yes}}
<!-- Once discussion is closed, please place on talk page: {{Old AfD multi|page=HTML Tidy|date=22 May 2026|result='''keep'''}} -->
<!-- End of AfD message, feel free to edit beyond this point -->
{{short description|Application for correcting invalid HTML}}
{{Refimprove|date=August 2012}}
{{Infobox software
| logo                   = <!-- File: -->
| screenshot             = <!-- File: -->
| caption                = 
| collapsible            = 
| author                 = [Dave Raggett](/source/Dave_Raggett)
| developer              = [HTML Tidy Advocacy Community Group](/source/htacg)
| released               = <!-- {{Start date|YYYY|MM|DD|df=yes/no}} -->
| discontinued           = 
| latest release version = {{wikidata|property|reference|P348}}
| latest release date    = {{start date and age|{{wikidata|qualifier|P348|P577}}}}
| programming language   = [C](/source/C_(programming_language))
| operating system       = {{#statements:operating system}}
| platform               = 
| size                   = 
| language               = 
| genre                  = [Library](/source/Library_(computing)), [Console Application](/source/Console_application)
| license                = {{#statements:copyright license}}
}}
'''HTML Tidy''' is a [console application](/source/console_application) for correcting invalid [HyperText Markup Language](/source/HTML) (HTML), detecting potential [web accessibility errors](/source/Web_accessibility), and for improving the layout and [indent style](/source/indent_style) of the resulting markup. It is also a cross-platform [library](/source/Library_(computing)) for [computer applications](/source/Application_software) that provides HTML Tidy's features.

==History==
HTML Tidy was developed by [Dave Raggett](/source/Dave_Raggett)<ref>{{cite web | url=https://www.w3.org/People/Raggett/tidy/ | title=Clean up your Web pages with HTML TIDY | first=Dave | last=Raggett | work=W3C.org | access-date=2015-02-12}} (Dave Raggett's legacy HTML Tidy page.)</ref> of the [World Wide Web Consortium](/source/World_Wide_Web_Consortium) (W3C). Later it was released as a [SourceForge](/source/SourceForge) project in 2003 and managed by various maintainers.<ref>{{cite web|url=https://tidy.cvs.sourceforge.net/tidy/ |title=SourceForge.net Repository - [tidy&#93; Index of / |publisher=Tidy.cvs.sourceforge.net |access-date=2015-04-25}}</ref>

In 2012, the project was moved to [GitHub](/source/GitHub),<ref>{{github|w3c/tidy-html5}}</ref> and maintained by Michael Smith, also of [W3C](/source/World_Wide_Web_Consortium),<ref>{{cite web | url=https://people.w3.org/mike//| title=Michael[tm] Smith | first=Michael | last=Smith | work=W3C.org | access-date=2015-02-12}}</ref> where [HTML5](/source/HTML5) support was added.

In 2015, the [HTML Tidy Advocacy Community Group](/source/htacg) (HTACG) was formed for management and development of HTML Tidy as a W3C Community Group.<ref>{{cite web|url=http://www.htacg.org |title=HTACG |publisher=HTACG.org |access-date=2015-04-25}}</ref><ref>{{cite web|author=Jim Derry |url=https://www.w3.org/community/htacg/ |title=HTML Tidy Advocacy Community Group |date=15 January 2015 |publisher=W3.org |access-date=2015-04-25}}</ref>

HTML Tidy source code is written in [ANSI C](/source/ANSI_C) for portability. Compiled binary files are available for a variety of platforms. It is available under the [W3C Software Notice and License](/source/W3C_Software_Notice_and_License), a permissive [BSD-style license](/source/BSD_licenses). Up-to-date versions are available as source code cloned from its GitHub [Git version control](/source/Git_(software)) repository, or in binary packages for multiple operating systems from its GitHub Releases repository.

==Features==

Examples of corrections to invalid or poorly constructed HTML:
* Reorder mixed-up tags
* Complete missing or mismatched end tags
* Add missing syntax elements (some tags, quotes, etc.)
* Report proprietary HTML extensions
* Change layout of markup to a predefined style
* Transform characters from some encodings into HTML entities

==See also==
{{Portal|Free and open-source software}}
* [Comparison of HTML parsers](/source/Comparison_of_HTML_parsers)

==References==
{{Reflist|30em}}

==External links==
* [http://www.html-tidy.org/ HTML Tidy Project Page]
* [https://github.com/htacg/tidy-html5 Current Source Code]
* [https://github.com/htacg/tidy-html5/releases Official Binary Releases]
* [https://tidy.sourceforge.net/ HTML Tidy Project Page] (legacy)
* [https://cgi.w3.org/cgi-bin/tidy HTML Tidy service]
* [https://gtidy.netlify.app/ GTidy - A GUI for HTML Tidy]
 {{Webarchive|url=https://web.archive.org/web/20021003090153/http://cgi.w3.org/cgi-bin/tidy |date=2002-10-03 }} Was an online version of HTML Tidy at the W3C. The W3C online tidy service was decommissioned on 29 November, 2017.

{{HTML editors}}

Category:Free software programmed in C
Category:HTML editors
Category:Software using the W3C Software Notice and License

---
Adapted from the Wikipedia article [HTML Tidy](https://en.wikipedia.org/wiki/HTML_Tidy) by Wikipedia contributors ([contributor history](https://en.wikipedia.org/wiki/HTML_Tidy?action=history)). Available under [Creative Commons Attribution-ShareAlike 4.0 International](https://creativecommons.org/licenses/by-sa/4.0/). Changes may have been made.
