Free online XML converter

XML to Excel Converter – Convert XML to XLSX

Turn an XML file into an Excel spreadsheet (.xlsx). Choose which entries become rows, include nested fields and attributes as columns, and check the preview before downloading.

Files stay on your device Single or multiple worksheets Excel (.xlsx)
Free online tool

Convert XML to Excel

Files stay on your device

Your XML data

XML structure preview

Field names only

Choose the XML entries you want as rows in Excel.

If your XML uses namespaces, you may see names like ns1:Item. These help keep different fields separate.

Excel preview

Quick answer

How to Convert XML to Excel Online

Choose an XML file or paste its contents. Select which entries should become rows, then choose one worksheet or separate worksheets for all detected groups. Click Convert XML to Excel, check the preview, and download your .xlsx file. Nested fields and XML attributes can become columns, while values such as 00123 stay as text.

Private by design

Your XML file stays in your browser

The converter reads your XML, builds the spreadsheet, and creates the XLSX download on your device.

Processed locally

Your XML file is read and converted right here in this browser tab.

No account required

No account, email address, or payment details required.

Your information stays private

Your XML elements, attributes, and values are not sent to our servers.

No upload: your file is converted in this tab. We do not receive your file name or file content.
Three steps

How to Convert XML to XLSX

1

Choose or paste XML

Select an .xml file from your device or paste XML data into the input area. You can also try the built-in sample.

2

Choose the records

Choose the entries you want as Excel rows. You can put different groups of entries on separate worksheets.

3

Convert and download

Click Convert XML to Excel, check the worksheet preview and any data warnings, then download your XLSX workbook.

Example: one product

Convert a Single XML Record to Excel

Even if your XML contains just one product, you can turn it into one Excel row. In this example, the product ID, name, and price become three columns.

XML input

<products>
  <product id="00123">
    <name>Keyboard</name>
    <price>49.99</price>
  </product>
</products>

Excel worksheet: products

@idnameprice
00123Keyboard49.99

Download the XML sample file to try it in the converter.

Multiple worksheets

Convert Multiple XML Tables to Separate Excel Sheets

If your XML contains products and categories, choose All detected groups under Worksheets to create. The example below creates one worksheet for two products and another for two categories.

XML with two record groups

<catalog>
  <products>
    <product id="00123">
      <name>Keyboard</name>
      <price currency="USD">49.99</price>
    </product>
    <product id="00124">
      <name>Mouse</name>
      <price currency="USD">25.00</price>
    </product>
  </products>
  <categories>
    <category id="c1"><title>Accessories</title></category>
    <category id="c2"><title>Office</title></category>
  </categories>
</catalog>

Excel workbook output

products @id · name · price.@currency · price 2 product records
categories @id · title 2 category records
What is supported

XML to Excel Formats and Limits

The converter creates a standard XLSX workbook. XML values are written as text so product codes, identifiers, and date-like strings are not automatically reinterpreted as numbers or dates.

InputXML file or pasted XML text
OutputExcel workbook (.xlsx)
Maximum XML file size10 MB
XML structureUp to 100,000 elements and 128 levels of nesting
Maximum cells in one workbook2 million, including cells in all worksheets
Rows per worksheetUp to 1,048,576 rows, including the header row
Columns per worksheetUp to 16,384 columns
Data groupsUp to 12 listed automatically; export one or all listed groups
Nested elementsCan be flattened into columns
XML attributesIncluded as columns when enabled
Cell valuesXML text and attribute values are kept as text
PrivacyProcessed locally in your browser; no account required
Nested data and attributes

How XML Elements Become Excel Columns

XML often stores details inside other details. Choose which XML entries should become Excel rows, and the converter can place their names, values, and attributes in separate columns.

Repeated records become rows

Each product entry in a list of products can become its own row in Excel.

Nested fields become columns

A nested value such as address.city can become one column. You can change the separator used in column names.

Attributes become columns

An attribute such as id="00123" becomes @id. Attributes on nested elements use the parent path, such as price.@currency.

Similar field names stay separate

When fields belong to different XML namespaces, labels such as ns1:id and ns2:id help keep their values in separate columns.

Before you export

What XML Information Is Preserved in Excel?

Excel stores rows and columns, so it cannot keep every detail of an XML document. Here is what stays the same and what may change.

