JSON to XML (and XML to JSON)
Convert JSON to XML and XML to JSON, with attributes, lists and indentation, validating the syntax right in your browser.
How to usePaste the JSON or XML to convert.
JSON to XML (and XML to JSON): what it is for
Paste JSON to generate the equivalent XML, with a declaration, indentation and arrays as repeated elements, or paste XML to get JSON, with attributes as @ and numbers and booleans converted.
The data isn't sent to any server: the conversion happens in your browser.
How to use
- Choose the conversion direction.
- Paste the JSON or XML.
- Copy the result.
When to use it
- Integrating REST APIs with systems that use XML.
- Reading XML files and invoices as JSON.
- Migrating settings between formats.
Frequently asked questions
How do JSON arrays become XML?
Each array item becomes a repeated element with the same name as the key. For example, "tags": ["a", "b"] becomes <tags>a</tags><tags>b</tags>.
What about XML attributes?
When converting XML to JSON, attributes appear with the @ prefix (like "@id") and the text of an element with attributes appears in "#text". The same format works on the way back.
Is it really free?
Yes, 100% free. No sign-up, no subscription and no usage limits. All Tools123 tools are free and run right in your browser.