XML to JSON Converter
Convert XML to JSON. Attributes, repeated elements and text are kept, and it tells you exactly where an XML error is.
Select converterXML to JSON
Comments and processing instructions are left out of the JSON.
How to convert XML to JSON
- Step 1
Type or paste your text.
- Step 2
Choose the options.
- Step 3
Press the button and copy or download the result.
Why convert XML to JSON with WASecret
XML to JSON is one of 538 WASecret Tools. It runs in your browser and is included in WASecret Pro.
Works in your browser
Your text is processed on this device. It is not sent to a server.
Starts right away
Results appear in this tab as soon as you run the tool.
Computer or phone
Use it in an up-to-date browser on your computer or phone, with nothing to install.
Included in WASecret Pro
One of 538 tools for PDFs, images, video, audio, text and design that come with WASecret Pro.
Questions about XML to JSON
What does XML to JSON do?
Repeated child elements become lists, attributes become "@name" keys and mixed text goes under "#text". Choose the attribute prefix, number and true/false conversion, and the indent. Example: <city id="1">Karachi</city> → {"city": {"@id": "1", "#text": "Karachi"}}.
What are the limits?
Comments and processing instructions are left out of the JSON. Input up to 200,000 characters is supported.
Is my input sent anywhere?
No. The tool's code is downloaded; your file or input is not sent to a server for conversion. Closing the browser stops the work.
How long does it take?
Usually a moment: the work happens in your browser as soon as you run the tool.
Does it work on a phone?
Yes, in an up-to-date mobile browser.
Is XML to JSON part of WASecret Pro?
Yes. XML to JSON is one of the 538 WASecret Tools included in WASecret Pro. Unlock them with your WASecret Pro license key.
538 tools, one WASecret Pro plan
PDF, image, video, audio, text and design tools that run in your browser, so your files stay on your device.