Kadben

Convert XML to Excel (XLSX)

Choose an XML file or paste XML to get an .xlsx file with one row per record. Nested elements and attributes become columns with dotted names.

Runs in your browser. Nothing is uploaded.

XML to Excel

Input
Options

The result appears here.

How to use it

  1. Choose an XML file, drop it on the box, or paste XML; the result appears at once.
  2. Check “Rows from”: the tool picks the largest list of repeated elements, such as every <order>. Choose another list if needed.
  3. Check the preview of the first rows.
  4. Download the .xlsx file and open it in Excel or another spreadsheet program.

Rules and limits

XML and JSON mapping

The array rule: nested data in columns

How the Excel file is written

Questions and answers

What if the wrong elements became rows?

Pick another list under “Rows from”. The first guess is the largest list of repeated elements. Elements that repeat inside each record, such as the <item> elements of an order, are not offered as rows: they become numbered columns.

How are nested elements and attributes turned into columns?

Column names follow the path with dots: customer.name, item.0.@sku, item.1.@sku. Attributes start with “@”; the text of an element that also has attributes is in a column ending in #text. An element that repeats in one record gets numbered columns in every record.

Why does a whole column stay text?

So that every value of a column has the same type: if 01067 stayed text and 80331 became a number, sorting and lookups would treat them differently. Remove the leading zeros, or turn off “Detect numbers and dates” to keep everything as text.

How large can the XML file be?

We tested a 20 MB XML file with 102,973 records: it gave a 12 MB .xlsx file in 5.5 to 7.5 seconds (Node.js on a 4-core laptop). Large files need much more memory than their size. An Excel sheet holds at most 1,048,576 rows and 16,384 columns.

Related tools