Skip to content
JS
Alternatives

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.

Data as of 25 Sept 2026
PackageWeekly downloads12-month changeGzipDependenciesLast releaseModuleTypesRuntimes
html-react-parser
This package
2.7m+56%-47 days agoESM + CommonJSBundled-
htmlparser271.7m+75%-46 months agoESM onlyBundled-
cheerio19.8m+87%-118 months agoESM + CommonJSBundled-
react-markdown-editor-lite49.1k+61%-38 months agoESM + CommonJSBundled-
cssom38.5m+21%-05 years agoCommonJSNone-
dom-parser51.5k-3%-02 years agoCommonJSBundled-
txml173.9k+394%-025 days agoESM + CommonJSBundled-
@auth0/xmldom60.1k--05 years agoCommonJSNone-
smol-toml24.7m+491%-02 days agoESM + CommonJSBundled-

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)
Sources: npm registry, npm downloads API, GitHub API, Bundlephobia. Data fetched 25 Sept 2026.

Indexability: Indexed.