XML to JSON Converter

Turn XML data into clean JSON, right in your browser. Nothing is uploaded.

Other formats? Open the full File Converter for images, audio, video, documents and data.

Runs in your browser. Your files never leave your device.

XML to JSON questions

How does the XML to JSON converter work?

The XML is read with your browser's built-in parser; entity declarations are rejected and nothing external is ever loaded. The result is written as JSON indented with 2 spaces by default (0-8, or compact). Text that isn't valid UTF-8 is read as Windows-1252, with a note. You can convert up to 50 files at once and download them one by one or as a ZIP.

What is the difference between XML and JSON?

XML (Extensible Markup Language) is a tag-based data format used by feeds, configuration files and many older APIs. JSON (JavaScript Object Notation) is the standard text format for data in web APIs and apps, with nested objects and lists.

How are XML attributes and repeated elements represented?

The root element becomes the top-level key. Attributes become keys starting with @ (for example "@id"), text next to attributes or child elements goes under "#text", and repeated elements with the same name become an array. Values like true, false and plain numbers are converted; everything else stays text.

Are my files uploaded to a server?

No. The conversion runs entirely in your browser and your files never leave your device: there is no upload, no account and no watermark.