XML to JSON Converter
Change a XML document into JSON.
or drop files here
XML files · up to 30 MB each
How to convert XML to JSON
- Click “Choose files” (or drop your XML file onto the box). You can add several files.
- Check the options below the file name, if there are any. The defaults suit most files.
- Press “Convert”. The progress bar shows how far along the conversion is.
- When it finishes, press “Download” to save the .json file. Several results are offered as one ZIP.
About XML / JSON
XML file
A text format for structured data using tags, like <name>Ann</name>. Used for documents, feeds and data exchange.
Typical use: Data feeds, sitemaps, office files and system integration.
Strengths
- self-describing and very widely supported
- keeps nested structure and attributes
Limits
- wordier than JSON
- no fixed way to represent plain lists, so conversions follow conventions
- File extensions
- .xml
- MIME type
- application/xml
- Compression
- no compression
- Introduced
- 1998
JSON file
A text format for structured data: objects, lists, numbers and text. It is the usual language of web APIs.
Typical use: API data, configuration files, exports from apps and databases.
Strengths
- easy for programs and people to read
- keeps nested structure
Limits
- no comments or formatting
- needs a regular list of records to become a table
- File extensions
- .json
- MIME type
- application/json
- Compression
- no compression
- Introduced
- 2001
Frequently asked questions
Does it work without an internet connection?
After the page and the converter have loaded, the conversion itself does not need the internet. If you go offline before pressing Convert for the first time, the converter may not be able to load.
Is my XML file uploaded anywhere?
No. The conversion runs inside your browser, using code that is loaded together with this page. The file is read from your device and the JSON result is created on your device. Close the tab and nothing is kept.
Is there a size limit for XML files?
Yes: about 30 MB for this converter. The whole file has to fit in your browser's memory, so large files on a phone may fail sooner than on a computer.