JSON ↔ XML Converter
JSON ToolsConvert JSON to XML or XML back to JSON
JSON
XML
About the JSON ↔ XML Converter
Convert a JSON document to XML, or an XML document back to JSON, in either direction. Object keys become element names, arrays become repeated sibling elements — the same convention most JSON/XML converters use, so output stays predictable.
It's a common need when working with older SOAP or enterprise APIs, RSS/Atom feeds, or config formats that predate JSON but need to talk to a modern JSON-based service — sketch out the shape in JSON, convert to XML, and adjust the result to match a schema, or go the other way to inspect what an XML payload actually contains.
How to Use the JSON ↔ XML Converter
Choose a direction — JSON to XML, or XML to JSON.
Paste the source document into the input panel.
Copy the converted result, checking the FAQ below for what does and doesn't survive the round trip.
Frequently Asked Questions
Is my data uploaded anywhere?
No. The JSON→XML direction is plain string building; the XML→JSON direction uses the browser's built-in DOMParser. Neither sends anything to a server.
How are JSON arrays represented in XML, and back?
Each array item becomes a sibling element repeating the array's own key — e.g. "tags": ["a", "b"] becomes two <tags> elements. Converting back, two or more sibling elements with the same tag name become a JSON array automatically.
Is this a lossless round trip?
Close, but not exactly — JSON and XML aren't isomorphic. XML attributes aren't represented, and a JSON value that is only ever a single item in your data can't be distinguished from "always an array of one," so a round trip may turn a lone value into a single-item array.
What happens to XML attributes when converting to JSON?
They're not carried over — only element names, text content, and nesting are represented in the JSON output. If your XML relies on attributes for meaningful data, review the converted result before using it as-is.