Why convert XML to JSON?
Legacy APIs, RSS feeds, sitemaps and configuration files still speak XML, while modern tooling expects JSON. Paste an XML document above and get an equivalent JSON tree you can inspect, query or feed into your code.
How it works
The document is validated first — malformed XML is rejected with an error — then parsed locally. Attributes are preserved with an ”@_” prefix, repeated elements become arrays, and numeric text values are typed as numbers.