How to Copy a Table from a Website into Google Docs™ or Sheets™
Copying a table from a web page sometimes just works — and sometimes falls apart completely. Learn when a plain paste is enough, how IMPORTHTML pulls web tables straight into Google Sheets™, and how to fix a broken paste.
Travis
Simple HTML tables paste straight into Google Docs™ as real tables. For Google Sheets™, the IMPORTHTML function can pull a web table in without any copying at all. And when a page's table falls apart on paste, paste it as plain text and convert it in place.
Web tables range from clean HTML grids (which travel well) to layouts assembled from styled boxes (which don't). Here's the decision path.
First try: just copy and paste
- On the web page, click before the first cell and drag through the last cell of the table.
- Copy (
Ctrl+C/Cmd+C) and paste into Google Docs™ or Sheets™.
If the source is a genuine HTML table, Docs™ creates a proper table and Sheets™ fills a matching cell range. Adjust column widths and you're done. If instead you get one long column, squashed text, or scattered fragments, move on to the next options.
Google Sheets™: pull the table with IMPORTHTML
For tables on public web pages, Sheets™ can fetch the data itself — no clipboard involved:
- In a blank cell, enter:
=IMPORTHTML("https://example.com/page", "table", 1)- The third argument is the table's position on the page —
1for the first table,2for the second, and so on. Try different numbers until the right one appears. - The data loads as regular cells and refreshes automatically when the page changes.
To freeze the current values, copy the range and use Edit > Paste special > Values only — or copy the range into Google Docs™ to place it in a document.
Fix a broken paste with the Text To Table Converter Add-On
When a site's "table" is really styled markup, the paste often lands as lines of text. Rebuild it in place:
- Paste into your Doc, Sheet, or Slide using right-click > Paste without formatting — plain text is the cleanest starting point.
- Select the pasted lines.
- Run
Extensions>Text To Table Converter>🔤 ➜ 🔡 Selected Text to Table. The Add-On detects the separators and builds the table.
This is also the only practical route in Google Slides™, where neither table pastes nor IMPORTHTML exist.
A note on copyright
Being able to copy a table doesn't mean you may republish it. For anything beyond personal use, check the site's terms and credit your source.
Get the Add-On
Add-on मुफ्त पाएं
Text To Table Converter
Rebuild web tables for free: Use the free Text To Table Converter add-on to turn pasted text into clean tables in Docs™, Slides™, and Sheets™.
Next Step: Tables Trapped in PDFs
- How to Copy a PDF Table to Google Docs™ - The Easy Way - The same paste-then-convert approach, applied to PDF files.