Small ToolsAll tools
← All tools / Data Formats
Data Formats utility

JSON to XML

Convert a JSON object into XML elements and attributes.

● This tool runs entirely in your browser. Your input is never uploaded to our servers.
Output
Your result will appear here…

How to use JSON to XML

  1. Paste a JSON object.
  2. Select Convert to generate XML elements.
  3. Review and copy the XML output.

Example

Input:

{"person":{"name":"Ada","active":true}}

Output:

<root>
  <person>
    <name>Ada</name>
    <active>true</active>
  </person>
</root>

Use cases

About this tool

Convert a JSON object into XML elements and attributes. Processing happens locally in your browser, so your input is not sent to a server or included in analytics.

Frequently asked questions

What is the root element called?

The converter wraps the JSON value in a root element named root.

How are arrays represented?

Each array value becomes a repeated item element.

Are XML special characters escaped?

Yes. Text and attribute values are escaped to produce well-formed XML.

Related tools