XML to Excel converter
Turn an XML file into an Excel spreadsheet. Repeated elements become rows, and your file never leaves your browser.
Drop an XML file here
Any XML file, up to 100 MB. It stays on your computer.
- No sign-up
- Nothing uploaded
- Excel or CSV
A clean spreadsheet from your XML, made on your computer.
Your file stays on your computer
The spreadsheet is built in your browser. Nothing is sent to Mammoth or anyone else.
Attributes become columns
An attribute like id="1041" gets its own column, next to the child elements.
Numbers stay numbers
Values that look like numbers arrive as numbers. Codes with a leading zero stay as text.
How to convert XML to Excel
The converter finds the element that repeats, gives each one a row, and gives every child element and attribute a column.
- 1
Add your XML
Drop an .xml file on the box, choose one, or paste the XML in.
- 2
Check the table
A preview shows the rows and columns the file will have.
- 3
Download
Save it as an Excel file, or as a CSV if that is what you need.
Other ways to do it
Excel can import XML itself, with a few more clicks.
Excel's Power Query
A file you refresh often
- Finds the repeating rows for youPartly
- Flattens nested elementsPartly
- Ready in one stepNo
- Refreshes when the file changesYes
Copy and paste
A few short records
- Finds the repeating rows for youNo
- Flattens nested elementsNo
- Ready in one stepNo
- Refreshes when the file changesNo
- This page
This converter
One-off files, deep nesting
- Finds the repeating rows for youYes
- Flattens nested elementsYes
- Ready in one stepYes
- Refreshes when the file changesNo
How to import XML into Excel with Power Query
Excel for Windows can open an XML file without a converter. It works best on flat files, and nested elements need expanding by hand.
Use Power Query when you want the workbook to refresh from the same file. Use the converter above for a one-off file, or when the XML is nested several levels deep.
- 1
Open a blank workbook and go to Data > Get Data > From File > From XML.
- 2
Pick your .xml file. The Navigator lists the tables Excel found in it.
- 3
Select the table that holds your records. A preview shows on the right.
- 4
Select Load to put it on a sheet, or Transform Data to expand nested columns first.
Your file stays private
The converter runs inside this page. Your XML is read and turned into a spreadsheet on your computer, and nothing is sent to Mammoth. That makes it safe for exports with customer or invoice data in them.
Once the page has loaded, it works with your internet switched off.
Converting XML exports every month?
Mammoth can take it from there. Put the converted Excel files in a folder and their rows are added to one table automatically.
Supplier invoices
| September | Sep 05 | Nordic Paper | 1,240.00 | |
| September | Sep 19 | Lisbon Freight | 860.50 | |
| October | Oct 03 | Nordic Paper | 1,180.00 | |
| November | Nov 07 | Atlas Office | 312.75 | |
| November | Nov 14 | Lisbon Freight | 905.20 |
Illustration. Every new file in the folder is added to the same table.