// free-toolXML → JSON
XML to JSON
Paste XML and get structured JSON: attributes are kept with an @_ prefix, repeated sibling elements collapse into arrays, and text content is preserved. Parsing runs locally with fast-xml-parser — useful for taming legacy SOAP or RSS payloads.
no signup · no watermark · unlimited use
Frequently asked questions
How are XML attributes handled?
They are preserved on the JSON object with an @_ prefix (e.g. @_id), so no information from the XML is lost.
Is my XML uploaded?
No — parsing happens in your browser.
More data tools
CSV to JSON
Parse CSV (with headers) into clean JSON arrays.
JSON to CSV
Flatten a JSON array of objects into spreadsheet-ready CSV.
JSON to YAML
Convert JSON into clean, readable YAML for configs.
YAML to JSON
Parse YAML (with anchors and multi-docs) into formatted JSON.
JSON to XML
Serialize JSON objects into well-formed, indented XML.
JSON Formatter
Format, minify and validate JSON with precise error locations.
Need custom tools like this in your product?
I build fast, privacy-first web applications with Next.js — these converters run entirely in the browser, and yours can too.