Excel Tools

Excel to XML

Convert spreadsheet rows into a well-formed XML document. Header names become safe element names, you choose the root and row element names, and values can be written as child elements or attributes.

✓ Private · no uploads

SpreadsheetXML document

Runs locally in your browser

Options

No file selected yet.

Only the selected worksheet is exported, using its saved values. Fully empty rows are skipped.

How to use

  1. Choose or drop an Excel, OpenDocument or CSV file and pick the worksheet.
  2. Set the root and row element names, and choose child elements or attributes.
  3. Copy the XML or download it as an .xml file. The output updates as you type.

Examples

Feed a product list to an integration

The space in “Product name” becomes an underscore so the element name is valid, and the ampersand is escaped.

Input
SKU | Product name | Price
A-1 | Mug & Lid | 12.5
Output
<?xml version="1.0" encoding="UTF-8"?>
<rows>
  <row>
    <SKU>A-1</SKU>
    <Product_name>Mug &amp; Lid</Product_name>
    <Price>12.5</Price>
  </row>
</rows>

Rows to records

Many integrations — ERP imports, product feeds, legacy SOAP services and configuration systems — still expect XML. This converter maps each spreadsheet row to one record element inside a root element. Choose names that match the target schema, for example a products root with product rows.

Child elements write each value as its own element, which is the most common and most readable layout. Attributes put every value on the row element itself, producing compact output that some systems require. Values are machine-friendly: numbers and dates are written in a consistent format regardless of how the sheet displays them, while text stays exactly as displayed. Fully empty rows are skipped.

Pretty-print or check the document with the XML Formatter, convert XML back to a table with XML to CSV, or export the same sheet as XLSX to JSON.

Frequently asked questions

How are column headers turned into element names?

Characters that XML names cannot contain are replaced with underscores, names that start with a digit get a leading underscore, names starting with “xml” are prefixed, and duplicates get a numeric suffix. Empty headers become column_1, column_2 and so on.

Is the output valid XML?

Yes. It has an XML declaration, a single root element, escaped text and attributes, and characters that XML 1.0 forbids are removed.

How are numbers, booleans and dates written?

Numbers are written without display formatting (12.5 rather than $12.50), booleans as true or false, and date-formatted cells as ISO dates such as 2026-01-05. Text keeps its displayed value.

What happens to empty cells?

As child elements they become empty tags such as <Price/>. In attribute mode the attribute is left out.

Is my file uploaded?

No. The XML is generated in your browser.

Related tools