Convert XML to JSON
Turn feeds, config files or XML responses into JSON that's easy to use in JavaScript.
Everything runs in your browser. Nothing you type or paste is sent to a server.
How to convert XML to JSON
- 1
Paste the XML.
- 2
The JSON is generated instantly.
- 3
Copy or download the result.
About this tool
Attributes are stored with an “@” prefix and text next to other elements as “#text”. Repeated elements are grouped into a list.
You can go back to XML with the “JSON to XML” tool.
Frequently asked questions
Are attributes kept?
Yes, as keys starting with @, for example “@id”.
What about namespaces?
They stay as part of the tag name (for example “atom:link”).