data utility
XML to JSON Converter
Convert local XML into readable JSON with attributes and text handled explicitly.
Convert XML to JSON
Convert local XML into readable JSON with attributes and text handled explicitly.
JSON
- Input
- —
- Output
- —
How it works
Paste XML and get JSON locally. Attributes use an @ prefix, text-only elements collapse to strings, and values stay strings to avoid silent number or date coercion. No upload or schema validation.
Limits
- Attributes use an @ prefix and text uses #text for mixed content; this shape is opinionated, not universal.
- All values remain strings; no number, boolean or date inference is applied.
- Does not validate against a DTD/XSD or preserve XML comments/processing instructions.
Questions
How are attributes represented?
Attributes use an @ prefix, for example item @sku. Text-only elements become strings.
Are numbers converted?
No. All values remain strings so leading zeroes and identifiers are not silently changed.
Privacy
Usage measurement is off for this tool. This page makes no analytics request. Your input is not sent to a server.