XML to JSON Converter
Convert XML into readable JSON, handling attributes and nested elements.
Plenty of systems still speak XML — SOAP APIs, RSS feeds, Android layouts, enterprise configs — while modern code prefers JSON. Converting between them by hand is painful because XML has concepts JSON doesn't: attributes, mixed content, and repeated elements that should become arrays.
Paste XML and this tool parses it with the browser's native XML parser and emits clean JSON, representing attributes with an `@` prefix, collapsing text nodes, and grouping repeated elements into arrays. It's ideal for turning an RSS feed or SOAP response into something your JavaScript can work with directly. Parsing happens entirely in your browser.
How to use XML to JSON Converter
- 1
Paste your XML
A feed, config, or API response.
- 2
Review the JSON
Attributes, text and nested elements mapped over.
- 3
Copy the result
Use the JSON in your code.
Features
- Native browser XML parsing (well-formedness checked)
- Attributes preserved with @ prefix
- Repeated elements grouped into arrays
Frequently asked questions
Common mistakes to avoid
- Feeding HTML instead of XML — HTML's unclosed tags aren't valid XML.
- Expecting a lossless round-trip; XML's ordering and mixed content don't map perfectly to JSON.
Get new tools in your inbox
One email a month with new tools, guides, and updates. No spam, unsubscribe anytime.

