Convert XML to JSON
An RSS feed, a software export or an old API gives you XML, but your code works with JSON? TATA converts it right in your browser, without uploading the file.
How does it work?
- Drop your XML file or paste its content in the area above.
- JSON is already selected: the conversion starts on its own.
- Download the result or copy it.
Why convert XML to JSON
XML is still everywhere: RSS feeds, e-invoices, business software exports, sitemaps, older web services. But most modern tools, especially in JavaScript, are far easier to use with JSON.
Converting lets you explore an XML file quickly, reuse it in an app, or prepare data for an API.
What TATA does, exactly
Each XML element becomes a key. When an element repeats, like several item entries in a feed, they're grouped into an array.
Attributes are kept too, also as keys. The result appears instantly, with no Convert button. Your file stays on your device: nothing is uploaded or stored.
Tips
An element that appears once becomes a plain object, while a repeated one becomes an array. If your code always expects an array, handle both cases.
For several XML files, drop them together and download all the JSON files in one ZIP.
Frequently asked questions
Are XML attributes kept?
Yes. They become keys in the matching JSON object.
What happens to repeated elements?
They're grouped into an array under the element's name.
Can I convert an RSS feed?
Yes, as long as you have the file. Save the feed to your device, then drop it into TATA.
Is my file sent anywhere?
No. The conversion happens in your browser, and the site's security policy blocks sending data elsewhere.
All conversions: Data & spreadsheets →
Other conversions from XML
XML to Minified JSONXML to CSVXML to TSVXML to YAMLXML to TOMLXML to NDJSON / JSON LinesXML to INIXML to .envXML to Query stringXML to Excel (.xlsx)XML to OpenDocument CalcXML to Markdown tableXML to HTML tableXML to SQL (INSERT)XML to GeoJSONXML to GPXXML to KMLXML to TypeScript interfaceXML to Go structXML to Python dictXML to PHP arrayXML to JSON Schema
Convert to JSON
CSV to JSONTSV to JSONYAML to JSONTOML to JSONNDJSON / JSON Lines to JSONINI to JSON.env to JSONQuery string to JSONExcel (.xlsx) to JSONExcel 97 (.xls) to JSONOpenDocument Calc to JSONGPX to JSONKML to JSONGeoJSON to JSONJWT to JSON