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.

XMLJSON
Paste XML to convert
Input · XML
Output · JSON

🔒 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

Good to know

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.