JSON to XML Converter

<root>
  <name>rangdom</name>
  <version>1.0.0</version>
  <private>true</private>
  <scripts>
    <build>next build</build>
    <test>vitest</test>
  </scripts>
  <keywords>random</keywords>
  <keywords>generator</keywords>
  <keywords>tools</keywords>
</root>
Converted locally in your browser. Your JSON stays only on this page.

Turn JSON into XML

Paste any JSON value — an object, array, or single scalar — and get well-formed, indented XML wrapped in a <root> element with 2-space indentation, ready for legacy and SOAP APIs, CMS imports, and older config tooling. Object keys become child elements, arrays repeat their key’s element once per item, null becomes an empty self-closing element, and text is escaped for &, <, >, quotes, and apostrophes. Keys that are not valid XML element names are sanitized so the output always parses.