JSON to XML
Converts JSON to XML: fields with "@" become attributes, arrays become repeated tags, and field order is preserved.
XML
The result is longer than a million characters, so it is not shown in the field. Copy it or download it as a file.
Paste JSON or open a file. Fields starting with "@" become attributes, the "#text" field becomes the element's text, and an array becomes repeated tags. Field order is preserved, and long numbers are not rounded.
A tag name in XML starts with a letter or an underscore and contains no spaces. The field "2024" becomes the tag "_2024", and "key with space" becomes "key_with_space". The list of fixed names appears under the result.
An XML document has a single root. If the top level of your JSON holds several fields or an array, everything is wrapped in a "root" tag. A note under the result tells you when this happened.
The less-than, greater-than, and ampersand characters are written as entities, and in an attribute value quotes and line breaks get escaped too. Without this, no parser could open the finished file.
Rate this tool
Help us get better
Tell us what was missing.
Other tools
JSON Formatter
Format and repair JSON in the browser, flagging duplicate keys and long numbers
Regex Tester
Regex testing with a plain-language breakdown and hang protection
JWT Decoder
JWT parsing with fields explained and signature verification
CSV to JSON
A table to JSON with honest types and a reverse check
JSON to CSV
JSON to a table for Excel, with verification and formula protection
SQL Formatter
A readable query layout, verified against the source, with risky spots flagged
XML Formatter
Readable XML, errors explained with a hint, verified against the source
XML Validator
Markup, XSD schema, sitemap, YML and RSS rules, with the path to each error