XML to JSON Converter — Attributes & Arrays
Convert XML to clean JSON in your browser. Configure attribute prefixes, text node keys, and array handling for legacy API payloads.
Your data never leaves your browser
XML input
JSON output
About this tool
XML to JSONAttribute mappingArray detectionLive previewDownload
How to use
- Paste XML in the input panel.
- Choose attribute prefix (@, _, $) and text node key.
- Copy or download the JSON output.
- Use JSON to XML for the reverse conversion.
Examples
Book catalog
<book id="bk101"><title>Guide</title><price>44.95</price></book>
{
"book": {
"@id": "bk101",
"title": "Guide",
"price": 44.95
}
}