Skip to content

How to copy a table from a website into Excel or Google Sheets (without losing the columns)

By Andrii Boiko · 2026-10-23 · 5 min

You select a table on a web page, press Ctrl+C, paste into Excel — and get one giant cell, numbers that behave like text and merged rows that wreck the layout. This guide shows what works, when it breaks and how to make it a two-click job.

Why pasting a web table goes wrong

Websites are built to look like tables, not to be tables. Some use a real <table>, others stack <div> elements, and many load rows with JavaScript only when you scroll. Your browser copies what is on screen and Excel guesses the rest. Merged cells, hidden rows, icons, links and footnote markers all come along.

Method 1: Paste Special → Text

Paste with Ctrl+Shift+V (in Google Sheets: Paste values only) or Excel’s Paste Special → Text. This often keeps the grid and drops page styling.

Breaks when: the page blocks text selection, the table is built from <div>s, or the grid is virtualised so only the visible rows are copied.

Method 2: Excel → Data → Get Data → From Web

Power Query can load a table from a URL and refresh it later.

Breaks when: the table is rendered by JavaScript (Excel reads only the raw HTML), the page needs a login, or you see Table 0, Table 1… and have to preview each one. See Excel “From Web” can’t see your table.

Method 3: Google Sheets IMPORTHTML

=IMPORTHTML("https://example.com/page","table",1) pulls the first table of a page into Sheets.

Breaks when: the table is JavaScript-rendered (empty result), the site blocks Google’s fetcher (Could not fetch URL), or you have to guess the table index. More in why IMPORTHTML returns an empty table.

Method 4: Copy from browser DevTools

Right-click → Inspect → copy the <table> element, or run a small console snippet that builds CSV. It is free and works with JavaScript pages.

Breaks when: the table is virtualised or made of <div>s — and it is slow for anyone who is not a developer.

Method 5: A browser extension

An extension runs inside the page after rendering, so JavaScript tables and div grids are visible to it. With CleanTable (free, no row limit) it is two clicks:

  1. Right-click the table → CleanTable → Copy table (Excel / Sheets).
  2. Paste into Excel or Google Sheets. Every value lands in its own column, headers are detected, merged cells are expanded, checkboxes become true/false and images and link markup are removed.

Need CSV or Markdown instead? Same menu: Copy as CSV, Copy as Markdown, Download CSV.

Which one should you use?

Situation Best choice
Simple static table, one time Paste Special
Data you want refreshed in Excel Get Data → From Web (if the table is in the raw HTML)
Data you want refreshed in Sheets IMPORTHTML (if it is not JavaScript-rendered)
JavaScript table, div grid, infinite scroll Browser extension
A table you want as Markdown or JSON Browser extension

Limits worth knowing

CleanTable works on what you can see in the page after you click. It does not read tables that are pictures or PDFs, and Pro features (all tables to one XLSX, multi-page merge, grid capture) are a one-time paid upgrade.

Add CleanTable to Chrome — free

Related

Copy your next table the clean way

Free for single tables, no row limit, no account. Pro is a one-time payment.

Add to Chrome — it’s free