XML to JSON
Convert XML to JSON, preserving attributes and namespaces.
Related Tools
Convert JSON to well-formed XML.
Pretty-print XML with namespace, CDATA, and comment support.
Convert a JSON array of objects into a spreadsheet-ready CSV file.
Convert JSON to YAML while preserving key order.
Convert YAML to JSON with instant syntax validation.
Convert CSV to JSON with delimiter detection and header toggle.
Frequently Asked Questions
How are XML attributes represented?▾
Each attribute becomes a key prefixed with @, e.g.
What happens with repeated sibling tags?▾
They become a JSON array — two or more
What about mixed text and child elements?▾
Direct text content alongside child elements is captured under a "#text" key so no data is silently dropped.
Is my data uploaded anywhere?▾
No — the conversion runs entirely in your browser via the native DOMParser.