Converters
JSON to XML Converter
Convert JSON to XML and XML back to JSON.
Free foreverRuns in your browserNo sign-up
XML
About the JSON to XML Converter
Convert JSON into XML, or parse XML back into JSON, in one tool.
Object keys become XML tags, arrays repeat their tag, and attributes are kept using an @ prefix when reading XML.
Useful for APIs, SOAP services and legacy systems that speak XML.
Key features
- JSON to XML and XML to JSON
- Keeps attributes and nesting
- Open a file or paste your data
- Copy the result instantly
How to use
- 1Choose the direction you want to convert.
- 2Paste your data or open a file.
- 3Copy the converted result.
Examples
JSON to XML
Input:
{"note":{"to":"Ada"}}Output:
<root>
<note>
<to>Ada</to>
</note>
</root>Each key becomes a nested XML tag.
XML to JSON
Input:
<note><to>Ada</to></note>Output:
{ "note": { "to": "Ada" } }Tags become nested JSON keys.
Frequently asked questions
- How are XML attributes represented in JSON?
- Attributes are read into keys prefixed with @, and element text uses a #text key when an element also has attributes.
- Does it validate the XML?
- It checks that the XML is well formed and reports an error if it cannot be parsed.
- Is my data uploaded?
- No. The conversion runs entirely in your browser.
