XML Formatter
Format, minify and well-formedness-check XML.
Convert a JSON document to indented XML.
Runs in your browser. Your input is never uploaded.
Paste JSON.
Set the root element name.
Convert and copy or download the XML.
Input
{"user":{"name":"Ada","tags":["a","b"]}}Output
<root>
<user>
<name>Ada</name>
<tags>a</tags>
<tags>b</tags>
</user>
</root>Format, minify and well-formedness-check XML.
Format, beautify and minify JSON with custom indentation.
Convert arrays of JSON objects to CSV, flattening nested data.
Each array item becomes a repeated element with the array’s key as the tag name.
Invalid characters are replaced with underscores and names starting with digits are prefixed with an underscore.
Keys starting with @ become attributes and #text becomes text content.
Learn what JSON is, its syntax rules, data types, common mistakes and how to read and write it in JavaScript and Python.
Paste or type input above, or press Sample to see an example.