10 Best JavaScript HTML Parser Libraries

List hand-picked by Openbase Experts
Learn More

par

HTML parsing/serialization toolset for Node.js. WHATWG HTML Living Standard (aka HTML5)-compliant.

34.7M
3.2K
Built-in
MIT
cheerio

Fast, flexible, and lean implementation of core jQuery designed specifically for the server.

7M
25.7K
Built-in
MIT
htm

The fast & forgiving HTML and XML parser

23.6M
3.7K
Built-in
MIT
jsdom

A JavaScript implementation of various web standards, for use with Node.js

20M
18.4K
DefinitelyTyped
MIT
nhp

A very fast HTML parser, generating a simplified DOM, with basic element query support.

1.7M
Built-in
MIT
rem

Remixml: XML/HTML-like macro language/template engine

390
3
No support
(ISC OR GPL-3.0)
sax

A sax style parser for JS

28.2M
1K
DefinitelyTyped
ISC
hps

Parses well-formed HTML (meaning all tags closed) into an AST and back. quickly.

1.8M
300
No support
MIT
swagger-parser

Swagger 2.0 and OpenAPI 3.0 parser/validator

695K
874
Built-in
MIT
koa-bodyparser

a body parser for koa

561K
1.2K
DefinitelyTyped
MIT
dth

Library for converting Draftjs editor content state to HTML

230K
301
DefinitelyTyped
MIT
htmljs-parser

An HTML parser recognizes content and string placeholders and allows JavaScript expressions as attribute values

6.2K
120
Built-in
MIT
fhp

A very fast HTML parser, generating a simplified DOM, with basic element query support.

4.8K
139
DefinitelyTyped
MIT
Description
Author
License
Type Definitions
ESM Support
Tree Shakeable
Popularity
Downloads/wk
GitHub Stars
Reviews
User Rating
Voted Good Docs
Voted Easy of Use
Voted Performant
Top Positive Review
Top Negative Review
Issues
Total Issues
Open Issues
Avg Time to Close
Pull Requests
Total Pull Requests
Open Pull Requests
Avg Time to Merge
Community
Maintainers
Contributors
Contributors with 3+ commits
Top Committers
GitHub Forks
Versions
# of Versions
Latest
Next
Beta
Newest
Oldest
Major Every
Minor Every
Patch Every
Dependencies
Dependencies
Dev Dependencies
Links
More Info
README
Tutorials
Install Command
There's Nothing Here
No packages are selected.
Select a few packages to compare.