XML contentWhat happens in Excel
Element textWritten as text in a cell. Leading zeros and date-like strings are not automatically converted; surrounding whitespace is trimmed.
AttributesAdded as columns when Include XML attributes is selected.
Nested elementsFlattened into column names when Show nested fields as columns is selected.
Repeated simple valuesJoined in one cell with a vertical bar by default. You can choose to keep only the first value.
Repeated nested itemsSeveral items may be combined into one Excel row instead of appearing on separate rows.
XML namespacesLabels such as ns1 and ns2 keep fields with the same name in different namespaces from being mixed together.
Text mixed with nested elementsText and nested values become separate columns. Their original reading order is not kept.
Comments, formatting, and element orderNot preserved in the spreadsheet. Keep the original XML if these details matter.

The converter does not check your XML against a schema, preserve XML-only formatting, or add formulas to your Excel file.

Choose the right method

Import XML into Excel with Power Query or an Online Converter

Excel can import XML directly. Choose the method based on whether you need a quick one-time spreadsheet or a repeatable data-import workflow.

Microsoft Excel Power Query

  • Open Data → Get Data → From File → From XML in supported desktop versions.
  • Use the Navigator to inspect available collections and preview the data.
  • Better suited to repeatable imports and refreshable data workflows.
  • Offers additional transformation options for more complex sources.

Microsoft: Import data with Power Query

This XML to Excel converter

  • Useful for a quick XML to XLSX conversion without installing software.
  • Choose one detected record group or export all detected groups.
  • Preview flattened columns and attribute values before downloading.
  • Processes the source XML locally in your browser.

Convert XML to Excel now

For more ways to open XML directly in Excel, see Microsoft's XML import guide.

Troubleshooting

Common XML to Excel Conversion Issues

What you seeWhat to check
The wrong records appear as rowsChoose another option under Data to turn into rows, or enter a different XML path (advanced).
Nested values appear in one cellTurn on Show nested fields as columns and convert again.
An attribute column is missingTurn on Include XML attributes.
Repeated values are combinedThis is the default behavior. Review the warning or choose Keep the first value only if that is what you need.
Two fields have similar namesLabels such as ns1:id and ns2:id indicate fields from different XML namespaces.
The XML cannot be readCheck that every opening tag has a matching closing tag, special characters are escaped, and the document has no DOCTYPE declaration.
The file exceeds a limitSplit the XML into smaller files or export one record group at a time.
Good to know

XML to Excel Converter FAQ

How do I convert XML to Excel online?

Choose an XML file or paste XML text. Select which data should become Excel rows, choose one or multiple worksheets, and click Convert XML to Excel. Check the preview and download your XLSX file.

Can I convert XML to XLSX?

Yes. The converter creates an .xlsx workbook that you can open in Microsoft Excel, Google Sheets, Apple Numbers, and other spreadsheet apps.

Can it convert an XML file that contains only one record?

Yes. Even one product can become a row in Excel. If it does not appear in the list, enter its location in the XML path (advanced) field.

Can nested XML become Excel columns?

Yes. With Show nested fields as columns enabled, nested values can become columns such as address.city and address.zip. You can change the separator used in column names.

Can XML attributes become Excel columns?

Yes. Keep Include XML attributes selected to add attributes as columns. An attribute such as id appears as @id, while an attribute on a nested element can appear as price.@currency.

Can I convert multiple XML tables into separate worksheets?

Yes. Under Worksheets to create, choose All detected groups to put each type of record on its own worksheet. Choose Selected group (one worksheet) if you only need one table.

Does the converter preserve leading zeros and date-like values?

XML text and attribute values are written to Excel as text. Values such as 00123 and 03/04/2026 are not automatically changed into numbers or dates.

What happens when an XML element appears more than once?

By default, repeated values with the same name are joined in one cell using a vertical bar. You can instead keep only the first value, but the other values will be omitted. Repeated nested objects may lose their original row relationships when flattened.

Does it support XML namespaces?

Yes. If different XML namespaces use the same field name, the converter keeps them in separate columns using labels such as ns1:Item and ns2:Item.

What are the XML file and workbook limits?

The XML input can be up to 10 MB and contain up to 100,000 elements with a maximum nesting depth of 128. Up to 12 groups are listed automatically; for other data, enter its XML path manually. The workbook is limited to 2 million cells in total, 1,048,576 rows per worksheet including the header, and 16,384 columns per worksheet.

Is my XML file uploaded to a server?

No. XML parsing and XLSX generation run in your browser. The source XML is not uploaded to our servers.

Can I import XML into Excel without an online converter?

Yes. Supported desktop versions of Excel can import XML through Data, Get Data, From File, and From XML. Power Query is useful when you want to inspect, transform, or refresh data from a source.

More converters

Related Data Converters

Ready to convert XML to XLSX?

Choose an XML file or paste your data, review the records, and create your Excel workbook in your browser.

Go to converter