DevConvert
Free Online Tool

JSON to XML Converter

Convert JSON to XML instantly. Paste any JSON object and get valid, well-formed XML output. Free online JSON to XML converter — no install required.

Try sample:
Input
Output

Output will appear here

Press ⌘ Enter to convert

How It Works

  1. 1Paste your JSON object
  2. 2DevConvert maps each key to an XML element recursively
  3. 3Copy or download the well-formed XML output

Examples

Simple object

Input

{"name":"Alice","age":30,"active":true}

Output

<root>
  <name>Alice</name>
  <age>30</age>
  <active>true</active>
</root>
Nested object

Input

{"user":{"id":1,"name":"Alice"},"status":"active"}

Output

<root>
  <user>
    <id>1</id>
    <name>Alice</name>
  </user>
  <status>active</status>
</root>

Frequently Asked Questions

What root element name does the output use?

DevConvert wraps output in a <root> element when the top-level JSON is an object. Array items get <item> elements.

Can I use this to generate SOAP request bodies?

You can use the JSON to XML converter to create the inner XML structure, then wrap it in your SOAP envelope manually.

Are JSON arrays converted correctly?

Yes. JSON arrays become repeated XML elements, e.g. [1,2,3] becomes <item>1</item><item>2</item><item>3</item>.

Related Tools