All tools
Free · Private · No upload

Convert HTML Table to XML Online

Convert an HTML table to XML online, free and private: your data never leaves your browser. Paste an HTML <table> snippet or drop an .html file, edit in a real spreadsheet grid, then export XML in element or attribute mode with custom tag names and pretty-print.

Drop a CSV or Excel file here

CSV · XLSX · XLS · XLSM · XLSB

or paste your data below

How to convert an HTML table to XML

Three steps from markup to well-formed XML.

1. Paste HTML

Paste an HTML table snippet, or drop an .html file. The first table found is parsed.

2. Edit in the grid

Fix values, reorder columns, add rows. The output updates in real time as you edit the spreadsheet.

3. Copy the XML

Copy the XML or download it as a file. Your data never left your browser.

Need this conversion in your own app?

The file parsing behind this page is powered by TabularJS: a zero-dependency JavaScript library that converts spreadsheet files to JSON in Node.js and the browser. 16+ formats, formulas, styles and merged cells included.

npm install tabularjs Zero dependencies

Frequently asked questions

Is this HTML to XML converter free?

Yes. No account, no sign-up, no watermark. Open the page and start converting.

Is my data private?

Yes. Everything runs in your browser. Your HTML is read and processed on your device. Nothing is uploaded, nothing is logged.

Can I paste a whole page?

Yes. The first table element found in the pasted HTML is parsed. Inline markup inside cells is reduced to its text content.

What is the difference between element and attribute mode?

In element mode, each column value is wrapped in a child element named after the column header. In attribute mode, each column becomes an attribute on the row element.

Can I customize the root and row element names?

Yes. Use the Root tag and Row tag fields to set any valid XML element name. They default to rows and row.

Can I embed this converter in my own app?

Yes. The engine that powers this page is the TabularJS JavaScript library. You can embed it in React, Vue, Angular or plain JavaScript.