JSON to XML Converter
Convert JSON to XML or XML back to JSON, right in your browser. Object keys become elements, arrays repeat the element, keys starting with @ become attributes, and a #text key holds an element's text.
Convert JSON to XML or XML back to JSON, right in your browser. Object keys become elements, arrays repeat the element, keys starting with @ become attributes, and a #text key holds an element's text.
It moves data between JSON and XML without sending anything to a server. Going to XML, each object key becomes a child element and arrays repeat that element once per item. Going back to JSON, repeated tags collapse into an array and element text becomes the value. Both directions run as you type.
Plenty of older APIs, config files, and enterprise systems still speak XML while the rest of your stack is JSON. Instead of hand-editing angle brackets or wiring up a library for a one-off, paste the payload here and copy the result. It's handy for testing a SOAP endpoint, reading an RSS feed, or porting a fixture.
XML attributes map to JSON keys prefixed with @ (so type="home" becomes "@type"), and the text inside an element with attributes or mixed content lands under a "#text" key. The same convention works in reverse: an "@"-prefixed key in your JSON is written as an attribute, and "#text" becomes the element's text. Keys that aren't valid XML names are folded to underscores.