ToolsCandy

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

  1. Paste XML in the input panel.
  2. Choose attribute prefix (@, _, $) and text node key.
  3. Copy or download the JSON output.
  4. 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
  }
}

FAQ