XML to JSON

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

We depend on ads to keep our content free for you.
Please consider disabling your ad blocker.

This is a client-side utility. Your data will NOT leave your own browser.
Copy shareable link is limited to 5,000 characters as it uses a client-side feature.

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

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.