Guide
How to save a table from a web page as a CSV file
A CSV file is the most portable way to keep a table: every spreadsheet, database and script can read it. Most web pages don't offer a download button, though. Here's how to turn a table on any page into a CSV that opens with the right columns and the right characters.
First, look for an export button
Many dashboards, bank statements and data portals have a Download, Export or CSV link near the table, sometimes hidden behind a ⋮ or ⚙ menu. If there is one, use it: it gives you the full data, often including rows that aren't shown on the current page.
Method 1: through a spreadsheet
- Copy the table into Google Sheets or Excel (see copying a table into Excel or importing into Google Sheets).
- Check that every value sits in the right column.
- In Google Sheets: File > Download > Comma-separated values (.csv). In Excel: File > Save As and choose CSV UTF-8 (Comma delimited).
Pick CSV UTF-8 in Excel, not the plain CSV (Comma delimited) option. The plain one saves in an older encoding that turns characters like €, é and ü into question marks. In some regions Excel also uses a semicolon instead of a comma as the separator; that's fine for Excel, but other tools may expect commas.
Method 2: a browser extension
Going through a spreadsheet works, but it's two steps and the paste can still go wrong with merged cells. The free TableTap extension for Chrome saves the table directly:
- Open the page and click the TableTap button in the toolbar.
- Pick the table from the list. Hover it to see it highlighted on the page.
- Click Download CSV. The file is named after the table's caption or the heading above it.
The file is UTF-8 with a byte order mark, which is the signal Excel needs to show accented letters and currency signs correctly when you double-click it. Values that contain commas, quotes or line breaks are quoted the standard way, so they stay in one cell. Merged cells are expanded so every row has the same number of columns, and hidden cells are left out. Because it reads the page in your own browser tab, it also works on pages behind a login, and the data isn't sent anywhere.
If you'd rather have a real Excel file, TableTap Pro exports .xlsx, including every table on a page in one workbook.
Method 3: a few lines of code
For a public page you need to download regularly, a script is the most repeatable route. In Python with pandas:
import pandas as pd
tables = pd.read_html("https://example.com/page-with-table")
tables[0].to_csv("table.csv", index=False, encoding="utf-8-sig")
read_html returns a list with every table on the page; pick the right one by its position. The utf-8-sig encoding adds the byte order mark for Excel. It needs the lxml or html5lib package installed, and it can't see tables that a page builds with JavaScript after loading, or pages behind a login.
When the CSV looks wrong
- Everything lands in column A: the separator doesn't match your Excel's regional setting. Open it through Data > From Text/CSV and choose the delimiter yourself.
- Strange characters like é instead of é: the file is UTF-8 but was opened as another encoding. Use Data > From Text/CSV and set File origin to 65001: Unicode (UTF-8).
- Leading zeros disappear from postcodes or product codes: Excel converts them to numbers on opening. Import through Data > From Text/CSV, click Transform Data and set that column's type to Text.
- Long numbers turn into 1.23E+15: same cause and same fix as leading zeros.
Doing this often? TableTap is a free Chrome extension that lists every table on a page and copies it ready for Excel or Google Sheets. TableTap Pro (€19 once) adds real .xlsx export and clean-up options.