Convert XML to JSON
XML is used by many enterprise systems, feeds and older APIs. JSON is the standard data format of web APIs and JavaScript. Paste your data or drop a file and the JSON result appears instantly, right in your browser.
Processed on your device. Nothing is uploaded.Paste data or drop a file to start. The result appears here instantly.
Your data is processed on this device only and is never uploaded.
Something wrong with this tool, or missing a feature?
How to use
- Paste your XML data into the input box, or drop a file anywhere on the page. Click “Sample” to try it first.
- The JSON result appears on the right straight away. Adjust the options below if needed (delimiter, header row, nested fields, indentation).
- Click “Copy” or “Download” to take the result with you.
FAQ
Is my XML file uploaded to a server?
No. The conversion runs entirely in your browser with JavaScript. Your data never leaves your device, so it is safe for customer lists, exports from internal systems and other confidential data.
How are nested fields handled?
When converting to a table (CSV, Excel), nested objects become columns with dot names such as address.city, and lists are kept as JSON text in one cell. When converting a table back to JSON, YAML or XML, columns like address.city are rebuilt into nested objects. Both can be switched off in the options.
Will numbers with leading zeros (zip codes, phone numbers, IDs) be changed?
No. Values such as 010 or 0912345678, and numbers longer than 15 digits, are kept as text so nothing is lost. Other numbers and true/false become real numbers and booleans; you can turn this off with “Detect numbers and true/false”.
How large a file can I convert?
Files up to 100 MB can be opened. Tens of thousands of rows convert in about a second; very large files depend on your device’s memory. Long results show a preview and the full file is available with Download.
Which formats are supported?
JSON (including JSON Lines), CSV, TSV, YAML, XML and Excel (.xlsx) can be converted in any direction, and any of them can also be turned into a Markdown table. Old .xls files need to be saved as .xlsx first.