Excel To XML

Login

Email
Password

Don't have an account yet?

Go to Sign up

{{ workbook ? 'Online Table Editor' : 'Input Data' }}
Change File Enter Data
Row Col Row Col
Transpose Clear Delete Empty Deduplicate
ABC abc Abc
Replace
First Row as Header
{{ displayRows.length }} rows x {{ displayHeaders.length }} columns{{ firstRowAsHeader ? ' (1 header)' : '' }} {{ selectedRows.length > 0 ? selectedRows.length + ' selected' : '' }}
Output Data
{{ copied ? 'Copied!' : 'Copy to Clipboard' }} Download File
Properties
Convert Excel to XML online — paste, edit, and download XML.

Escape XML Characters:
Escape XML special characters (<, >, &, ", ')
Minify Output:
Generate compressed XML, removing extra whitespace
XML Declaration:
Add XML declaration header (<?xml version="1.0"?>)
Attribute Mode:
Output data as XML attributes instead of child elements
CDATA Wrapper:
Wrap text content with CDATA to protect special characters
Indent Size:
2 spaces 4 spaces 8 spaces Tabs
Encoding:
Root Element:
Row Element:
Convert Restart
Insert Row Below
Insert Row Above
Insert Column Right
Insert Column Left
Delete Row {{ contextMenu.row + 1 }}
Delete Column {{ contextMenu.col + 1 }}
Clear Cell
Clear Row
Case sensitive Use regex Cancel Replace All

What Is XML?

XML (eXtensible Markup Language) is a markup language that defines rules for encoding documents in a format that is both human-readable and machine-readable. It uses tags to structure data hierarchically:

<?xml version="1.0" encoding="UTF-8"?><employees>  <employee><name>Alice</name><age>30</age><city>Berlin</city>  </employee></employees>

XML is used in:

  • SOAP web services — enterprise API communication

  • RSS/Atom feeds — content syndication

  • SVG images — vector graphics

  • Android layouts — UI definitions

  • Spring Framework — bean configuration

  • Sitemapssitemap.xml for SEO

  • Microsoft Office.docx, .xlsx are ZIP archives containing XML

  • SOAP/REST payloads — legacy enterprise integrations

  • XBRL — financial reporting

  • HL7/FHIR — healthcare data exchange

Why Convert Excel to XML?

Converting Excel data to XML enables integration with systems that require XML input:

  • Enterprise systems — SAP, Oracle, and legacy applications use XML for data import

  • Data feeds — Generate product feeds in XML for e-commerce platforms

  • Sitemap generation — Convert URL lists from Excel into sitemap.xml

  • Configuration files — Generate XML configs for Java, .NET, or Android projects

  • API payloads — Prepare XML request bodies for SOAP services

  • Content migration — Move spreadsheet data into XML-based CMS platforms

Supported File Formats

FormatExtensionNotes
Excel Workbook.xlsxDefault format since Excel 2007
Legacy Excel.xlsExcel 97–2003 format
Macro-Enabled.xlsmExcel with VBA macros (data only)

Multi-sheet workbooks are supported — a sheet selector appears when multiple worksheets are detected.

Core Features

Root Element and Row Element

Root Element defines the outermost XML tag wrapping all data. Defaults to root. Row Element defines the tag name for each data row. Defaults to row.

With root=employees and row=employee:

<employees>  <employee><name>Alice</name><age>30</age>  </employee></employees>

Attribute Mode vs Element Mode

Element mode (default) outputs column values as child elements:

<employee>  <name>Alice</name>  <age>30</age>  <city>Berlin</city></employee>

Attribute mode outputs column values as XML attributes:

<employee name="Alice" age="30" city="Berlin" />
ModeBest For
ElementComplex data, long text values, mixed content
AttributeCompact output, simple key-value pairs, metadata

XML Declaration

Enable XML Declaration to prepend <?xml version="1.0" encoding="UTF-8"?> at the top of the output. This is required for valid XML documents and recommended for any file that will be parsed by an XML processor.

CDATA Wrapper

Enable CDATA Wrapper to wrap text content in <![CDATA[...]]> sections:

<description><![CDATA[Price > $100 & < $500]]></description>

CDATA sections allow text to contain characters like <, >, and & without escaping. This is useful when cell values contain HTML, code snippets, or mathematical expressions.

Escape XML Characters

Enable Escape XML Characters to convert the five reserved XML characters to their entity references:

CharacterEntity
<&lt;
>&gt;
&&amp;
"&quot;
'&apos;

This ensures the output is always valid XML, even when cell values contain these characters.

Minify Output

Enable Minify Output to remove all whitespace, producing compact single-line XML. Reduces file size significantly for large datasets.

Indent Size

Control formatting with four options:

OptionConvention
2 spacesCommon for web configurations
4 spacesJava/.NET convention
8 spacesLegacy enterprise systems
TabsMinimal file size with structure

Encoding

Choose the character encoding declared in the XML header:

EncodingBest For
UTF-8Default. Full Unicode support, web standard
UTF-16Systems requiring wide character encoding
ISO-8859-1Legacy Western European systems

Full Table Editor

After uploading your Excel file, the built-in editor lets you:

  • Add, delete, and reorder rows and columns

  • Transpose rows to columns

  • Remove empty rows and duplicate rows

  • Apply case transformations (UPPERCASE, lowercase, Capitalize)

  • Find and replace values (with regex support)

Privacy

All processing happens in your browser. Your Excel files are never uploaded to any server.

How to Use the Excel to XML Converter

Step 1 — Upload Your Excel File

Drag and drop an .xlsx, .xls, or .xlsm file onto the upload area, or click to browse. If the workbook has multiple sheets, select the desired sheet from the dropdown.

Step 2 — Edit (Optional)

Use the toolbar to modify your data before conversion. Insert or remove rows and columns, transpose the table, deduplicate rows, or apply bulk case changes.

Step 3 — Set Root and Row Elements

In the Properties panel, enter names for the Root Element (outermost tag) and Row Element (per-row tag).

Step 4 — Configure XML Options

  • XML Declaration — toggle on to include <?xml ...?> header

  • Attribute Mode — toggle on for attributes instead of child elements

  • CDATA Wrapper — toggle on to wrap text in CDATA sections

  • Escape XML Characters — toggle on to escape reserved characters

  • Minify Output — toggle on for compact single-line output

  • Indent Size — select 2, 4, or 8 spaces, or tabs

  • Encoding — choose UTF-8, UTF-16, or ISO-8859-1

Step 5 — Convert and Export

Click Convert. The XML output appears in the Output Data panel. Click Copy to Clipboard or Download File (Premium) to save the .xml file.

Use Cases

  1. Product feeds — Generate XML product catalogs for e-commerce platforms (Google Shopping, Amazon)

  2. Sitemap generation — Convert URL lists from Excel into sitemap.xml for SEO

  3. SOAP API payloads — Prepare XML request bodies from spreadsheet test data

  4. Enterprise data import — Convert Excel data for SAP, Oracle, or legacy XML-based systems

  5. Android layouts — Generate XML resource definitions from design specifications

  6. Spring configuration — Create XML bean definitions from parameter tables

  7. Content migration — Move structured data from Excel into XML-based CMS platforms

  8. Financial reporting — Convert financial data to XBRL-compatible XML

FAQ

  • What Excel file formats does the Excel to XML converter accept?

    The converter accepts .xlsx (Excel Workbook), .xls (Excel 97–2003), and .xlsm (Macro-Enabled Workbook) files. Multi-sheet workbooks are supported with a sheet selector.

  • Does the tool upload my Excel data to a server?

    No. All conversion happens entirely in your browser using client-side JavaScript. Your files are never uploaded, transferred, or stored on any server.

  • What is the difference between Attribute Mode and Element Mode?

    Element Mode outputs column values as child XML elements (Alice). Attribute Mode outputs them as XML attributes on the row element (). Element Mode is better for complex or long text values; Attribute Mode produces more compact output for simple key-value data.

  • What does the CDATA Wrapper option do?

    When enabled, the CDATA Wrapper wraps text content in sections. This allows cell values to contain reserved XML characters (<,>, &) without escaping, which is useful for HTML content, code snippets, or mathematical expressions.

  • What does Escape XML Characters do?

    When enabled, the converter replaces the five reserved XML characters with their entity references: < becomes &lt;, > becomes &gt;, & becomes &amp;, \" becomes &quot;, and ' becomes &apos;. This ensures the output is always valid XML.
    
  • What encoding options are available?

    The converter supports UTF-8 (default, full Unicode support), UTF-16 (wide character encoding for specific systems), and ISO-8859-1 (legacy Western European encoding). The selected encoding is declared in the XML header.What encoding options are available?

  • Can I edit my Excel data before converting to XML?

    Yes. After uploading your file, a full table editor opens where you can add or remove rows and columns, transpose the table, deduplicate rows, change text case, and find and replace values.

Featured Tools

Featured tools that you might find useful.

Popular Tools

List of popular tools that users love and frequently use.

New Tools

The latest tools added to our collection, designed for you.

Topics

The tools grouped by topics to quickly find what you need.
Free online Excel to JSON converter. Transform XLSX, XLS, XLSM files into JSON arrays, objects, or keyed formats instantly in your browser — no upload, 100% private.

Excel To JSON

Free online Excel to JSON converter. Transform XLSX, XLS, XLSM files into JSON arrays, objects, or keyed formats instantly in your browser — no upload, 100% private.
Free Excel to CSV converter. Convert XLSX, XLS, XLSM to CSV instantly in your browser. No upload, 100% private. Edit, transpose, deduplicate before exporting.

Excel To CSV

Free Excel to CSV converter. Convert XLSX, XLS, XLSM to CSV instantly in your browser. No upload, 100% private. Edit, transpose, deduplicate before exporting.
Free online Excel to SQL converter. Generate CREATE TABLE and INSERT statements from spreadsheets for MySQL, PostgreSQL, SQLite, and SQL Server. Supports batch insert, primary keys, and type inference.

Excel To SQL

Free online Excel to SQL converter. Generate CREATE TABLE and INSERT statements from spreadsheets for MySQL, PostgreSQL, SQLite, and SQL Server. Supports batch insert, primary keys, and type inference.
Free online Excel to ASCII table converter with 10 border styles (MySQL, Unicode, reStructuredText, and more). Add code comment wrappers in 8 languages. Supports text alignment. Client-side processing.

Excel To ASCII Table

Free online Excel to ASCII table converter with 10 border styles (MySQL, Unicode, reStructuredText, and more). Add code comment wrappers in 8 languages. Supports text alignment. Client-side processing.