SKILLMERC tools

How to export a Wikipedia table to Excel, Google Sheets or CSV

Wikipedia tables look simple, but pasting them into a spreadsheet often goes wrong: merged cells shift columns, footnote markers end up in the numbers, and the links to each article are lost. Here are three free ways to do it, from quickest to most complete.

1. Copy and paste (fine for small tables)

  1. Select the table on the page, from the first header cell to the last cell.
  2. Copy, then paste into Excel or Google Sheets.

This works for small, plain tables. Check the result for footnote markers like [1] inside numbers and for rows that moved when a cell spans several rows. Links are not kept as separate columns.

2. Google Sheets IMPORTHTML (live copy, no add-on)

Google Sheets can pull a table straight from the page with a formula:

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

This is the best option when you only need the visible text of one table and want it to stay up to date. If it returns an error or an empty cell, see IMPORTHTML not working? Why it fails.

3. A browser add-on (keeps the links, handles lists too)

List & Table Scraper is a free Firefox add-on we make. Click its toolbar button on the Wikipedia page and it outlines the table it found and shows a preview. Real tables use their header cells as column names, and a column of links holds the full article addresses, which is handy if you want to open or scrape each article next.

It runs in your browser only: no account, and nothing is sent to a server.

A Wikipedia table with the List and Table Scraper preview

Which one should I use?

You want Use
A quick one-off copy of a small table Copy and paste
A copy in Google Sheets that stays up to date IMPORTHTML
The links as well as the text, or a list that is not a real table List & Table Scraper

Add to Firefox (free)


More guides