Convert JSON to XML
Paste JSON and convert it to XML. Object keys become element names, arrays repeat the element, and values are escaped as text — with names sanitised to be XML-valid. Choose the root element and indentation. The result is saved privately in your account.
No sign-up needed — runs instantly in your browser.
How it works
- 1Paste your JSON
- 2Set the root element and indentation, then press Run
- 3Download the XML or find it in your files
Frequently asked questions
- How are arrays converted?
- Each array item repeats its element — for a key like tags, every item becomes its own <tags> element under the parent.
- What about invalid element names?
- Keys that aren't valid XML names (spaces, leading digits, symbols) are sanitised to underscores so the output always parses.
Related tools
Paste JSON to pretty-print, minify or validate it. Choose the indentation, optionally sort keys, and your formatted file is stored privately in your account.
DeveloperPaste a JSON array and turn it into CSV. Arrays of objects become one column per key (the union of all keys); arrays of values become a single column. Choose the delimiter and whether to include a header — saved privately in your account.
DeveloperPaste JSON to check whether it's valid. If it isn't, you'll see the exact error and where parsing failed; if it is, you get a quick report of its type, key count and nesting depth — saved privately in your account.
DeveloperPaste Base64 to decode it back to readable text. Both standard and URL-safe Base64 are accepted. The result is stored privately in your account.
Developer