JSON to XML
Convert a JSON structure into indented XML.
What it does
JSON to XML parses the input properly and re-serializes it, rather than pattern-matching its way across. Structure is preserved where the target format can express it, and flattened predictably where it cannot.
When you need it
Moving data between things that disagree about format: an API that answers in one shape, a spreadsheet that only opens another, a config file a tool refuses to read, a export that has to become an import.
Limits and caveats
Formats are not equivalent, so some detail cannot survive the trip — nested structures have to be flattened for tabular output, and comments and type distinctions are lost in both directions. Invalid input is reported rather than guessed at. Everything happens in your browser, so the file never leaves your device.
How to use the JSON to XML
- Paste your content, or load a file.
- The result appears as you type.
- Copy or download the output.
Frequently asked questions
- What are arrays converted to?
- Repeated elements with the same tag name, which is the conventional XML equivalent.
- Do my files get uploaded?
- No. This tool runs entirely in your browser, so the file never leaves your device.