Nested XML with attributes
A document with attributes and repeated elements becomes structured JSON.
<book id="1"><title>XML Basics</title></book>{ "book": { "@id": "1", "title": "XML Basics" } }Convert XML to JSON in your browser. Handles attributes, nested elements, repeated tags, and text nodes - no upload required.
Paste XML below.
Paste XML above or load the example to convert it to JSON.
One tap, no account. Your vote is saved in this browser and counted in our site analytics.
Attributes map to "@" keys and text content maps to strings or "#text".
Repeated sibling elements collapse into clean JSON arrays automatically.
Convert sensitive XML without uploading it to any server.
Copy from your editor, API responses, or config files.
The JSON output updates as soon as you paste valid XML.
Export the JSON to your clipboard or a .json file.
Convert an RSS, SOAP, or legacy XML feed into JSON so it can be consumed directly by JavaScript or a modern API client.
Turn exported XML records from an older platform into JSON for import into a database or newer application.
Inspect the JSON equivalent of an XML API response while building or testing an integration against that service.
Convert XML with many attributes into JSON to more easily spot which "@" fields and nested elements a document contains.
A document with attributes and repeated elements becomes structured JSON.
<book id="1"><title>XML Basics</title></book>{ "book": { "@id": "1", "title": "XML Basics" } }The XML parser runs using your browser’s built-in DOM APIs, so feed contents and attribute values are converted on-device and never transmitted to a ToolMint server.
An XML to JSON converter parses XML markup and produces an equivalent JSON object with attributes, nested elements, and text.
JSON is easier to work with in JavaScript and most modern APIs, so converting XML speeds up integration and debugging.
Supports a practical XML subset: elements, attributes (as "@" keys), nested and repeated elements (arrays), text ("#text"), comments, and CDATA. The prolog and DOCTYPE are ignored, namespaces stay as literal tag names, and numeric or boolean text is kept as strings.
Convert CSV to JSON Without Breaking Your Data
Why CSV to JSON conversions go wrong - quoted commas, line breaks inside cells, delimiters, and lost leading zeros - and how to check the output before it reaches your app.
URL Encoding Explained: Percent Signs, Plus Signs, and Double Encoding
How percent-encoding works, when to use encodeURIComponent versus encodeURI, why spaces sometimes become plus signs, and how to spot double-encoded URLs.
Seven Regex Mistakes That Break JavaScript Code
Unescaped dots, missing anchors, greedy matches, the stateful g flag, and catastrophic backtracking - what each mistake looks like and how to test for it before it ships.
Converter
Convert CSV to JSON instantly.
Updated Jul 20, 2026
Converter
Convert JSON arrays to CSV instantly.
Updated Jul 20, 2026
Converter
Convert JSON into pretty XML instantly.
Updated Jul 20, 2026
Converter
Convert YAML to JSON instantly.
Updated Jul 20, 2026
See every utility on the all tools page.
Found a problem or missing feature? Tell us - no account required.
Last updated: