XML to JSON Converter

Convert XML data to JSON format with pretty print and validation

XML Input

JSON Output

How to Use

  1. Paste your XML data into the input field on the left
  2. Click "Convert to JSON" to transform your XML to JSON format
  3. Toggle "Pretty Print" to format the JSON output
  4. The JSON output will appear in the right panel
  5. Use "Copy JSON" to copy the result to your clipboard
  6. Use "Download .json" to save the result as a file

Example:

XML Input:

<root>
  <name>John</name>
  <age>30</age>
</root>

JSON Output:

{
  "name": "John",
  "age": "30"
}