Guide · Wikipedia

How to copy a Wikipedia table to Google Sheets

Selecting a Wikipedia table and pasting it often breaks the columns or drags in footnotes. Here are two clean ways: a formula, and a two-click extension.

Add to Chrome — free
Free: every export, up to 50 rows per scan. Pro: unlimited rows and webhook push, $30 once or $9/month, taxes included.
SheetScraper detecting an encyclopedia-style table of planets and copying it for Google Sheets
Recorded with SheetScraper v1.0.3 on a demo article styled like an encyclopedia page, with sample figures.

How to do it, step by step

  1. Open the Wikipedia article in Chrome and click the SheetScraper icon.
  2. Click Auto-Detect Table. If the article has several tables, choose the one you want from the list in the side panel.
  3. Check the preview. The table's headers become your column names.
  4. Click Copy to Sheets.
  5. Open Google Sheets, click cell A1 and press Ctrl+V. Each value lands in its own column. Or click CSV and use File > Import.

The free formula way

Google Sheets can read Wikipedia tables by itself. In any cell, type:

=IMPORTHTML("https://en.wikipedia.org/wiki/List_of_largest_cities", "table", 1)

Change the last number to pick the 2nd, 3rd table and so on. The formula is free and stays linked to the page. It is a good choice when you know which table number you want. SheetScraper is quicker when an article has many tables, because you see each one before you copy it, and it works the same way on sites other than Wikipedia.

Wikipedia text is shared under the CC BY-SA licence. If you publish the data, credit Wikipedia and link to the article.

Questions

Why do some cells show a link in brackets?

When a table cell is a link, SheetScraper keeps the link next to the text so you do not lose it. If you only want the text, open the column editor to hide or tidy those columns before you copy, or use Find and replace in Google Sheets.

Does it work on other languages of Wikipedia?

Yes. SheetScraper reads the table on the page you have open, so it works on any language edition and on other wikis.

Is IMPORTHTML or SheetScraper better?

Use IMPORTHTML when you want a live link to one known table. Use SheetScraper when you want to see the table first, pick one of many, or copy from a site where the formula does not work.

Try it on your own page

I built SheetScraper because copying tables by hand wastes an afternoon. Install it, open a page, click Auto-Detect.

Add to Chrome — free
Free: every export, up to 50 rows per scan. Pro: unlimited rows and webhook push, $30 once or $9/month, taxes included.

More guides