本文へスキップ

Convert Excel to XML

Turn an Excel sheet or CSV into XML with one element per row and the column headers as element or attribute names; the sheet is read on your device.

Convert to
Drop a JSON, CSV or Excel fileXML up to 100 MB · JSON, CSV, XLSX, XLS, ODS up to 500 MB
ファイルを選択端末上で処理 — アップロードされません
ブラウザで動作・アップロード不要しくみ

Excel to XMLの使い方

  1. 1

    Drop the spreadsheet

    XLSX, XLS or ODS — or a CSV file. Pick the sheet if the workbook has several.

  2. 2

    Name the elements

    Choose the root element, the element written for each row, and whether columns become child elements or attributes.

  3. 3

    Save the XML

    Check the output, then download the .xml file or copy it.

制限と Pro

Spreadsheets and CSV files up to 500 MB; one sheet at a time.

Files up to 4 GB. Pro を見る

Excel to XML について

Excel to XML writes the rows of a spreadsheet as XML: one element per row inside a root element, with the column headers as names. A sheet with the columns sku, name and price becomes <rows><row><sku>A-1</sku><name>Pen</name><price>1.5</price></row>…</rows>, or, with columns as attributes, <row sku="A-1" name="Pen" price="1.5"/>. Both element names can be changed — products and product, for instance — to match what the receiving system expects.

Headers rarely make valid XML names on their own, so they are repaired: spaces and punctuation become underscores, a header starting with a digit gets a leading underscore, and two columns with the same header become name and name_2. Cyrillic and other non-Latin headers are allowed in XML and kept as they are.

Values are written as the sheet stores them, not as displayed: 1200 rather than $1,200.00, dates as ISO 8601 (2026-03-31, with the time when there is one) and formulas as their last calculated result. Empty cells become empty elements, or are left out if you prefer smaller records. Special characters are escaped, and the file is UTF-8 with an optional XML declaration.

CSV files work the same way, with the delimiter and the text encoding — UTF-8, Windows-1251 or Windows-1252 — detected or chosen by hand. Switch off "First row is the header" for a sheet without one; columns are then called Column_1, Column_2 and so on. Only one sheet is converted at a time.

プライバシー

The workbook or CSV is read with SheetJS in a worker inside this tab and the XML is written there too; nothing is uploaded and the file isn't kept.

Excel to XML:よくある質問

How do column headers become XML tags?
Each header is used as the element name, after making it valid: “Unit price” becomes Unit_price, “2026 total” becomes _2026_total, and a repeated header gets _2, _3. If you'd rather keep the original text, rename the headers in the sheet first. Without a header row the columns are named Column_1, Column_2 and onwards.
Can each row be a single element with attributes?
Yes — set “Columns as” to Attributes. Every row is then written as one self-closing element, such as <row id="7" city="Bukhara"/>, which many import formats and configuration files use. Attribute values are escaped, including quotes and line breaks, so text from any cell is safe to use.
Are dates and prices written as Excel shows them?
They are written as stored. A price formatted as 1 200,00 so'm is written as 1200; a date shows up in ISO form, 2026-03-31, which XML schemas use for xs:date. Formulas contribute their last calculated value. If you need the displayed text instead, format those columns as text in Excel before converting.
Does it convert all sheets of the workbook?
One sheet per conversion. Choose it in the Sheet list; to convert another sheet, pick it and download again, as the workbook stays loaded. Rows that are completely empty are skipped, and the first row with data is treated as the header unless you switch that option off.
Can I convert CSV to XML too?
Yes. Drop a .csv or .tsv file instead of a workbook; the delimiter and the encoding are detected, and you can override them in the input options — Windows-1251 helps with Cyrillic exports from older programs. The rows are then written as XML exactly like the rows of a sheet.

このツールでできるほかのこと