HTML table to CSV converter
Turn any table on a web page into a CSV file for Excel, or paste it into Google Sheets. Free, no signup, and it runs entirely in your browser: nothing you paste is uploaded.
How to convert a web table to CSV
- Open the page with the table. Select the whole table with your mouse, from the first header cell to the last cell.
- Copy it with Ctrl+C (Windows) or Cmd+C (Mac).
- Click in the box above and paste with Ctrl+V or Cmd+V. The table appears in the preview straight away.
- If the page had several tables, pick one from the list. Untick Include the first row if you don’t want the header.
- Click Download CSV, or Copy for Google Sheets and paste into a sheet.
Pasting the page’s HTML source works too (right-click > View page source, copy, paste, then Find tables). That is handy when the table is too long to select. Or save the page (Ctrl+S / Cmd+S, “Webpage, HTML only”) and use Upload HTML file, or drop the file on the box: it is read in your browser, not uploaded to a server.
What it handles
- Merged cells.
colspanandrowspanare expanded so every row has the same columns. - Several tables on one page. Each is listed with its size; layout tables that only wrap other tables are skipped.
- Excel-friendly files. UTF-8 with a byte-order mark, so accents and currency symbols survive, and cells that a spreadsheet would run as formulas (starting with
=,+or@) are made safe. - Spreadsheet text. Tab-separated text copied from another spreadsheet is read as a table too.
When a converter isn’t enough
Copy-and-paste covers one table on one page. Three common cases need something else:
- The table spans many pages (Next buttons) or loads as you scroll. The free Grabby Chrome extension reads the table in your own browser, follows the Next button or keeps scrolling, and collects every row into one table to export to Excel or CSV. See how to scrape a table from a website and scraping multiple pages.
- It isn’t really a table. Product grids, search results and directories look like tables but are built from cards. Copying them gives a jumble; a scraper that understands repeating items gives clean columns.
- You want it to refresh. For a public page with a real
<table>, Google Sheets can fetch it with=IMPORTHTML("https://example.com/page", "table", 1), and Excel can with Data > Get Data > From Web (Power Query). Both fetch the page without a browser, so they don’t work on pages that build tables with JavaScript or block automated requests.
Frequently asked questions
How do I convert an HTML table to CSV?
Select the table on the web page with your mouse, copy it (Ctrl+C or Cmd+C) and paste it into the box above. The converter reads the table from your clipboard, shows a preview, and Download CSV saves the file. You can also paste the page’s HTML source.
Is my data uploaded anywhere?
No. The conversion runs in your browser with JavaScript; the table never leaves your computer.
Can I convert a saved HTML file?
Yes. Use Upload HTML file, or drag the .html or .htm file onto the box. The file is opened in your browser, not sent to a server, and every table in it is listed.
Does it handle merged cells?
Yes. Cells that span several columns or rows (colspan and rowspan) are copied into every cell they cover, so each row of the CSV has the same number of columns.
Why does Excel show strange characters in my CSV?
Excel sometimes reads CSV files with the wrong text encoding. The files from this converter start with a UTF-8 marker so Excel shows accents and symbols correctly.
Can I paste a URL instead?
Not here: browsers don’t let a web page download another site’s HTML. Open the page, copy the table and paste it. For a table spread over many pages, or loaded as you scroll, use the free Grabby extension, which reads the page in your own browser.
Can I get the table straight into Google Sheets?
Use Copy for Google Sheets and paste into a sheet. For public pages, Google Sheets can also fetch a table itself with =IMPORTHTML("https://…", "table", 1).