Convert JSON to XML in 3 steps

Paste JSON, set the root tag, then review the XML output.

  • Paste JSONAdd the JSON you want converted.
  • Set rootChoose the XML root element name.
  • Review XMLCopy or download the converted result.

Prepare JSON input

Set the root tag, paste JSON, and convert it into XML.

Paste JSON, choose a root tag name, and convert it into XML.

XML output

Review the generated XML before copying or downloading.
Output
<?xml version="1.0" encoding="UTF-8"?>
<root>
  <site>The Project Jugaad</site>
  <categories>tools</categories>
  <categories>games</categories>
  <active>true</active>
</root>
Found a problem or have an idea?Tell us what happened or what would make this page more useful.

Send feedback about JSON to XML

0/2000

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Online submissions are temporarily unavailable. Please use one of the direct contact options on this page.

Why use JSON to XML?

JSON and XML often appear together in APIs, config files, and older systems. Convert structured JSON into readable XML when another service or file format expects it.

Root tag controlXML exportBrowser-based

FAQs

Can I choose the root XML tag name?

Yes. The root name field lets you decide which top-level tag wraps the converted output.

Does this support nested JSON objects and arrays?

Yes. Nested structures are converted into nested XML nodes, and arrays become repeated tags.

Can I pretty-print the XML?

Yes. You can choose a 2-space or 4-space indent before converting.

Does the conversion happen locally?

Yes. The JSON is converted to XML directly in your browser.

Can I copy or download the result?

Yes. Copy the converted XML or download it as an XML file.

Does this tool store my data?

Your JSON draft is saved in this browser for your next visit. The conversion still runs locally on your device.