Language
HTML to Excel - Convert HTML Tables to XLSX Spreadsheets | ButDoc

Convert HTML Tables to Excel

A table on a web page you need to actually work with — sort it, total it, filter it. Upload your .html or .htm file above and the tables inside it become a real .xlsx spreadsheet with values in cells.

Below: how to get the page saved in a form that converts cleanly, why some pages come out empty, and the checks to run before you calculate with anything.

Getting the page in the first place

Most people arrive here with a web page rather than a file, and how you save it decides everything.

In your browser, use Save Page As and choose the option described as complete or single file rather than HTML-only. Then upload the saved file.

If the result is empty, the page probably builds its content with JavaScript. A great many modern sites send an almost blank HTML shell and fill it in after loading, so a saved copy contains the layout and none of the data. Two ways round it:

  • Copy the rendered table directly. Select it in the browser, copy, and paste into Excel — Excel understands table markup on the clipboard and usually lands it in cells correctly. For a single table this is often quicker than any conversion.
  • Save from the developer tools. Right-click the table, choose Inspect, find the enclosing <table> element, and copy its outer HTML into a text file. That captures what is actually on screen rather than what the server sent.

Many sites also offer a CSV or Excel download somewhere on the page. Worth a look before doing any of this.

What makes a table convert well

Conversion looks for real <table> markup — rows, cells, and ideally a header row in a <thead>. When a page uses that properly, the result is clean.

Three things reliably cause trouble:

Tables that are not tables. Plenty of sites lay out tabular-looking data with styled <div> elements using CSS grid or flexbox. It looks like a table and contains no table markup at all, so there is nothing for a converter to find. Copying the rendered content and pasting into Excel is the practical route.

Merged cells. A header spanning three columns, or a label spanning several rows, uses colspan and rowspan. These translate into merged cells in Excel, which look right and break sorting and filtering. Unmerge them and repeat the values before you try to work with the data.

Nested tables. Older sites, and most email templates, use tables for page layout with the real content in a table inside a table inside a table. Results are unpredictable, and extracting the innermost table by hand is usually faster than fighting it.

Check the numbers are actually numbers

This is the step to do before anything else, because getting it wrong produces wrong totals with no error message.

Values from a web page frequently arrive in Excel as text that looks numeric. When that happens SUM ignores them, sorting puts 100 before 20, and everything downstream is quietly incorrect.

The check takes two seconds: select a column of figures and look at the status bar at the bottom of Excel. If it shows a Sum, the cells are numeric. If it shows only Count, they are text.

Common causes on web data:

  • Currency symbols and thousands separators — $1,234.56 often imports as text.
  • Percentages written with the sign — 12.5% may arrive as a string rather than 0.125.
  • Non-breaking spaces. Web pages use these constantly, and they are invisible in a cell while stopping Excel recognising the number. Find and replace them if a column refuses to convert.
  • Footnote markers — an asterisk or dagger attached to a figure makes the whole cell text.

Data → Text to Columns → Finish converts a whole column in one step once you have cleaned the characters out.

Before you scrape a page

Worth a moment's thought, since this tool is often used on someone else's content.

Data displayed publicly is not automatically free to reuse. Many sites publish terms restricting automated extraction or commercial use, and databases carry their own protections in some jurisdictions — the European Union in particular has a specific database right separate from copyright.

In practice: taking a table for your own analysis is one thing; republishing it, or building a product on someone else's data, is another. If a site offers an API or a published dataset, that is the route they have sanctioned and it will usually be cleaner data anyway.

Frequently Asked Questions

My converted file is empty. Why?
The page most likely builds its content with JavaScript, so the saved HTML contains the layout and none of the data. Copy the rendered table straight from the browser and paste it into Excel instead.
Why does SUM ignore my numbers?
They imported as text, usually because of currency symbols, percentage signs, footnote markers, or invisible non-breaking spaces. Select the column and check Excel's status bar: only Count and no Sum means text. Clean the characters, then use Data → Text to Columns → Finish.
The page looked like a table but nothing converted.
Many sites build tabular layouts from styled <div> elements rather than real table markup, so there is nothing for a converter to find. Copying the rendered content and pasting into Excel is the practical alternative.
What happens to merged cells?
Colspan and rowspan become merged cells in Excel. They look correct but break sorting and filtering — unmerge them and repeat the values across the affected cells before working with the data.
Does styling and colour carry across?
Some basic formatting may, but the goal is the data. Anything you need for presentation is quicker to apply in Excel than to preserve through the conversion.
What if the page has several tables?
Each is converted in turn. If you only need one, extracting just that table's markup into a separate file first gives the cleanest result.
Is my file kept private?
Files are transmitted over an encrypted connection, processed automatically without human review, and permanently deleted from our servers within 60 minutes. Full detail is in our Privacy Policy.

Related tools

Going the other way, Excel to HTML turns a sheet into web table markup. PDF to Excel rebuilds tables from a PDF, Excel to CSV gives plain data for another system, and HTML to Word handles pages that are mostly prose. Browse all Excel tools.