.xml to .json
XML to JSON
Turn any XML file into JSON.
Processed on your deviceYour files never leave your browser. Nothing is uploaded.
How it works
- Drop or paste one or more XML files.
- Your browser converts them to JSON. Nothing is uploaded.
- Download the result, or a ZIP when there are several files.
Good to know: Attributes become @name keys, mixed text becomes #text, and repeated tags become arrays. Not on webfrens.com yet. Several files download as a ZIP.
About the formats
XML: Structured data in tags. Also the format of UBL and PEPPOL BIS 3.0 e-invoices, used for e-invoicing in Belgium and across the EU.
JSON: Structured data from APIs, apps and config files. Nested objects are common.
Free limit
This counts as one conversion. You get 5 every 30 minutes for free. A batch of several files counts as one.
Questions and answers
How do I convert XML to JSON?
Drop your XML files on this page, or choose them, then press Convert. Your browser does the work and you download the JSON file, or a ZIP when there are several.
Will anything be lost?
Elements, attributes and text are all kept. Attributes become @name keys and repeated tags become arrays. Comments and namespace declarations are left out.
Can I convert several files at once?
Yes. Several files download together as a ZIP, and the whole batch counts as one conversion.