Validate XML, Parse XML and Build XML rapidly without C/C++ based libraries and no callback.
Last updated Jul 8, 2026
3.1k
Stars
383
Forks
12
Issues
+6
Stars/day
Attention Score
97
Topics
Language breakdown
JavaScript 92.7%
TypeScript 4.2%
HTML 3.1%
โธ Files
click to expand
README
fast-xml-parser
Validate XML, Parse XML to JS Object, or Build XML from JS Object without C/C++ based libraries and no callback.

- Validate XML data syntactically. Use detailed-xml-validator to verify business rules.
- Parse XML to JS Objects and vice versa
- Common JS, ESM, and browser compatible
- Faster than any other pure JS implementation.
<br> in HTML), stop nodes (Eg
:
``
Bundle size
| Bundle Name | Size | | ------------------ | ---- | | fxbuilder.min.js | 6.5K | | fxparser.min.js | 20K | | fxp.min.js | 26K | | fxvalidator.min.js | 5.7K |
Documents
| v3 | v4 and v5 | v6 |
| documents |
note:
- Version 6 is released with version 4 for experimental use. Based on its demand, it'll be developed and the features can be different in final release.
- Version 5 has the same functionalities as version 4.
Performance
negative means errorXML Parser

- Y-axis: requests per second
- X-axis: File size
XML Builder
- Y-axis: requests per second
Usage Trend
Usage Trend of fast-xml-parser
Supporters
Contributors
This project exists thanks to all the people who contribute. [Contribute].
Backers from Open collective
Thank you to all our backers! ๐ [Become a backer]
License
- MIT License

๐ More in this category