Free · Turn XML into clear JSON

XML to JSON Converter

Convert elements and attributes into JSON that is easy to read, copy, and use in code.

  • Clear result
  • Private in your browser
  • Copy or download

Turn XML into clear JSON

Paste text or open a file. The result stays in this browser tab.

XML input13 lines · 378 characters

Tip: press Ctrl or Command + Enter to run.

JSON resultResult ready
Elements9
JSON size518 B
StatusReady
{
  "catalog": {
    "book": [
      {
        "title": "The Small Garden",
        "author": "Mina Lee",
        "price": {
          "#text": "18.50",
          "@_currency": "CAD"
        },
        "@_id": "bk-101",
        "@_language": "en"
      },
      {
        "title": "Le ciel bleu",
        "author": "Noah Roy",
        "price": {
          "#text": "21.00",
          "@_currency": "CAD"
        },
        "@_id": "bk-102",
        "@_language": "fr"
      }
    ],
    "@_updated": "2026-08-12"
  }
}

Three simple steps

How to use it

  1. Paste XML or open a file from your device.
  2. Press Convert to JSON to build the new shape.
  3. Attributes use an @_ label so they stay different from elements.

Your file stays on this device

fast-xml-parser reads and changes the text inside this browser tab. Bookify does not upload or save it. For safety, this tool does not open XML files with a DOCTYPE.