Convert XML to JSON



This tool allows you to convert XML to JSON, and the opposite JSON to XML.

You can see the user guide to help you to use this XML / JSON converter tool.

CDATA is not supported.
Only pre-defined entity references are supported (<, >, &, ', ").

Converter User Guide

To convert XML data:

  • Drag and drop your XML file or copy / paste your XML directly into the "XML" editor above.
  • As soon as the editor detects a valid XML, it displays the result.
  • In order to download the results you must click on "Download" button.
  • You can also copy the result to the clipboard by clicking on the button "Copy to clipboard".

To convert JSON data: It's analogous to the XML conversion.

Why convert JSON / XML

Softwares exports data in a variety of formats (XML, JSON, CSV, TSV, ...). Some reporting softwares do not necessarily accept all these input formats, so it can be useful to convert them.

If you want to beautify your XML and JSON strings for easier viewing you can use our beautifiers:

About XML

XML (eXtensible Markup Language) is a software and hardware independent tool for storing and transporting data, and it is designed to be self-descriptive. XML is a markup language.

XML is a W3C Recommendation.

There are 5 pre-defined entity references in XML:

  • <: &lt; (less than)
  • >: &gt; (greater than)
  • &: &amp; (ampersand)
  • ': &apos; (apostrophe)
  • ": &quot; (quotation mark)

About JSON

JSON (JavaScript Object Notation) is an open-standard format for storing and transporting data, it was derived from JavaScript object notation syntax. JSON is often used for asynchronous browser–server communication.

JSON became a very common format, many programming languages include code to generate and parse JSON-format data.

You can report a bug or give feedback by adding a comment (below) or by clicking "Contact me" link (at the top right hand corner of the page).