Automic VaultAutomic Vault

brew

Install html2text with Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper

Advanced HTML-to-text converter. Version 2.4.0 via Homebrew; verified from local package data.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install html2text

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install html2text

MacPorts ports tree · textproc/html2text/Portfile · source: api.github.com

Linux

Alpine Linux apkverified · 92%
sudo apk add html2text

Alpine Linux edge package indexes · html2text · source: dl-cdn.alpinelinux.org

Debian aptverified · 92%
sudo apt install html2text

Debian stable package indexes · html2text · source: deb.debian.org

Fedora dnfverified · 92%
sudo dnf install python3-html2text

Fedora Rawhide package metadata · python3-html2text · source: dl.fedoraproject.org

Nixverified · 92%
nix profile install nixpkgs#html2text

nixpkgs package indexes · pkgs/by-name/ht/html2text/package.nix · source: api.github.com

Arch Linux pacmanverified · 92%
sudo pacman -S python-html2text

Arch Linux sync databases · python-html2text · source: geo.mirror.pkgbuild.com

openSUSE zypperverified · 92%
sudo zypper install python311-html2text

openSUSE Tumbleweed package metadata · python311-html2text · source: download.opensuse.org

overview

Package summary

Advanced HTML-to-text converter

Commands and aliases

  • html2text

history

Project history and usage

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.

Project history

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.

Adoption history

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.

How it is used

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.

Why package nerds care

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.

Timeline

  • Pre-2020: Martin Bayer's html2text provided the original project line.
  • 2020: v2.0.0 established the grobian GitLab repository as the official home.
  • 2022: v2.1.x releases continued the 2.x series.
  • 2023: v2.2.0 moved the build system to autotools and added compatibility and whitespace work.
  • 2025: v2.3.0 added ANSI and color handling; v2.4.0 added direct remote URL retrieval.

Related projects

  • Related tools include lynx -dump, w3m -dump, pandoc, Python html2text, and mailcap-driven HTML viewers used by Mutt and similar text mail clients.

Sources

  • Homebrew and distribution package metadata support package-manager adoption.
  • The GitLab ChangeLog and tag API document the 2.x release evolution.
  • The GitLab README documents origin, email-focused usage, and official-home status from version 2.0.

security posture

Risk level: green

narrow executable package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • narrow executable package without higher-risk signals

Signals

  • metadata:no-higher-risk-signals

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
html2textcliglobal executable

freshness

Version and 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.

page generated2026-07-08
manager version2.4.0
manager updated
local dataok
upstreamnot checked
latest detectednot detected

https://gitlab.com/grobian/html2text

  • infoNo package-manager update timestamp was available.low confidence
  • infoRelease/tag comparison is only available for GitHub repositories.https://gitlab.com/grobian/html2textnone confidence

install metadata

Package metadata

Package keybrew:html2text
Version2.4.0
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/html2text
Homepagehttps://gitlab.com/grobian/html2text
Repositoryhttps://gitlab.com/grobian/html2text
Upstream docshttps://gitlab.com/grobian/html2text#readme
LicenseGPL-2.0-or-later
Source archivehttps://gitlab.com/-/project/48313341/uploads/8526650dd42218b3493ce7ca0a3eeb1e/html2text-2.4.0.tar.gz
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namehtml2text
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Debian apt95%

html2text 2.2.3-3

advanced HTML to text converter

https://gitlab.com/grobian/html2text

sudo apt install html2text
  • Section: web
  • Architecture: amd64
  • 3 dependencies
  • 2 optional deps
  • normalized package name match
  • Matched by: Html2text
Debian stable package indexes · deb.debian.org · Debian stable package indexes: html2text from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

html2text

nix profile install nixpkgs#html2text
  • normalized package name match
  • Matched by: Html2text
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/ht/html2text/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

html2text 1.3.2a-28

advanced HTML to text converter

https://github.com/grobian/html2text

sudo apt install html2text
  • Section: universe/web
  • Architecture: amd64
  • 3 dependencies
  • 2 optional deps
  • normalized package name match
  • Matched by: Html2text
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: html2text from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

html2text 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 html2text
  • License: GPL
  • Architecture: x86_64
  • Source Package: html2text
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Html2text
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: html2text from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

html2text-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-doc
  • License: GPL
  • Architecture: x86_64
  • Source Package: html2text
  • normalized package name match
  • Matched by: Html2text
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: html2text-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
dnf95%

python3-html2text 2025.4.15-7.fc45

Convert HTML to Markdown-formatted text

https://github.com/Alir3z4/html2text/

sudo dnf install python3-html2text
  • License: GPL-3.0-or-later
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: python-html2text
  • 2 dependencies
  • 6 provides
  • normalized package name match
  • Matched by: Html2text
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: python3-html2text from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
pacman95%

python-html2text 2025.4.15-2

A HTML to markdown-structured text converter

https://github.com/Alir3z4/html2text

sudo pacman -S python-html2text
  • License: GPL-3.0-only
  • Architecture: any
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Html2text
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: python-html2text from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
zypper95%

python311-html2text 2025.4.15-1.4

Python script for turning HTML into Markdown text

https://github.com/Alir3z4/html2text/

sudo zypper install python311-html2text
  • License: GPL-3.0-only
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: python-html2text
  • 4 dependencies
  • 4 provides
  • normalized package name match
  • Matched by: Html2text
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: python311-html2text from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

python313-html2text 2025.4.15-1.4

Python script for turning HTML into Markdown text

https://github.com/Alir3z4/html2text/

sudo zypper install python313-html2text
  • License: GPL-3.0-only
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: python-html2text
  • 4 dependencies
  • 5 provides
  • normalized package name match
  • Matched by: Html2text
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: python313-html2text from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

python314-html2text 2025.4.15-1.4

Python script for turning HTML into Markdown text

https://github.com/Alir3z4/html2text/

sudo zypper install python314-html2text
  • License: GPL-3.0-only
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: python-html2text
  • 4 dependencies
  • 4 provides
  • normalized package name match
  • Matched by: Html2text
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: python314-html2text from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
MacPorts95%

html2text

sudo port install html2text
  • normalized package name match
  • Matched by: Html2text
MacPorts ports tree · api.github.com · MacPorts ports tree: textproc/html2text/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

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