1xA2ZOne Data. Any Format.
Live syncLocal-first · no data upload

Convert Excel to XML

Import an Excel file or paste a range into the Quick paste box and the tool writes XML with one element per row and one tag per column. Set the root and row tag names, then copy or download.

Runs entirely in your browser. Your data is never uploaded. Tiếng Việt

01

Spreadsheet

SheetsExcelCSVTSV
✦ Quick pasteSheets / Excel, CSV, TSV, Markdown, JSON, HTML, LaTeX, wiki…
0 rows · 0 columnsSelected cell: A1
02

Live Output

Markdowntwo-way
SyncedEdit directly; the table on the left updates itself
0 characters
Every change is processed right in your browserReady · LocalUTF-8 · by xuanhieu.org

When you need to convert Excel to XML

You usually convert Excel to XML to feed a product list, a price list or a staff list into a system that accepts only XML. Excel holds things an XML file built from a table cannot carry: formulas, colours, merged cells and the other sheets. The tool reads the displayed values of the first sheet and writes them as text inside tags. Column names with spaces are rewritten with underscores so that they form valid tag names.

How to do it

  1. Use Import file to open an .xlsx or .xls file, or copy a range in Excel and paste it into the Quick paste box, then press Load into table ↵.
  2. Only the first sheet is read. Move the sheet you want to the front, or copy its range instead.
  3. Check the grid: the header row will become tag names, so give columns clear names.
  4. Open the XML tab and ⚙ Options, fill in the root and row tag names, and decide whether to include the XML declaration.
  5. Press Copy result or Download file to get the .xml file.

A real example

The Product column became the Product tag, and a header with spaces would have its spaces replaced by underscores. The cell Keyboard | mechanical keeps its pipe, because XML does not treat it as special. The price 145.00 sits in its tag as text.

Input · Cells in Excel

SKUProductPriceStock
KB-01Keyboard | mechanical145.0021
MS-04Wireless mouse29.9047
MN-2424-inch monitor325.008

Result · XML

<?xml version="1.0" encoding="UTF-8"?>
<products>
  <product><SKU>KB-01</SKU><Product>Keyboard | mechanical</Product><Price>145.00</Price><Stock>21</Stock></product>
  <product><SKU>MS-04</SKU><Product>Wireless mouse</Product><Price>29.90</Price><Stock>47</Stock></product>
  <product><SKU>MN-24</SKU><Product>24-inch monitor</Product><Price>325.00</Price><Stock>8</Stock></product>
</products>

Options worth changing

Use headers as tag names
On, each Excel column becomes a tag named after its header. Off, the tool uses a generic cell tag and keeps the header row, which helps when Excel headers are long phrases that cannot be tag names.
Root tag name
Name the wrapping element, for example products. Use the exact name the receiving system requires.
Row tag name
Name the element for each product or record, for example product.
<?xml?> declaration
Keep it so the file declares UTF-8 at the top. Turn it off when you are pasting this block into other XML.

Common problems

Limits

Frequently asked questions

Do I need to save the workbook as CSV first?

No. Import the .xlsx or .xls file directly, or copy the cells and paste them into the Quick paste box.

What if the workbook has several sheets?

Only the first sheet is read. Move the one you need to the front, or copy that sheet's range.

Do accented column names break the XML?

No. Tag names keep their accents as long as the receiver supports UTF-8. Spaces become underscores.

Can XML be turned back into Excel?

Yes. Paste XML that starts with <?xml or <rows into the Quick paste box (or use Import file) and press Download .xlsx. Attributes are ignored and nested tags are read as text.

Is the Excel file uploaded?

No. The file is read inside your browser.

Related conversions

1xA2Z · Guide

Table statistics