XML to JSON Converter – Free Online, Private
This XML to JSON converter turns XML documents, RSS feeds, SOAP responses, sitemaps and config files into clean JSON. Repeated tags become arrays, attributes are kept with an @ prefix (or one you choose), mixed text is stored as #text, and numbers and true or false values can be turned into real JSON types. Invalid XML is reported with the parser message so you can fix it. Paste XML or open a file, then copy the JSON or download it as a .json file. The conversion runs in your browser with its built-in XML parser, so your data stays private.
XML to JSON Converter
Convert XML to JSON with attributes, repeated tags as arrays and number detection. Runs in your browser.
How to use the XML to JSON Converter
- Paste XML or open an .xml file.
- Pick the attribute prefix and other options.
- Read the JSON output on the right.
- Copy it or download a .json file.
Features
- Repeated tags become arrays
- Attributes with @, _ or no prefix
- Optional number and boolean detection
- Option to always use arrays
- Clear error message for bad XML
- Copy or download .json
Frequently asked questions
How do I convert XML to JSON?
Paste your XML in the input box. The JSON appears right away. Copy it or download it.
How are XML attributes shown in JSON?
By default an attribute like id="5" becomes "@id": 5. You can change the prefix to _ or remove it.
What happens to repeated elements?
Two or more tags with the same name inside one parent become a JSON array. Turn on Always arrays for a consistent structure.
Does it handle namespaces and CDATA?
Yes. Prefixed names like media:content are kept as keys, and CDATA text is kept as text.
Is my XML uploaded?
No. It is parsed in your browser and never sent anywhere.