Paste your XML, click Convert, and get clean formatted JSON. Malformed XML will show a readable error message.
Many modern APIs and JavaScript applications work with JSON rather than XML. This tool converts XML documents into clean, structured JSON so you can migrate data between formats, consume legacy XML feeds in modern apps, or simply inspect XML data in a more readable format. Need the reverse? Use our JSON to XML Converter to go from JSON back to XML.
For best results, validate your XML first to catch syntax errors. Working with RSS or Atom feeds? Check out our guide on XML RSS feeds for more context on XML-based syndication formats.
Paste an XML document like this:
<users>
<user id="1">
<name>Alice</name>
<email>alice@example.com</email>
</user>
<user id="2">
<name>Bob</name>
<email>bob@example.com</email>
</user>
</users>The converter produces structured JSON:
{
"users": {
"user": [
{
"@_id": "1",
"name": "Alice",
"email": "alice@example.com"
},
{
"@_id": "2",
"name": "Bob",
"email": "bob@example.com"
}
]
}
}