html-react-parser alternatives
8 packages that do the same job as html-react-parser: htmlparser2, cheerio, react-markdown-editor-lite, cssom, dom-parser, txml, @auth0/xmldom, smol-toml. Figures below are from npm, GitHub and Bundlephobia.
| Package | Weekly downloads | 12-month change | Gzip | Dependencies | Last release | Module | Types | Runtimes |
|---|---|---|---|---|---|---|---|---|
| html-react-parser This package | 2.7m | +56% | - | 4 | 7 days ago | ESM + CommonJS | Bundled | - |
| htmlparser2 | 71.7m | +75% | - | 4 | 6 months ago | ESM only | Bundled | - |
| cheerio | 19.8m | +87% | - | 11 | 8 months ago | ESM + CommonJS | Bundled | - |
| react-markdown-editor-lite | 49.1k | +61% | - | 3 | 8 months ago | ESM + CommonJS | Bundled | - |
| cssom | 38.5m | +21% | - | 0 | 5 years ago | CommonJS | None | - |
| dom-parser | 51.5k | -3% | - | 0 | 2 years ago | CommonJS | Bundled | - |
| txml | 173.9k | +394% | - | 0 | 25 days ago | ESM + CommonJS | Bundled | - |
| @auth0/xmldom | 60.1k | - | - | 0 | 5 years ago | CommonJS | None | - |
| smol-toml | 24.7m | +491% | - | 0 | 2 days ago | ESM + CommonJS | Bundled | - |
12-month change compares the average of the last 4 weeks of downloads with the first 4 weeks of the 52-week series. Gzip size is for the whole package (Bundlephobia). Runtimes are taken from each package's own documentation; "-" means not recorded.
Fast & forgiving HTML/XML parser
Compared with html-react-parser
- 26x more weekly downloads (71.7m vs 2.7m)
- ESM only vs ESM + CommonJS
- Declares Node.js >=20.19.0 vs none declared
- Last release 20 Mar 2026 vs 17 Sept 2026
- 2.0x more GitHub stars (4.8k vs 2.4k)
The fast, flexible & elegant library for parsing and manipulating HTML and XML.
Compared with html-react-parser
- 7.3x more weekly downloads (19.8m vs 2.7m)
- 11 dependencies vs 4
- Declares Node.js >=20.18.1 vs none declared
- Last release 23 Jan 2026 vs 17 Sept 2026
- 13x more GitHub stars (30.5k vs 2.4k)
a light-weight Markdown editor based on React
Compared with html-react-parser
- 55x fewer weekly downloads (49.1k vs 2.7m)
- 3 dependencies vs 4
- Last release 21 Jan 2026 vs 17 Sept 2026
- 2.1x fewer GitHub stars (1.1k vs 2.4k)
CSS Object Model implementation and CSS parser
Compared with html-react-parser
- 14x more weekly downloads (38.5m vs 2.7m)
- 0 dependencies vs 4
- CommonJS vs ESM + CommonJS
- No types vs bundled types
- Last release 20 Jun 2021 vs 17 Sept 2026
- 3.2x fewer GitHub stars (757 vs 2.4k)
Fast dom parser based on regexps
Compared with html-react-parser
- 53x fewer weekly downloads (51.5k vs 2.7m)
- 0 dependencies vs 4
- CommonJS vs ESM + CommonJS
- Last release 12 Nov 2023 vs 17 Sept 2026
- 22x fewer GitHub stars (110 vs 2.4k)
fastest XML DOM Parser for node/browser/worker
Compared with html-react-parser
- 16x fewer weekly downloads (173.9k vs 2.7m)
- 0 dependencies vs 4
- Declares Node.js >=18.0.0 vs none declared
- Last release 30 Aug 2026 vs 17 Sept 2026
- 9.7x fewer GitHub stars (250 vs 2.4k)
A W3C Standard XML DOM(Level2 CORE) implementation and parser(DOMParser/XMLSerializer).
Compared with html-react-parser
- 45x fewer weekly downloads (60.1k vs 2.7m)
- 0 dependencies vs 4
- CommonJS vs ESM + CommonJS
- No types vs bundled types
- Declares Node.js >=0.1 vs none declared
- Last release 1 Mar 2021 vs 17 Sept 2026
- fewer GitHub stars (0 vs 2.4k)
A small, fast, and correct TOML parser/serializer
Compared with html-react-parser
- 9.1x more weekly downloads (24.7m vs 2.7m)
- 0 dependencies vs 4
- Declares Node.js >= 18 vs none declared
- Last release 22 Sept 2026 vs 17 Sept 2026
- 7.8x fewer GitHub stars (310 vs 2.4k)
Indexability: Indexed.