Skip to content
M2TOOLKIT

JSON to XML Converter

Convert JSON data into well-formed, indented XML.

  • Free
  • No sign-up
  • Runs in your browser
Keys starting with @ become attributes; #text becomes element text.

Everything you type is processed in your browser. Nothing you enter is sent to our servers or stored by us.

How to use the JSON to XML Converter

  1. Paste your JSON into the left box, or open a file.
  2. Adjust the options if you need to.
  3. Copy the XML or download it as a file.

What does this tool do?

Objects become nested elements and arrays become repeated elements with the same name. Keys that aren't valid XML names are made safe automatically, and special characters are escaped.

Why use it?

  • Integrate with XML-based systems and SOAP APIs.
  • Generate feeds and config files.
  • Attribute support with the @ prefix.

Example

{"book":{"@id":"1","title":"Dune"}} becomes <book id="1"><title>Dune</title></book> (inside a root element).

Privacy

Everything you type is processed in your browser. Nothing you enter is sent to our servers or stored by us. There's no account to create and nothing to install.

Last reviewed by the M2Toolkit team.

Other tools people use alongside the json to xml converter.