Convert XML and JSON.
Move the document.
Convert API payloads and feed data locally, keeping XML attributes and repeated child elements visible in the JSON output.
How do I convert XML to JSON? Paste XML or JSON to convert between the formats while keeping attributes visible.
XML and JSON converter
XML attributes are stored under @attributes, text under #text, and repeated elements become arrays. Review the mapping for your API's schema.
How to convert XML to JSON (or back)
- Paste the XML or JSON — the converter detects the direction.
- Convert — attributes, text, and repeated elements map with a clear convention.
- Eyeball the tricky parts — nested repeats and namespaced attributes deserve a second look.
Where this conversion earns its keep
- Modernising an old SOAP or RSS integration into a JSON pipeline
- Inspecting feed data as plain JSON
- Turning XML config exports into something your scripts prefer
Good to know
Mapping conventions matter more than raw conversion: attributes get a reserved prefix and mixed text becomes a node value, so check how your downstream code expects those to look. Namespaces and type inference are not guessed — for critical integrations, validate the converted payload against the receiving schema. Everything runs locally, which matters when documents contain credentials. Related: XML formatter and JSON formatter.
Does this upload XML?
No. Parsing and conversion happen in the browser, so the document stays on your device.
Can it convert every XML schema?
It handles well-formed XML and common attributes, text, and repeated elements. Namespaces and schema-specific typing may need manual review.