10 Best JavaScript HTML Parser Libraries

List hand-picked by Openbase Experts
Learn More

cheerio

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

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User Rating
4.5/ 5
76
Top Feedback
28Easy to Use
26Great Documentation
12Performant
GitHub Stars
25K
Weekly Downloads
5M
Last Commit
2mos ago

jsdom

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

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User Rating
4.6/ 5
25
Top Feedback
13Great Documentation
10Performant
7Easy to Use
GitHub Stars
17K
Weekly Downloads
15M
Last Commit
2mos ago
nhp

node-html-parser

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

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User Rating
5.0/ 5
2
Top Feedback
2Easy to Use
1Performant
GitHub Stars
545
Weekly Downloads
2M
Last Commit
3mos ago
htm

htmlparser2

The fast & forgiving HTML and XML parser

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User Rating
3.8/ 5
8
Top Feedback
3Poor Documentation
2Easy to Use
2Performant
GitHub Stars
3K
Weekly Downloads
15M
Last Commit
1mo ago
par

parse5

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

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User Rating
5.0/ 5
1
Top Feedback
N/A
GitHub Stars
3K
Weekly Downloads
23M
Last Commit
1yr ago
rem

remixml

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

License Icon
License: (ISC OR GPL-3.0)
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User Rating
5.0/ 5
1
Top Feedback
1Great Documentation
1Easy to Use
1Performant
GitHub Stars
N/A
Weekly Downloads
309
Last Commit
1yr ago

swagger-parser

Swagger 2.0 and OpenAPI 3.0 parser/validator

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
816
Weekly Downloads
530K
Last Commit
3mos ago
hps

html-parse-stringify

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

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
276
Weekly Downloads
767K
Last Commit
9mos ago
sax

sax

A sax style parser for JS

License Icon
License: ISC
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
984
Weekly Downloads
26M
Last Commit
5yrs ago

koa-bodyparser

a body parser for koa

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
1K
Weekly Downloads
612K
Last Commit
2yrs ago

htmljs-parser

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

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
86
Weekly Downloads
3K
Last Commit
3mos ago
dth

draftjs-to-html

Library for converting Draftjs editor content state to HTML

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
277
Weekly Downloads
113K
Last Commit
2yrs ago
fhp

fast-html-parser

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

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
133
Weekly Downloads
4K
Last Commit
2yrs ago