macOS
brew install html2textlocal Homebrew formula metadata
sudo port install html2textMacPorts ports tree · textproc/html2text/Portfile · source: api.github.com
brew
Advanced HTML-to-text converter. Version 2.4.0 via Homebrew; verified from local package data.
install
brew install html2textlocal Homebrew formula metadata
sudo port install html2textMacPorts ports tree · textproc/html2text/Portfile · source: api.github.com
sudo apk add html2textAlpine Linux edge package indexes · html2text · source: dl-cdn.alpinelinux.org
sudo apt install html2textDebian stable package indexes · html2text · source: deb.debian.org
sudo dnf install python3-html2textFedora Rawhide package metadata · python3-html2text · source: dl.fedoraproject.org
nix profile install nixpkgs#html2textnixpkgs package indexes · pkgs/by-name/ht/html2text/package.nix · source: api.github.com
sudo pacman -S python-html2textArch Linux sync databases · python-html2text · source: geo.mirror.pkgbuild.com
sudo zypper install python311-html2textopenSUSE Tumbleweed package metadata · python311-html2text · source: download.opensuse.org
overview
Advanced HTML-to-text converter
history
html2text renders HTML into terminal- and email-friendly plain text. The grobian-maintained project is a continuation of Martin Bayer's older html2text, with a focus on mail clients, terminal width, links, tables, character sets, and ANSI rendering.
The README states that the repository continues the project formerly hosted at mbayer.de/html2text and carries patches that were no longer available from the original sources. It also states that version 2.0 made the GitLab repository the official home.
GitLab tag metadata places v2.0.0 in 2020, followed by v2.1.x in 2022, v2.2.x in 2023, and v2.3.0 and v2.4.0 in 2025. The ChangeLog shows that later work added autotools-based builds, compatibility flags, whitespace normalization, ANSI escape output, color handling, and direct URL retrieval.
The tool is packaged across Homebrew, Debian, Ubuntu, Alpine, MacPorts, Nix, Arch, and Fedora-family ecosystems. Its adoption is helped by a stable command name and by mailcap integration examples for text-mode mail clients such as Mutt.
The README's central workflow is rendering text/html parts for terminal email. It shows a mailcap entry using html2text with ANSI output, link references, charset conversion, and terminal-width wrapping, plus Mutt configuration that auto-views HTML mail through the converter.
html2text is package-nerd material because it solves a stubborn Unix desktop problem: making HTML email tolerable in text-mode tools. It is small enough for a mailcap line, but specialized enough to preserve tables, links, alignment, and character-set behavior better than a bare text dump.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
html2text | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://gitlab.com/grobian/html2text
install metadata
| Package key | brew:html2text |
|---|---|
| Version | 2.4.0 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/html2text |
| Homepage | https://gitlab.com/grobian/html2text |
| Repository | https://gitlab.com/grobian/html2text |
| Upstream docs | https://gitlab.com/grobian/html2text#readme |
| License | GPL-2.0-or-later |
| Source archive | https://gitlab.com/-/project/48313341/uploads/8526650dd42218b3493ce7ca0a3eeb1e/html2text-2.4.0.tar.gz |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | html2text |
| 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 |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
html2text 2.2.3-3
advanced HTML to text converter
https://gitlab.com/grobian/html2text
sudo apt install html2texthtml2text
nix profile install nixpkgs#html2texthtml2text 1.3.2a-28
advanced HTML to text converter
https://github.com/grobian/html2text
sudo apt install html2texthtml2text 2.4.0-r0
html2text is a command line utility, written in C++, that converts HTML documents into plain text.
https://github.com/grobian/html2text/
sudo apk add html2texthtml2text-doc 2.4.0-r0
html2text is a command line utility, written in C++, that converts HTML documents into plain text. (documentation)
https://github.com/grobian/html2text/
sudo apk add html2text-docpython3-html2text 2025.4.15-7.fc45
Convert HTML to Markdown-formatted text
https://github.com/Alir3z4/html2text/
sudo dnf install python3-html2textpython-html2text 2025.4.15-2
A HTML to markdown-structured text converter
https://github.com/Alir3z4/html2text
sudo pacman -S python-html2textpython311-html2text 2025.4.15-1.4
Python script for turning HTML into Markdown text
https://github.com/Alir3z4/html2text/
sudo zypper install python311-html2textpython313-html2text 2025.4.15-1.4
Python script for turning HTML into Markdown text
https://github.com/Alir3z4/html2text/
sudo zypper install python313-html2textpython314-html2text 2025.4.15-1.4
Python script for turning HTML into Markdown text
https://github.com/Alir3z4/html2text/
sudo zypper install python314-html2texthtml2text
sudo port install html2textsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.