XML → JSON Converter
Convert XML to JSON online
Paste XML on the left and get clean, ready-to-use JSON on the right — attributes preserved, numbers parsed, repeated tags turned into arrays. Validated live, all in your browser.
🔒 100% private — conversion happens entirely in your browser. Nothing is uploaded or stored.
Turn XML into usable JSON instantly
Indentio parses your XML and emits tidy JSON the moment the input is well-formed. If a tag is unclosed or mismatched, the exact line and column is highlighted on the left so you can fix it before converting.
The mapping rules
- Elements → JSON keys, nested to match the document.
- Attributes → keys prefixed with
@_. - Repeated tags → JSON arrays.
- Numbers & booleans → real JSON numbers and booleans, not strings.
Good to know
- The input must be well-formed XML — invalid input is pinpointed with a red underline.
- Works with any XML dialect: SVG, RSS, Atom, XSD, WSDL, sitemaps, and more.
- Need the reverse? Use the JSON to XML converter.
Frequently asked questions
How do I convert XML to JSON?
Paste your XML on the left. As soon as it’s well-formed, the JSON appears on the right automatically. Then click Copy result or Download.
How are XML attributes represented in JSON?
Attributes become keys prefixed with @_ (for example id="1" becomes "@_id": 1), and element text becomes the value or a #text key when an element also has attributes.
Does it parse numbers and booleans?
Yes. Values that look like numbers or booleans are converted to real JSON numbers and booleans, so <price>9.95</price> becomes "price": 9.95.
What about repeated tags?
Repeated sibling elements with the same name become a JSON array automatically.
Is my XML kept private?
Yes — everything runs locally in your browser. Your XML is never uploaded or stored.