From JSON to XML with valid element names, attributes and clean indentation.
Reverse: XML to JSONDrop your file here
or choose one from your computer
up to 50 MB
Files never leave your device — everything runs in your browser
JSON to XML is what you need when the data goes to an older system: an accounting package, a bank, a government portal or a SOAP service. Objects become elements, arrays become repeated elements, and keys that start with @ become attributes. So {"product": {"@sku": "A-101", "price": 29.9}} turns into <product sku="A-101"><price>29.9</price></product>.
The root element and the element name for a top-level array are set in the options — root and item by default. Keys that are not valid XML names, with spaces or a leading digit, are repaired carefully: first name becomes first_name. Letters from any alphabet are allowed by the XML standard and stay as they are.
Special characters &, < and > are escaped, long integers are written in full, and the <?xml version="1.0" encoding="UTF-8"?> line is added if you want it. Indent with 2 or 4 spaces, or put everything on one line.
Nothing is uploaded: parsing and conversion run inside your browser, so API responses, CRM exports and files with personal data stay on your device.
A file, pasted text or the Sample. Syntax errors are shown with a fix offered.
Root element, array item name, attribute prefix, indent and declaration.
Or copy the result from the preview.