XML to JSON
Pick file or take photo
- ✓ Files stay on your device
- ✓ 181 tools, always free
- ✓ Runs in your browser
FAQ
How do I convert XML to JSON?
Choose the XML file and press Convert to JSON. You get a JSON file with the same structure.
How are attributes shown?
Each attribute becomes a key that starts with @, such as @id.
What happens when an element repeats?
The repeats become a JSON list under one key.
Where does an element's text go when it also has attributes?
Under a key named #text, beside the @ keys.
It says the XML could not be read. Why?
A tag is closed out of order or left open. Fix the file so every opening tag has a matching closing tag.
Is my file uploaded?
No. The file is converted inside your browser and never sent to a server. It is free.