How to export a table from a website to Excel or CSV
Updated November 2, 2026
Whether it's a sports standings page, a product spec list or a report inside a web app, there are a few reliable ways to get a web table into Excel or save it as a CSV file. The right one depends on whether the page is public, how it builds its table, and how often you need the data.
1. Copy and paste into Excel
- Select the table on the page, from just above the header row to just below the last row.
- Copy it (
Ctrl+C, or⌘Con a Mac). - In Excel, click cell A1 and paste. To skip web formatting, use Paste Special → Text or
Ctrl+Shift+Vwhere available.
Good for: small, simple tables. Watch out for: extra text picked up around the table, merged cells that shift columns, and numbers that paste as text.
2. Excel's "From Web" import (Power Query)
- In Excel for Windows, go to Data → Get Data → From Other Sources → From Web (or Data → From Web).
- Paste the page address and click OK.
- The Navigator lists the tables Excel found. Pick one, preview it, then click Load (or Transform Data to clean it up first).
- Use Data → Refresh All later to pull the latest version of the table.
Good for: public pages you want to refresh. Limits: like Google Sheets' IMPORTHTML, it only sees what the server sends. Tables behind a login, tables built by JavaScript after the page loads, and grids made of <div> elements often don't show up. Availability of this feature varies between Excel versions, and Excel on the web and on Mac have more limited options.
3. Save as CSV
Once the table is in Excel, choose File → Save As and pick CSV UTF-8 (Comma delimited). UTF-8 keeps accented letters and symbols intact. Note that a CSV holds only one sheet and no formatting or formulas.
Opening a CSV later? If leading zeros (ZIP codes, part numbers) disappear or dates change format, import it with Data → From Text/CSV instead of double-clicking, and set those columns to Text.
4. A browser extension (for logged-in pages and data grids)
An extension reads the page you're already viewing in your own browser, so it can export tables that an import can't reach: reports behind a login, dashboards, and tables rendered by JavaScript. TableToSheet lists every table and data grid on the page and downloads the one you pick as an Excel (.xlsx) or CSV file, or copies it ready to paste. It keeps columns aligned across merged cells and can turn formatted values, such as numbers with thousands separators or accounting-style negatives in parentheses, into plain numbers. It runs on your device; table data isn't sent anywhere.
Which method should you use?
- Quick one-off from a public page: copy and paste.
- Public table you want to refresh in Excel: From Web / Power Query.
- Logged-in pages, JavaScript tables, or exports you do often: an extension.
- Need a file for another tool or database: save or export as CSV UTF-8.
Cleaning up the result
- Numbers stored as text: select the column, click the warning icon and choose Convert to Number, or use Data → Text to Columns → Finish.
- Extra spaces: use
=TRIM(A2)in a helper column. - Repeated header rows from paginated tables: turn on a filter and delete them. To gather every page into one sheet first, see how to combine a multi-page web table into one spreadsheet.
- Footnote markers like
[1]stuck to values: use Find & Replace with wildcards, for example[*], carefully.
Want to summarize the table after you export it? See how to turn a web table into an Excel Pivot Table. Using Google Sheets instead? See how to copy a table from a website into Google Sheets. Need transactions from a PDF bank or credit card statement? Try credit card statement PDF to Excel.