aaronsw/html2text
Convert HTML to Markdown-formatted text. observed · 2026-08-28
Health v2 · maintenance only
32/100
- Activity 0
- Release rhythm 35
- Longevity 100
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 5696
- days_rel: n/a
- days_push: 918
- n_releases_24m: 0
Adoption not part of the score
2813 stars · 420 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
html2text is a Python script and library that converts HTML pages into clean plain ASCII text that is also valid Markdown. It can be used from the command line with files or URLs, or programmatically via its Python API with configurable options.
Use cases
- convert an HTML page to Markdown text
- extract readable plain text from a web page URL
- strip links and images from HTML when converting to text
- use html2text inside a Python script to transform HTML strings
- convert exported Google Documents to Markdown
- preprocess scraped HTML into Markdown for storage or LLM input
When to choose
- you need HTML-to-Markdown conversion in Python or from the CLI
- you want configurable output like ignoring links, wrapping width, or list styles
- you want a small, mature, well-known tool with a simple API
When to avoid
- you need the reverse conversion (Markdown to HTML)
- you need a non-Python implementation
- you require a permissive license, since it is GPL-3.0
Facets
library · maturity active
parser markdown cli web-development developer-tools python cli cross-platform html-to-markdown text-conversion html-parsing ascii-output command-line
2 sources
- readme: https://github.com/aaronsw/html2text · fetched 2026-08-28 · 85d4949a9955
- homepage: http://www.aaronsw.com/2002/html2text/ · fetched 2026-08-29 · f39dcf9d2eea
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| aaronsw/html2text | main | 32 |
For agents
markdown · JSON · MCP: product_card(name="aaronsw/html2text")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem