# html-to-text — card for AI agents

Convert HTML to plain text with support for preserving formatting and structure.

Category: Scraping, browsers and parsing · npm package `html-to-text` · latest version 10.0.1 (checked 2026-11-01)
Install: `npm install html-to-text`
License: MIT (permissive)

In your own product (generator, app, hosted service): **yes**. Permissive license: ship it inside your own product, closed or open source, and keep its license and copyright notice.

## Numbers (AgentGid data)
- Gid Score: 62.2 (#857 of all tools, 28 of 141 in its category)
- Used in 9 public projects set up for AI coding agents (0.1%)
- Downloads last week: 33,004,202 (as of 2026-11-24), +65.8% over 4 weeks
- GitHub stars: 1,762 (as of 2026-11-24)
- Last push: 2026-08-19

## Often used with
LangChain.js 48.3%, dotenv 55.0%, mammoth 45.0%, pdf-parse 41.7%, pg 41.7%, Zod 63.3%

## Checked alternatives (same job)
- Cheerio: https://agentgid.com/tools/cheerio/agent.md

## Links
- AgentGid page: https://agentgid.com/tools/html-to-text/
- Homepage: https://github.com/html-to-text/node-html-to-text
- Repository: https://github.com/html-to-text/node-html-to-text

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
