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
  1. Paste your XML into the input editor.
  2. Click Convert.
  3. The equivalent JSON appears on the right - copy it with the clipboard icon.
  4. 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.