XML ↔ JSON
Convert between XML and JSON
Loading...
About this tool
Convert between XML and JSON in both directions. Attributes become keys with @, text nodes become #text and repeated elements become arrays, preserving the data structure.
Useful for integrating systems that speak different formats, inspecting feeds and migrating data. Everything happens in the browser.
How to use
- Choose the direction (XML → JSON or JSON → XML).
- Paste the content into the text area.
- Convert and copy or share the result.
Frequently asked questions
How are XML attributes represented?
As keys prefixed with @ in JSON (for example, @id).
What do repeated elements become?
Arrays in JSON, preserving the order they appear in.
Is the conversion reversible?
In most cases yes; the @ and #text convention lets you return to the original format.
Advertisement