# Install tidy-html5 with Homebrew, apt, dnf, winget, MacPorts, pacman, scoop, zypper

Granddaddy of HTML tools, with support for modern standards. Version 5.8.0 via Homebrew; verified from local package data.

## Install

```sh
sudo av install brew:tidy-html5
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install tidy-html5
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install tidy
```

  Evidence: MacPorts ports tree: www/tidy/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Debian apt (92%):

```sh
sudo apt install libtidy-dev
```

  Evidence: Debian stable package indexes: libtidy-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install tidy
```

  Evidence: Fedora Rawhide package metadata: tidy from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- pacman (92%):

```sh
sudo pacman -S tidy
```

  Evidence: Arch Linux sync databases: tidy from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install libtidy-devel
```

  Evidence: openSUSE Tumbleweed package metadata: libtidy-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

### Windows

- winget (92%):

```sh
winget install --id HTACG.tidy -e
```

  Evidence: Windows Package Manager source index: HTACG.tidy from https://cdn.winget.microsoft.com/cache/source.msix

- Scoop (92%):

```sh
scoop install main/tidy
```

  Evidence: Scoop official bucket manifest trees: bucket/tidy.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

## Package facts

- **Package key:** brew:tidy-html5
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/tidy-html5>
- **Version:** 5.8.0
- **Source summary:** Granddaddy of HTML tools, with support for modern standards
- **Homepage:** <https://www.html-tidy.org/>
- **Repository:** <https://github.com/htacg/tidy-html5>
- **Upstream docs:** <https://www.html-tidy.org/documentation>
- **License:** Zlib
- **Source archive:** <https://github.com/htacg/tidy-html5/archive/refs/tags/5.8.0.tar.gz>
- **Generated:** 2026-07-08T18:08:21+00:00

## Executables

- tidy (cli)
- tidy (alias)

## Build dependencies

- cmake

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 5.8.0
- Local data: ok
- Upstream repository: https://github.com/htacg/tidy-html5
- Upstream latest detected: 5.8.0 (current)
- info: No package-manager update timestamp was available.
## Project history and usage

HTML Tidy is a long-running command-line and library project for cleaning, diagnosing, and pretty-printing HTML, now maintained by the HTACG Tidy HTML Project with HTML5 support.

### Project history

The official HTML Tidy site traces the project to Dave Raggett of the W3C in the early Web era. Raggett's original W3C page describes Tidy as a free utility for automatically fixing common HTML mistakes, cleaning up hard-to-read output from editors and converters, and identifying accessibility issues that need author attention.

After Raggett's original work, maintenance moved to volunteers at tidy.sourceforge.net, where the project became a C library and kept pace with evolving standards. The official history says W3C members renewed interest in 2011 and forked the project to GitHub with HTML5 compatibility, then in 2015 HTACG formed to revitalize Tidy after a non-maintained period.

HTACG's repository carries the modern `tidy-html5` source and describes the project as the granddaddy of HTML tools with support for modern standards. The repository metadata shows the GitHub project dating to 2011, matching the official history's GitHub-era transition.

### Adoption history

HTML Tidy has unusually broad package-manager and platform history for a web utility. The official site says many operating systems already ship a `tidy` command, though often too old for HTML5, and lists package-manager installs for macOS through Fink, Homebrew, and MacPorts plus Windows through Chocolatey.

The input package facts show a wider current packaging footprint across Homebrew, Debian/Ubuntu, Fedora, Arch, MacPorts, Scoop, winget, and openSUSE-family packages, reflecting Tidy's role as both a CLI utility and `libtidy` development dependency.

### How it is used

Users run `tidy` to clean malformed or messy HTML, format output, flag errors and warnings with line and column information, and modernize documents produced by WYSIWYG editors or office exporters. Developers can also embed `libtidy`, whose official site describes APIs for parsing HTML into a DOM-like tree, cleaning and diagnostics, traversing nodes, and pretty-print output.

The original W3C page also documents Tidy's Unix-tool-style appeal: it can be used locally as a binary, as source code, and historically through online services, making it useful in editors, build scripts, validation workflows, and conversion pipelines.

### Why package nerds care

For package nerds, tidy-html5 is a good example of an old web utility whose name, fork history, and packaging split matter: users may see `tidy`, `tidy-html5`, `libtidy`, or development packages depending on the platform.

It is also historically important because it bridges early W3C-era authoring tools and modern HTML5-oriented command-line workflows. The package remains useful precisely because it is boring, scriptable, and available almost everywhere.

### Timeline

- 1998: HTML Tidy copyright history begins in the project license files.
- 2000: Raggett's W3C page had already handed maintenance to SourceForge volunteers.
- 2011: W3C members forked Tidy to GitHub for renewed work and HTML5 compatibility.
- 2015: HTACG formed to revitalize the project and received W3C project ownership.
- 2024: HTACG tidy-html5 repository metadata shows continued GitHub activity.

### Related projects

- Related project surfaces include Dave Raggett's original W3C Tidy page, the SourceForge-era tidy project, the W3C GitHub fork, the HTACG tidy-html5 repository, and downstream packages named `tidy`, `tidy-html5`, or `libtidy`.

### Sources

- <https://api.github.com/repos/htacg/tidy-html5>
- <https://api.html-tidy.org/tidy/tidylib_api_5.1.25/history.html>
- <https://github.com/htacg/tidy-html5>
- <https://github.com/htacg/tidy-html5/blob/next/README/LICENSE.md>
- <https://www.html-tidy.org/>
- <https://www.w3.org/People/Raggett/tidy/>
- input source_facts.package-manager


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** tidy-html5
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## Other Package-Manager Records

