How to use it
- 1Paste your XML or drop a file onto the input panel.
- 2Adjust the options — the result updates as you type.
- 3Copy the JSON or download it. Drop several files to convert a batch into one ZIP.
How XML becomes JSON
XML and JSON both describe nested data, so structure carries over directly: objects stay objects, lists stay lists, and key order is kept.
The differences are in the details each format can express — comments, nulls, dates and attributes — and the notes under the output tell you whenever something had to be adapted.
XML and JSON, briefly
XML describes documents with nested elements and attributes. It still runs enterprise integrations, SOAP services, product feeds, sitemaps and many government and banking formats.
JSON is the default language of web APIs and document databases. It nests objects and arrays to any depth and distinguishes strings, numbers, booleans and null, but has no comments and no date type.
Questions
How are XML attributes and repeated elements handled?
Attributes are kept as keys prefixed with @ (for example @id), element text that sits next to attributes goes under #text, and elements that repeat become arrays. You can drop attributes entirely with one switch.
Does the converter guess data types?
Yes, unless you turn it off. Whole numbers, decimals, true and false become real JSON numbers and booleans. Values with leading zeros (like ZIP code 00501), numbers longer than 15 digits and anything that isn't unambiguously numeric stay as strings, so IDs and phone numbers survive intact.