How to Convert Webpage Table to CSV: A Practical Guide
By the LightCube Data team ยท Updated 2026-11-27
Knowing how to convert webpage table to CSV takes three steps: open the page in a table export tool, choose the source as a URL or saved HTML file, select the columns you need, and run the export. Each table becomes a separate CSV file you can open in Excel or Google Sheets.
TL;DR: - A webpage table becomes a CSV in three moves: pick the source, pick the columns, run the export. - You can point the tool at a live URL or an HTML file saved on your computer. - Pages with several tables produce several CSV files, so check the output folder before you start cleaning data.
What do you need before you convert a webpage table to CSV?
Three things: a page that contains an HTML table, a table export tool, and somewhere to save the result. The page can be anything you can open in a browser, including a reference site like Wikipedia, a report dashboard, or a price list. The tool can be a browser extension or a web app that runs the conversion for you. If you prefer a browser-based workflow, LightCube Data offers a way to extract and export HTML tables without writing code.
Preview the CSV before you copy anything into Excel or Google Sheets, so you catch formatting problems while the source page is still open.
How do you convert a webpage table to CSV step by step?
- Install the table export tool. Download the installer from the tool's site, open the downloaded archive, and run the setup file. On Windows, the installer may show an unknown publisher warning because the app is not registered as a verified publisher. Choose "More info" and "Run anyway" if you trust the source, then move through Next, Install, and Finish. A desktop shortcut appears when the install completes.
- Open the page and copy its URL. Visit the page that holds the table, right click the address bar, and copy the link. Keep the tab open, since some pages only render their tables after the page finishes loading.
- Launch the app and select the HTML source. Double click the desktop shortcut. On the first step, choose the URL option and paste the link you copied. If you have the page saved locally as an HTML file, select that file instead from your documents folder.
- Add the source and move to the next step. Confirm the URL appears in the source field, then click Next. The app reads the page and lists the tables it found.
- Choose the columns you want. Tick the headers you need and untick the rest. For a Wikipedia table of empires, you might keep "Empire", "Capital from", and "Duration in years" and leave the other columns out.
- Run the export and save the files. Click Run on the final step. Because a page can hold several tables, the app asks for a folder to place the results in. Pick your documents folder, click OK, and wait for the CSV files to be created.
Can you export only the columns you actually need?
Yes, and this is the part that saves the most cleanup later. The second step of the conversion shows the column headers detected in the table, and you select which ones to include before the export runs. Anything you leave unticked does not appear in the CSV.
Concrete example: on a Wikipedia page listing empires, the full table includes columns for the empire name, the capital city, the year the capital was established, and the duration in years. If your analysis only needs the empire name, the capital from a given year, and the duration, select those three columns. The resulting CSV contains three columns instead of the full set, so you do not have to delete extra columns in Excel or Sheets after the fact.
Column selection also keeps the file small and readable. A wide table with dozens of columns is harder to scan and easier to misread when headers are truncated. Narrowing the export at the source is usually faster than trimming a finished spreadsheet.
What happens when a page contains more than one HTML table?
You get one CSV file per table. The app detects each table on the page and writes them out separately, which is why the final step asks you to choose a destination folder rather than a single file name.
In the Wikipedia example, the page holds three tables, so the export produces three CSV files in the folder you selected. Open the folder and check each file, because the file names may not tell you which table is which. A quick way to identify them is to open each file and look at the header row. The file with the largest set of columns is often the main table, but verify rather than assume.
If you only need one table, work with the file that matches your headers. If you need all of them, open each CSV and paste the rows into one sheet, keeping the first header row.
How do you open the exported CSV file?
A CSV file is plain text. Each row is a line, and each value is separated by a comma. You can open it in a CSV viewer to see the columns laid out in a grid, or open it in Notepad to see the raw comma separated text. Both views are useful. The grid view confirms that the columns landed correctly, and the text view shows exactly what is in the file, including stray commas or quotes.
From there, open the file directly in Excel or upload it to Google Sheets. In Sheets, use File, Import, and upload the CSV, then confirm that comma is set as the separator. In Excel, open the file and let the text import wizard handle the split. If a column contains dates, currency symbols, or long numbers, check that those cells were not reformatted on import.
Should you use a browser extension or a web tool?
Both work, and the practical difference is where the conversion happens and how you get the file.
| Factor | Browser extension | Web tool |
|---|---|---|
| Setup | Install once, then use it from the page | Open a page and paste a URL |
| Source | The page you are already viewing | A URL you paste in |
| Output | Download to your computer | Download or copy to a clipboard |
| Best for | Repeated work on the same site | One-off tables and shared workflows |
| Local files | Can read a saved HTML file | Usually URL based |
If you convert tables from the same website every week, an extension saves the copy and paste step. If you only need a table occasionally, a web tool is the lighter option. LightCube Data is a browser-based option for people who want to extract and export HTML tables to CSV, Excel, or Google Sheets without setting up a script.
What should you check if the exported table looks wrong?
A few quick checks catch most problems.
- Missing rows: the page may load more rows as you scroll or after you click a show more control. Scroll through the table first, then export.
- Missing columns: a table built from images or a canvas cannot be read as HTML. Look for a real table structure in the page.
- Shifted values: merged header cells can push values into the wrong column. Compare the first few rows with the page.
- Odd characters: accents and symbols may arrive encoded differently. Open the raw text in Notepad to confirm the characters are present.
- One long line: if the file has no line breaks, the separator may not be a comma. Check the source table before importing.
Also check the row count. Compare the number of rows in the CSV with the number you see on the page. If they do not match, the export probably captured only part of the table.
Export any web table to CSV or Excel
Paste a page link into the LightCube web exporter and download its tables as CSV or Excel. Free for 25 rows; Pro is $9 once.
Try the web exporter ↗FAQ
Does converting a webpage table to CSV change the original page?
No. The conversion reads the table and writes a new file. The live page stays as it is, and you can close the tool without affecting anything on the site.
Can I send the result to Excel or Google Sheets instead of CSV?
Yes. CSV is the common format because Excel and Google Sheets both open it directly. You can also copy the extracted rows into a sheet, or export to Excel or Google Sheets from a tool that supports those formats.
What if the table only appears after I scroll down the page?
Scroll through the page and let the table load before you export. Some pages add rows as you scroll, so an export taken too early can miss the lower rows.
Why did the export create several CSV files?
A page can contain more than one HTML table. The tool writes each table to its own file, so open the output folder and pick the file whose headers match the table you need.
Do I need to install anything to convert a webpage table to CSV?
A browser extension needs a one-time install. A web tool runs in the browser with nothing to install. Either way, you need a spreadsheet app or a text editor to open the finished file.
Based on a video by NA: Html table to Csv. Written in our own words with added steps and an FAQ.