XML to Excel Converter
Convert XML files to Excel spreadsheets. Automatically parse XML structure and export to .xlsx format.
Drop your file here or click to upload
Supports .xml · up to 50MB · or paste a file from your clipboard
How to Convert XML to Excel
- Upload, paste, or fetch XML - Choose an XML file, paste markup, or enter a CORS-enabled URL. The document is parsed in your browser.
- Select the repeating record path - Review the detected repeating elements and choose which XML path should become spreadsheet rows.
- Check flattening and namespace options - Preview the columns, decide whether to strip namespace prefixes, and confirm how attributes and repeated siblings are represented.
- Download the XLSX workbook - Export the rectangular preview as a standard Excel workbook with one row per selected XML record.
About XML to Excel Conversion
XML is a common export format for APIs, configuration files, and legacy systems. Use this free tool to convert XML to Excel - or XML to XLSX - and turn API exports and data feeds into spreadsheet rows online, entirely in your browser.
XML Structure Handling
Our converter automatically detects repeating elements in your XML and converts them to rows. Nested elements are flattened using dot notation (e.g., "address.city") and element attributes become their own @attribute columns, so both element values and attributes are preserved when you convert XML to Excel.
Why Real-World XML Often Converts to a Single Row
The most common complaint about online XML converters is that a file with hundreds of records comes out as one enormously wide row. It happens because many converters only inspect the top level of the document. Real exports rarely put records there:
<response> <!-- root: one child -->
<data> <!-- still one child -->
<records>
<record>...</record> <!-- the actual rows, three levels down -->
<record>...</record>
</records>
</data>
</response>A top-level scan sees a single <data> child, finds nothing repeating, and gives up - producing one row. This converter walks the entire document instead, collects every element path that repeats, and scores each by how many times it occurs and how many distinct fields it would produce. The strongest candidate becomes the row, and the rest are offered in the Rows come from selector so you can override the choice in one click. Ties prefer the outer element, so you get one row per <record>rather than one row per repeated field inside it.
Namespaces, Attributes, and Ragged Records
- Namespaces - prefixes such as
ns:are stripped from names by default so headers readnamerather thanns:name. Turn it off to keep them.xmlnsdeclarations never become columns. - Repeated siblings - numbered from
[1], sotag[1]means the same thing on every row. Converters that leave the first occurrence unnumbered misalign the column on rows that only have one. - Mixed content - text sitting alongside child elements is kept in a
#textcolumn instead of being discarded. - Ragged records - records with different fields are padded to a common column set, so the sheet is rectangular and sorting or filtering in Excel behaves.
How This Compares to Other XML to Excel Converters
A generic file converter can change an .xml extension into .xlsx without explaining which nodes became rows. For nested exports and API responses, that row-selection decision is the conversion.
| Tool | Where your file goes | Approach |
|---|---|---|
| ExcelTool.io (this page) | Browser only; pasted and uploaded XML is not sent to ExcelTool.io | Finds repeating elements at every depth, lets you select the record path, and exposes namespace, attribute, repeated-sibling, and null-shape behavior |
| Aspose XML to XLSX | Aspose servers; the page states deletion after 24 hours | Upload-and-convert workflow with a table-style option and account or plan gates displayed for larger files and batches |
| GroupDocs XML to XLSX | GroupDocs servers; XML uploads are retained for 24 hours | General document conversion with three free files per day and Premium batch conversion; the page exposes no record-path selector |
| Convertio XML to XLSX | Convertio cloud; uploads are deleted after conversion and outputs within 24 hours | General cloud format conversion with a 1 GB selector limit and no XML-specific row, namespace, or attribute controls shown |
XML-to-XLSX competitor workflows checked 2026-07-28 on the linked converter pages; their quotas and storage terms may be revised later.
XML is a tree, while a worksheet is a rectangle. This converter searches the whole tree for repeating record candidates, preserves attributes in dedicated columns, gives repeated siblings stable indexes, and pads ragged records to one column set. Without those explicit rules, a technically successful format conversion can still yield one unusable row or misaligned data.
Example XML Input
<?xml version="1.0"?>
<employees>
<employee>
<name>John Doe</name>
<department>Engineering</department>
<salary>75000</salary>
</employee>
<employee>
<name>Jane Smith</name>
<department>Marketing</department>
<salary>65000</salary>
</employee>
</employees>