Convert XML to JSON online

Online XML to JSON Converter, is a free tool to easily convert your XML string into JSON string, so you can use them in your code as needed.



How does XML to JSON Converter works?

Enter your XML sample in the above textbox, it will be validated before converting into JSON string and then you will get JSON output. Suppose you have below sample XML

<?xml version='1.0' standalone='no'?>
<root>
  <person id='1'>
  <name>Alan</name>
  <url>http://www.google.com</url>
  </person>
  <person id='2'>
  <name>Louis</name>
  <url>http://www.yahoo.com</url>
  </person>
</root>

Output:

{
    "?xml": {
        "version": "1.0",
       "standalone": "no"
    },
    "root": {
      "person": [
       {
        "id": "1",
        "name": "Alan",
        "url": "http://www.google.com"
       },
       {
        "id": "2",
        "name": "Louis",
        "url": "http://www.yahoo.com"
        }
       ]
      }
    }