Formatters

Validators

Converters

Encoders

Utilities

Generators

21 tools availableAll run in-browser
Advertisement · 970×90

XML to JSON Converter

Convert XML documents to JSON format. Handles attributes (@attr), nested elements, repeated elements (arrays), and text content.

XML Inputxml
0 chars
JSON Outputjson
0 chars

Frequently Asked Questions

How are XML attributes handled?

XML attributes are prefixed with @ in the JSON output. For example, <item id="1"> becomes {"@id": "1"} in the JSON.

What happens with repeated XML elements?

Repeated sibling elements with the same tag name are automatically converted to JSON arrays.

All processing happens in your browser. No data is sent to any server.