About this tool
JSON to XML is a free, in-browser converter that turns a parsed JSON value into an indented XML document. It reads the input with the browser's own JSON parser, walks the structure, maps object keys to element tags and array items to repeated elements, then wraps the whole tree in a single <root> element beneath a UTF-8 XML declaration.
Primitive values such as strings, numbers and booleans become element text, with ampersands, angle brackets and double quotes escaped as entities; a null becomes a self-closing empty element; nested objects nest as child elements. Indentation is fixed at two spaces per level, and keys are sanitized into valid XML tag names, so characters outside letters, digits, underscore, dot and hyphen turn into underscores.
Click Convert to build the output, where invalid JSON is flagged inline, then Copy to grab the result. Everything runs 100% in your browser: no uploads, no accounts, no tracking, and it works offline.