Add to Chrome Add to Edge

JSON to XML

Map JSON objects and arrays to XML elements, with control over the root name and indentation.

Format Options

JSON to XML

Some older systems, feeds and SOAP-style services still expect XML. This converter maps JSON objects and arrays to XML elements and lets you control the root name, encoding and indentation.

How to use JSON to XML

  1. Paste your JSON into the input box.
  2. Set the Root Element Name, Character Encoding and Indentation Size, and tick Pretty Print XML if wanted.
  3. Click Convert to XML and copy the result.

When it comes in handy

  • Sending data to a legacy API that only accepts XML.
  • Generating XML samples from JSON test data.
  • Comparing how the same data looks in both formats.

Frequently asked questions

Why does XML need a root element?
An XML document must have exactly one top-level element, so the JSON content is wrapped in the root name you enter.
Which encoding should I pick?
UTF-8 unless the receiving system demands otherwise. It can represent every character.

Related guides

Related Tools

Choose which cookies SEOpeck may use. You can change this at any time from "Cookie settings" at the bottom of every page.

Your tools

    Saved in this browser only. Nothing is sent to us.

    Popular tools