JSON → XML Converter

Convert JSON to XML. Paste JSON or import a file; preview, copy, and download.

Options
Adjust the XML wrapper and output style before you copy or download.

XML needs a single top-level element. This tag wraps the converted JSON.

Repeated values inside JSON arrays use this XML tag.

Choose 0 for compact output or 1-8 for pretty-printed indentation.

Adds <?xml version="1.0" encoding="UTF-8"?> to the top of the output.

Use <tag></tag> instead of self-closing tags for empty values.

JSON
Paste JSON directly or import a .json or .txt file from this device.
XML
XML output updates as soon as the input contains valid JSON.
<?xml version="1.0" encoding="UTF-8"?>
<root>
  <project>
    <name>InBrowserApp</name>
    <languages>
      <item>en</item>
      <item>zh-CN</item>
      <item>fr</item>
    </languages>
    <published>true</published>
    <owner>
      <name>Open Source Team</name>
      <email />
    </owner>
  </project>
</root>

What this tool is for

Use this tool when you need to turn valid JSON into readable XML for integrations, exports, or systems that still expect XML. Everything runs locally in the browser.

Where it helps

  • Converting copied API responses into XML for feeds, migrations, or partner integrations.
  • Turning ordinary JSON into a format that works better with XML-first systems.
  • Preparing structured content without sending data to a server.

What to watch for

  • Input must be valid JSON in this tool.
  • XML always needs one top-level element, so this tool wraps the result in a configurable root tag.
  • Array values are emitted as repeated child tags, and empty values can be self-closing or expanded.
  • If you need to go the other direction, use the XML to JSON converter instead.