ToolsOnline

Online JSON to XML Converter

Convert JSON objects/arrays to XML with a configurable root


        

About this JSON to XML converter

Paste JSON on the left and get equivalent XML in real time: object keys become same-named elements, arrays are expanded into repeated elements by default, or wrapped as <items><item> when the option is checked; strings, numbers and booleans become element text, while null turns into an empty element. The root element name is configurable and defaults to root.

Object keys are automatically sanitized into valid XML Names: illegal characters become underscores and keys starting with a digit or symbol get an underscore prefix; &, < and > in text are escaped per the XML spec. Every result is round-trip validated with the browser's native DOMParser, so the output is always well-formed XML. Everything runs locally — your data never leaves the browser.