HTML tidy is a command line tool which automatically checks html/xhtml/xml pages for mistakes and tidy up sloppy editing into nicely layed out markup. The tool can be used for a very wide range of platforms.

Originally created by Dave Raggett and now maintained by the open source community at Source Forge.

HTML tidy is distributed at no charge for commercial or non-commercial use and made available under the W3C license.

The latest HTML tidy version can be downloaded from:

More information about HTML Tidy can be found at: (Legacy Website)

The HTML tidy configuration options quick reference can be found at:

Installing HTML Tidy 5.4.0 on macOS.


Operating system used
macOS (Sierra) 10.12.3

  1. Download and install HTML Tidy macOS Disk Image, eg: tidy-5.4.0-macosx.dmg
  2. More information, see the HTML Tidy Quick Reference at: