Free ToolNo signup · No upload · Instant

Excel to XML Converter

Convert any Excel spreadsheet to XML in seconds. Customise the root and row element names, preview the output live, and download. Your file never leaves your browser.

Drop your Excel file here

or click to browse — .xlsx, .xls, .xlsm, .xlsb

100% private — your file never leaves your browser

How to Convert Excel to XML

1

Upload your file

Drop your Excel file onto the tool. Multi-sheet workbooks are supported.

2

Choose element names

Set the root element name and row element name. Defaults are "root" and "row".

3

Preview the XML

The tool shows a live preview of the first 5 rows as XML so you can verify the structure.

4

Download

Click "Download XML" to save the file. The filename includes the sheet name.

What Does the XML Look Like?

Given an Excel sheet with this data:

Name        | Country   | Revenue
------------|-----------|--------
Acme Corp   | USA       | 45000
Beta Ltd    | UK        | 32000

The output XML (with root="data", row="company") would be:

<?xml version="1.0" encoding="UTF-8"?>
<data>
  <company>
    <Name>Acme Corp</Name>
    <Country>USA</Country>
    <Revenue>45000</Revenue>
  </company>
  <company>
    <Name>Beta Ltd</Name>
    <Country>UK</Country>
    <Revenue>32000</Revenue>
  </company>
</data>

Column headers become the child element tag names. Special characters in values are automatically XML-escaped.

Frequently Asked Questions

How does the Excel to XML conversion work?

The tool reads your Excel sheet and creates one XML element per data row. The first row is used as column headers, which become the child element tag names. Special characters (&, <, >, ", ') are automatically escaped so the output is always valid XML.

Can I customise the XML element names?

Yes — you can set both the root element name (the outermost wrapper tag) and the row element name (the tag around each row). Column header names from row 1 automatically become the field element names inside each row.

What happens if my column headers have spaces or special characters?

Column headers are sanitised to valid XML tag names: spaces become underscores, and any character that is not alphanumeric, hyphen, underscore, or dot is replaced with an underscore. The preview updates live so you can see exactly how the output will look.

Can I convert multiple sheets?

One sheet at a time — select the sheet you want from the sheet tabs and click Download XML. The filename includes the sheet name. Repeat for each sheet you need.

Is there a row limit for the conversion?

No — the tool converts all rows in the selected sheet. For very large sheets (100,000+ rows), the XML file can be large but the conversion itself runs entirely in your browser with no size cap.

More Free Excel Tools