Skip to main content

Free XML to JSON Converter Online

Convert XML to JSON online and turn feeds and data exports into clean, readable JSON. Upload files up to 20GB and download the converted result in a few clicks.

Drag & Drop your XML file here

XML files, up to 20GB

Privacy Files stay private.

Privacy Automatically deleted after 24 hours.

LinkPrivacy 20GB upload limit.

4.8/5

Trusted for 1,827,796+ conversions

HOW IT WORKS

Convert XML to JSON in three steps

Three steps, no account, nothing to install.

01

Add your XML

Drag and drop or upload a .xml file, such as a data export, an RSS feed or a sitemap. Any declared encoding is read, including UTF-16 and Windows code pages.

02

Convert to JSON

Keep JSON as the output format and start the conversion. Elements, attributes and text are mapped to JSON, and repeated elements become arrays in document order.

03

Download the JSON

Download one pretty-printed UTF-8 .json file with the root element as its single top-level key.

XML

XML (eXtensible Markup Language) is a text format that stores data as nested, named elements with attributes. It is used for RSS feeds, sitemaps, SVG images, SOAP web services, business and banking exports, and configuration files.

JSON

JSON is a structured text format built from objects, arrays, strings, numbers, and other simple values. It is commonly used for APIs, application data, automation, configuration, and machine-readable exports. JavaScript, Python and most other languages read it with a built-in parser.

FILE FORMATS

XML and JSON compared

SOURCE

XML

Extensible Markup Language describes data as nested elements with attributes, and is a W3C standard from 1998. RSS feeds, sitemaps, SOAP APIs, office file internals, bank exports and many configuration files are XML. It is strict and verbose, which is why web apps usually prefer JSON.

TARGET

JSON

JavaScript Object Notation, standardized as RFC 8259, is how web APIs, config files and NoSQL databases exchange data. It is plain text with named keys, strings, numbers, booleans, arrays and nested objects. Every programming language reads it, and tools like MongoDB, Postman and JavaScript apps expect it.

FeatureXMLJSON
Developed byW3CDouglas Crockford (RFC 8259)
File extension.xml.json
EditableYes (text)Yes (text)
LayoutNested elements and attributesNested objects and arrays
Best forFeeds, exports and configsAPIs, apps and databases
Opens inEditors, browsers, codeCode editors, browsers, APIs

USE CASES

Use Cases for XML to JSON

Practical workflows where XML to JSON conversion is useful.

logo

Read an RSS feed in JavaScript

Repeated item elements become an array of objects, with namespaced fields such as media:thumbnail and dc:creator kept as written.

logo

Move an XML config to a JSON-based tool

Bring the values of an XML configuration file into JSON, with attributes as @name keys next to each element's text.

logo

Inspect a SOAP or partner API response

Convert a saved SOAP response or B2B export to JSON and browse it in a JSON viewer or with jq. Prefixes such as soap:Envelope stay as written.

logo

Prepare XML records for a document database

Turn an XML export into JSON as the first step of loading it into a document database such as MongoDB.

logo

Process product feeds

Shopping and marketplace feeds in XML become JSON your scripts can loop through, with each repeated product element in an array.

logo

Convert Japanese or Chinese XML exports

Files in Shift_JIS, GBK or Big5 are decoded and written as UTF-8 JSON, so the text shows correctly in any editor.

logo

Handle .NET and Notepad encoding mix-ups

Files that say utf-16 but were saved as UTF-8 by .NET, or say UTF-8 but were saved in a Windows code page, are still read correctly.

logo

Check the URLs in a sitemap

A sitemap.xml becomes JSON with its url entries in an array, so a script can list every loc and lastmod value.

logo

Create front-end mocks from an XML backend

Developers convert XML responses from an older backend into JSON fixtures for front-end mocks and unit tests.

logo

Keep reading order in documents with inline markup

Paragraphs that mix text and markup, such as <p>Price <b>€2.50</b> today</p>, become an ordered #content list, so the text stays in order.

SUPPORTED FILES

Which XML Files Can I Convert?

XML documents and feeds in any declared encoding are supported.

RSS and Atom feeds

Items become arrays.

Data exports

Bank, ERP and government XML exports.

Namespaced XML

Prefixes such as dc:creator are kept.

Any encoding

UTF-16, Windows code pages, Shift_JIS, GBK and Big5.

Mislabelled files

Wrongly declared encodings are handled.

TROUBLESHOOTING

JSON Not What You Expected?

XML and JSON model data differently.

01

The same element is an object in one file and an array in another

One occurrence becomes an object; several become an array. Normalize in your code.

02

Numbers are in quotes

Every value stays a string, so 0042 and 1.50 keep their exact form.

03

It says the XML isn't well-formed

Most HTML pages aren't valid XML. The message gives the error position.

04

Text is under #text

An element with attributes keeps its text under #text.

05

HTML entities failed

Entities such as &nbsp; aren't defined in plain XML.

06

Deep nesting failed

Extremely deep structures are refused.

COMPARISON

dragdropdo vs. Spreadsheet Apps and Scripts

Excel, Google Sheets and a few lines of Python can do this conversion if you have them set up. dragdropdo converts XML to JSON in the browser, with nothing to configure.

What mattersdragdropdoSpreadsheet Apps and Scripts
Nothing to install✓Yes. Runs in any modern browser.~Spreadsheet apps or a Python setup.
Works on phones and tablets✓Yes. Desktop, Android, iPhone and iPad.~Spreadsheet apps work on phones; scripts don't.
Batch conversion✓Yes. Add many files and download one ZIP.~Scripts can; spreadsheet apps go one file at a time.
Share finished files✓Yes. Send a unique link from the result page.~You upload and share the files yourself.
Pricing✓Free with daily limits. $2.99 or $6.99 passes for unlimited use, no monthly plan.~Free (Google Sheets, LibreOffice, Python) to subscription (Excel).
Choosing the output layout✓Not in the converter. The layout is fixed.~Yes, with export options or code.

Other tools use different pricing, limits and workflows. This comparison describes dragdropdo's own features without assuming every other tool works the same way.

1.8M+

Files converted

and counting

4.8

Average rating

from our users

~4s

Avg. conversion

per file

0

Files kept

Auto-delete in 24h

WHY DRAGDROPDO

Built to be quick, safe, and free

Convert XML to JSON in your browser, with nothing to install and nothing kept after 24 hours.

Private by default

Files are encrypted in transit and deleted from our servers automatically after 24 hours.

No install required

Convert in any modern browser on Windows, Mac, Linux, Android, iPhone or iPad. No app and no sign-up wall.

Big files and batches

Upload files up to 20GB each, add several at once, and download the results one by one or as a ZIP.

Share & download

Save finished files to your device or pass them on with a share link from the result page.

FAQ

Frequently Asked Questions

Answers to common questions about dragdropdo's XML to JSON converter.