Paste JSON and convert to well-formed XML instantly. Handles nested objects and arrays. Load sample
Convert JSON to XML in one click — paste any JSON object or array and get valid, indented XML output. Nested objects become nested elements. Arrays become repeated sibling elements. Keys with spaces or special characters are automatically sanitized to valid XML tag names. Common use case: converting REST API JSON responses into XML for SOAP services, legacy systems, or data pipelines that expect XML.
A JSON array like "tags": ["admin","user"] becomes repeated child elements: <tags>admin</tags><tags>user</tags>. Arrays of objects work the same way — each object becomes a child element with the array key as its tag name.
XML requires a single root element wrapping all content. You can customize the root element name in the field above — useful when the output needs to match a specific XML schema or DTD.