XML to JSON Converter
Convert XML to JSON online.
input.xml
output.json
About XML to JSON
Convert XML documents into equivalent JSON - useful when integrating a legacy XML API with a modern JSON-based codebase.
How to use it
- Paste your XML into the input editor.
- Click Convert.
- The equivalent JSON appears on the right - copy it with the clipboard icon.
- Click Load Sample to see a working example.
Tips & use cases
- XML attributes are typically converted to keys prefixed with @ - check the output structure matches what your code expects.
- See our JSON vs XML guide if you're deciding which format to use going forward.