XML to JSON Converter
Paste XML or open a file and get clean JSON. You decide how attributes, repeated elements and namespace prefixes are written, and any XML mistake is shown with its line and column.
- PrivateYour data never leaves this device
- No uploadsProcessed in your browser, not on a server
- 100% freeNo signup, no watermark, no trial
- UnlimitedUse it as often as you like, no daily caps
Options
XML input
JSON output
Output appears here.How to use the XML to JSON.
4 short steps. Nothing to install, nothing uploaded.
- 1
Paste your XML, click Open file, or press Sample to try it.
- 2
Pick a convention: Simple (repeated names become arrays) or Always arrays, then choose how attributes are written.
- 3
Optionally convert numbers, booleans and null, trim whitespace, drop namespace prefixes and set the indent.
- 4
Copy the JSON or download it as a .json file. If the XML has an error, click Go to error to jump to it.
Guides for XML to JSON

XML to JSON: the complete guide to converting XML data
30 Nov 20266 min readLearn how to convert XML to JSON online: how attributes, text, repeated tags and namespaces are written, what each option does, and what…

XML Formatter: the complete guide to validating and beautifying XML
30 Nov 20267 min readA complete guide to formatting XML online: beautify or minify, pick the indent, sort attributes, strip comments, and read every…

JSON to XML: the complete guide to converting JSON data
30 Nov 20266 min readHow to convert JSON to XML online: how arrays, @attributes and #text are written, why a root element appears, how invalid key names are…
Frequently asked questions.
Quick answers about the XML to JSON.


