JSON and XML
Choose an element tree or typed JSON mapping, validate and convert real files.
Select data file
Choose an XML file. Preview and conversion run on this device.
Use files up to 10 MiB, 32 XML levels, 100,000 nodes and 1,000 record paths.How to convert JSON and XML
Inspect JSON or XML
Choose the conversion direction and inspect the source text before selecting its mapping.
Choose a matching representation
Use the XML element tree for XML structure, or typed JSON for objects, arrays, nulls and scalar values.
Validate and download
Convert, review the actual output and use the same mapping when converting it back.
Typed XML retains JSON values and empty arrays
The actual XML sample retains a text ID, null, booleans, Unicode and an empty array in its documented typed representation.

Before
0.1 KiBJSON
Download source samples
After
0.5 KiBXML
Download the resultThe element tree uses format telsaro.xml-tree.v1 with one named root, string attributes and ordered children. Typed JSON uses a separate XML vocabulary. Comments and declarations are omitted; CDATA becomes text. Duplicate keys, unsafe numbers and invalid XML characters are rejected.