XML to JSON
Transform XML into structured JSON directly in your browser.
XML
JSON
- File size — up to 20 MB
- Input — valid XML
- Attributes become keys with the @ prefix
About the XML to JSON converter
XML is a format for exchanging structured data between services. It is used by APIs, RSS feeds, SOAP services, configurations and database exports. JSON is a modern format understood by all programming languages and almost all web applications. If you received data in XML format and want to process it in code — converting to JSON will be the first step.
Our converter transforms XML to JSON directly in your browser. The file is not sent to the server — all processing happens on your device. This means your data remains private and no one but you has access to it.
What the converter can do
- Nested tags: any level of nesting becomes a structure of objects.
- Attributes: become keys with the @ prefix (for example, @id).
- Text content: becomes the value of the #text field.
- Repeated tags: automatically become arrays.
- CDATA: processed as regular text.
How to use
- Drop the XML file, select it via the file browser, or paste the text manually.
- Click "Convert to JSON".
- Copy the result or download it as a data.json file.
Frequently asked questions
Where do my files go? Nowhere. The file is processed in the memory of your browser and disappears when you close the page.
Is there a limit on the number of conversions? No. You can convert as many times as you want.
How to distinguish an attribute from a tag? Attributes are in keys with the @ prefix. For example,
What if tags are repeated? The converter automatically creates an array. For example, several