How to use it
- Choose an XML file, drop it on the box, or paste XML; the result appears at once.
- Check “Rows from”: the tool picks the largest list of repeated elements, such as every <order>. Choose another list if needed.
- Check the preview of the first rows.
- Download the .xlsx file and open it in Excel or another spreadsheet program.
Rules and limits
XML and JSON mapping
- Each element becomes a key with the element’s name. Namespace prefixes stay part of the name:
soap:Body. - Attributes become keys with an “@” in front:
id="7"becomes"@id": "7". Namespace declarations are kept the same way, as"@xmlns:soap". - An element with only text becomes that text. If it also has attributes or child elements, its text goes under
"#text":<price currency="EUR">12.50</price>becomes{"price": {"@currency": "EUR", "#text": "12.50"}}. - Elements that repeat under the same parent become an array, in document order. Interleaved names are grouped, so the order between different names is not kept.
- CDATA sections become ordinary text. Comments, processing instructions and the DOCTYPE are dropped. Entities defined only in an external DTD, such as
in XHTML, are kept as written, with a note. - An empty element such as
<note/>becomes"". Whitespace between elements is dropped and text is trimmed, except insidexml:space="preserve". - All values stay strings, because XML has no data types:
"00123"keeps its leading zeros.
The array rule: nested data in columns
- Nested objects get dotted column names:
customer.name,customer.address.city. - Arrays get numbered columns starting at 0:
tags.0,tags.1. Arrays of objects combine both:items.0.sku,items.0.qty,items.1.sku. - An empty object or array gives an empty cell under its own column name.
- Columns appear in the order they are first found. A value that a row does not have stays empty.
- Rows come from a top-level array if there is one. Otherwise the largest array of objects is used, for example
orders; you can choose another one under “Rows from”. Without such an array, the whole document is one row. On the XML pages, a document that is only a list of plain values gives one row per value, and a document with a single record gives one row without the root element’s name.
How the Excel file is written
- With “Detect numbers and dates” on, values such as
24.90become numbers and ISO dates such as2026-11-20or2026-11-20 14:30become date cells. Dates such as20.11.2026(and20/11/2026where the decimal separator is a comma) become date cells only when every value of the column has that form; other date formats stay text. - Each column is typed as a whole: if one of its values has a leading zero or a leading plus sign, the whole column stays text, so
01067and80331look alike. Numbers with 12 or more digits stay text, because Excel would show them in scientific notation or round them. When some values of a column of numbers or dates stay text, a note names the column and the first such row. A column of dates with one impossible date (29.02.2027), and a column whose numbers are mostly written with the other decimal separator, stay text as a whole, with a note, so that a sum never counts only part of a column. - The first row is the header: it gets an AutoFilter, and column widths follow the first 200 rows. There is no other formatting.
- A sheet holds at most 1,048,576 rows and 16,384 columns; a cell holds at most 32,767 characters. Larger data is refused, and longer text is cut with a warning.
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.