Documents and Office

How to Copy a Table from a Website into Excel Cleanly

Copy tables from web pages into Excel or CSV without broken merged cells, footnote marks or layout junk, using the clipboard or a saved HTML page.

Saizul Amin
Saizul Amin2 Nov 2026 · 4 min read
How to Copy a Table from a Website into Excel Cleanly

How to Copy a Table from a Website into Excel Cleanly

Websites are full of useful tables: statistics on encyclopedia pages, price lists, timetables, sports results, government data. Getting them into a spreadsheet should be a copy and paste, yet the result is often a mess. Headers that span two columns end up in one, values shift sideways, footnote markers stick to numbers so they cannot be summed, and half the page's navigation arrives as extra rows. This guide explains why that happens and how to get a clean table every time.

Why pasting into Excel goes wrong

When you copy part of a web page, your browser puts two versions on the clipboard: plain text and HTML. Spreadsheet apps try to interpret the HTML, but they handle merged cells, nested layout tables and multi-row headers inconsistently. A cell that spans two rows is placed in the first row only, so the second row has a hole. A header that spans two columns sits above the first and leaves the second unnamed. Footnote references are just text, so 371,000[1] stays as text.

Paste into a tool that understands table structure

The Table Extractor from Web Page Copy reads the HTML version of what you copied and rebuilds every table with its full grid. Select the table on the page, or the whole article if it contains several tables, copy it, then click the paste area and paste. On a phone, long-press the area and choose Paste. Each table found is listed with its caption and size.

If you have saved the page with your browser's Save page as command, drop the .html file instead, or the .mhtml single-file archive that Chrome and Edge can produce. That is the better route for long pages and for tables you will need again, because the saved file keeps everything that was loaded at the time.

Decide how merged cells should behave

There are two sensible ways to unmerge a cell. Repeating the value in every covered cell is best for analysis: if Canada, United States spans Superior and Huron, both lakes get that value, so filters and pivot tables work. Keeping the value only in the first cell matches the visual look of the original and is better when you are reproducing the table in a report. Pick one in the cleaning options; you can switch and compare.

Fix the headers

Many data tables use two header rows: a group name such as Population spanning two columns, with 2020 and 2025 underneath. Flattening that naively loses meaning. The extractor joins the rows into names like Population / 2025, which stay clear in a spreadsheet. Detection is automatic for tables that mark headers properly; for tables that do not, choose the number of header rows yourself. You can also promote the first data row to headers, or turn the headers back into a row, from the table editor.

Clean the values

Turn on footnote removal to strip markers such as [1], [a] and citation needed tags, along with trailing daggers and asterisks. Turn on number cleaning to convert 1,234,567 into a plain number that sorts and sums correctly; four-digit years and codes with leading zeros are left alone so they are not damaged. Empty rows and columns, often left by spacer cells, can be dropped. Line breaks inside cells can become spaces or be kept when they carry meaning, as in addresses.

Edit before export

Click any cell to correct it or rename its column, and remove stray rows such as a repeated header in the middle of a long table or a totals row you would rather recalculate. Every change can be undone. Rename the table too, because that name becomes the sheet name in Excel.

Export in the format you need

Excel export puts each ticked table on its own sheet. CSV suits databases and scripts. JSON gives each row as a record keyed by its headers, handy for developers. Markdown produces pipe tables ready for a wiki or a README. If a site splits one dataset over several tables with identical columns, such as one per year, the combine option stacks them into a single CSV with a column saying which table each row came from.

A word on fair use

Copying a table for your own analysis is everyday work, but republishing someone else's data may be restricted. Check the site's terms and credit the source when you share results.

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages