Advertisement · 970×90
XML to JSON Converter
Convert XML documents to JSON format. Handles attributes (@attr), nested elements, repeated elements (arrays), and text content.
XML Inputxml
JSON Outputjson
Related Tools
{}
JSON Formatter
Beautify, minify and validate JSON with syntax highlighting
</>
XML Formatter
Format and pretty print XML documents with indentation control
✓{}
JSON Validator
Validate JSON syntax and structure with detailed error reporting
✓<>
XML Validator
Validate XML documents for well-formedness and structure errors
Frequently Asked Questions
How are XML attributes handled?
XML attributes are prefixed with @ in the JSON output. For example, <item id="1"> becomes {"@id": "1"} in the JSON.
What happens with repeated XML elements?
Repeated sibling elements with the same tag name are automatically converted to JSON arrays.
All processing happens in your browser. No data is sent to any server.