- Debian apt - libtidy-dev - 2:5.8.0-2: normalized package name match | Debian stable package indexes: libtidy-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | HTML/XML syntax checker and reformatter - development | https://www.html-tidy.org/
- Debian apt - libtidy58 - 2:5.8.0-2: normalized package name match | Debian stable package indexes: libtidy58 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | HTML/XML syntax checker and reformatter - shared library | https://www.html-tidy.org/
- Debian apt - tidy - 2:5.8.0-2: normalized package name match | Debian stable package indexes: tidy from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | HTML/XML syntax checker and reformatter | https://www.html-tidy.org/
- Ubuntu apt - libtidy-dev - 2:5.6.0-11ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: libtidy-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | HTML/XML syntax checker and reformatter - development | https://www.html-tidy.org/
- Ubuntu apt - libtidy5deb1 - 2:5.6.0-11ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: libtidy5deb1 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | HTML/XML syntax checker and reformatter - shared library | https://www.html-tidy.org/
- Ubuntu apt - tidy - 2:5.6.0-11ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: tidy from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | HTML/XML syntax checker and reformatter | https://www.html-tidy.org/
- dnf - tidy - 5.8.0-13.fc44: normalized package name match | Fedora Rawhide package metadata: tidy from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Utility to clean up and pretty print HTML/XHTML/XML | http://www.html-tidy.org/
- winget - HTACG.tidy: normalized package name match | Windows Package Manager source index: HTACG.tidy from https://cdn.winget.microsoft.com/cache/source.msix
- MacPorts - tidy: installed executable or alias match | MacPorts ports tree: www/tidy/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- dnf - libtidy - 5.8.0-13.fc44: installed executable or alias match | Fedora Rawhide package metadata: libtidy from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Runtime library for tidy | http://www.html-tidy.org/
- dnf - libtidy-devel - 5.8.0-13.fc44: installed executable or alias match | Fedora Rawhide package metadata: libtidy-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Development files for tidy | http://www.html-tidy.org/
- pacman - tidy - 5.8.0-3: installed executable or alias match | Arch Linux sync databases: tidy from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A tool to tidy down your HTML code to a clean style | https://www.html-tidy.org/
- zypper - libtidy-devel - 5.8.0-2.3: installed executable or alias match | openSUSE Tumbleweed package metadata: libtidy-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Development files for libtidy | https://github.com/htacg/tidy-html5
- zypper - libtidy58 - 5.8.0-2.3: installed executable or alias match | openSUSE Tumbleweed package metadata: libtidy58 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Library to Clean Up and Pretty-print HTML, XHTML or XML Markup | https://github.com/htacg/tidy-html5
- zypper - tidy - 5.8.0-2.3: installed executable or alias match | openSUSE Tumbleweed package metadata: tidy from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Utility to Clean Up and Pretty-print HTML, XHTML or XML Markup | https://github.com/htacg/tidy-html5
- zypper - tidy-doc - 5.8.0-2.3: installed executable or alias match | openSUSE Tumbleweed package metadata: tidy-doc from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Documentation for tidy and libtidy | https://github.com/htacg/tidy-html5


## Related links

- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [cmake](https://www.automicvault.com/pkg/brew/cmake/) - Build dependency declared by Homebrew.
- [lgogdownloader](https://www.automicvault.com/pkg/brew/lgogdownloader/) - Popular package that depends on this formula.
- [php](https://www.automicvault.com/pkg/brew/php/) - Popular package that depends on this formula.
- [php@8.1](https://www.automicvault.com/pkg/brew/php-8-1/) - Popular package that depends on this formula.
- [php@8.2](https://www.automicvault.com/pkg/brew/php-8-2/) - Popular package that depends on this formula.
- [php@8.3](https://www.automicvault.com/pkg/brew/php-8-3/) - Popular package that depends on this formula.
- [php@8.4](https://www.automicvault.com/pkg/brew/php-8-4/) - Popular package that depends on this formula.
- [tracy](https://www.automicvault.com/pkg/brew/tracy/) - Popular package that depends on this formula.
- [js-beautify](https://www.automicvault.com/pkg/brew/js-beautify/) - Shares av.db curated category or tags: cli, developer-tools, formatter, html, web-development.
- [minify](https://www.automicvault.com/pkg/brew/minify/) - Shares av.db curated category or tags: cli, developer-tools, html, web-development.
- [superhtml](https://www.automicvault.com/pkg/brew/superhtml/) - Shares av.db curated category or tags: cli, developer-tools, formatter, html, validator.
- [templ](https://www.automicvault.com/pkg/brew/templ/) - Shares av.db curated category or tags: cli, developer-tools, html, web-development.
- [addons-linter](https://www.automicvault.com/pkg/brew/addons-linter/) - Shares av.db curated category or tags: cli, developer-tools, web-development.
- [angular-cli](https://www.automicvault.com/pkg/brew/angular-cli/) - Shares av.db curated category or tags: cli, developer-tools, web-development.
- [commandbox](https://www.automicvault.com/pkg/brew/commandbox/) - Shares av.db curated category or tags: cli, developer-tools, web-development.
- [css-crush](https://www.automicvault.com/pkg/brew/css-crush/) - Shares av.db curated category or tags: cli, developer-tools, web-development.

## Combined YAML source

View the package source record on GitHub. [combined/tidy-html5.yml](https://github.com/automic-vault/db/blob/main/combined/tidy-html5.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
