Export a Wikipedia table to Google Sheets
Two easy ways. In Sheets, =IMPORTHTML("page URL", "table", 1) pulls the first table and refreshes. Or open the article, use LightCube Data Extractor, pick the table, click Copy and paste into A1. The extension is easier when the article has many tables and you are not sure of the index.
Do this in one click with LightCube Data Extractor, a free Chrome extension. No account needed.
Add to Chrome, free ↗Step by step
- Open the Wikipedia article.
- Use the extension: Tables, pick the table from the list, Copy.
- In Google Sheets, click A1 and paste.
- Or type =IMPORTHTML("URL","table",N) and adjust N until the right table appears.
Cleaning Wikipedia data
- Remove footnote markers like [1] with Find and replace using a regular expression such as \[\d+\].
- Convert numbers with commas using VALUE or Format > Number.
- Check merged header cells, which may become two rows.
Which to use
| IMPORTHTML | Extension | |
|---|---|---|
| Refreshes | Yes | No |
| Choosing a table | By index number | From a list with preview |
| Sortable tables | Works | Works |
Licensing
Wikipedia text is under a Creative Commons license that requires attribution. Credit the article if you republish the data.
FAQ
- Why does IMPORTHTML show the wrong table?
- The index counts every table, including navigation boxes; try other numbers.
- Can I export to CSV instead?
- Yes, click CSV. See the Wikipedia CSV guide.
- Is the extension free?
- Yes.
Related guides
Updated 2026-11-11.