JSON to XML
Create clean XML from a documented JSON mapping for elements, attributes and text.
How it works & useful details
XML mapping
Provide one top-level property for the root element. In an object value, keys prefixed with @ become scalar attributes, #text becomes scalar text, other keys become child elements, and arrays repeat a named child element.
Names use the portable subset of XML names: letters/underscore first, then letters, digits, underscore, dot or hyphen. Null becomes an empty element.
Private, bounded processing
This workspace parses text only in your browser. It never opens links, requests external entities, runs pasted configuration, or saves your document. Input is limited to 500,000 characters; conversion output is limited to 1,000,000 characters.
