XML to JSON

The online XML to JSON converter can be used to quickly transform between these data types. More.

This is a client-side utility. Your data will NOT leave your own browser.

How it works?

XML to JSON online: The online XML to JSON converter can be used to quickly transform between these data types.

  • Single line: Convert the XML to JSON displayed in a single line, removing all spaces.
  • 2, 3 and 4 spaces and Tabs: Convert the XML to JSON using a specified level of indentation.

See the examples of usage below.

Examples

XML
<note>
    <to>Tove</to>
    <body>Don't forget me this weekend!</body>
    <from>Jani</from>
    <heading>Reminder</heading>
</note>
JSON
{
  "note": {
    "to": "Tove",
    "body": "Don't forget me this weekend!",
    "from": "Jani",
    "heading": "Reminder"
  }
}

Additional Resources

Related tools

Looking for something else?

In case you are looking for something else than this functionality, please let us know by contacting us. The most common requests will be made available (for free) once possible.