LightCube Data Extractor Add to Chrome ↗

IMPORTHTML in Google Sheets vs a Chrome extension

Use =IMPORTHTML(url, "table", n) when the page is public, the table is in the raw HTML, and you want the sheet to refresh automatically. Use a Chrome extension such as LightCube Data Extractor when the page needs a login, builds the table with JavaScript, or IMPORTHTML returns an error.

Do this in one click with LightCube Data Extractor, a free Chrome extension. No account needed.

Add to Chrome, free ↗

IMPORTHTML in 30 seconds

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

The third argument is the table index on the page, starting at 1. Use "list" instead of "table" for bulleted lists.

When IMPORTHTML fails

  • "Could not fetch URL": the site blocks Google servers or needs a login.
  • "Imported content is empty": the table is built with JavaScript.
  • Wrong table: the index counts hidden layout tables too.

Comparison

IMPORTHTMLExtension
Refreshes automaticallyYesNo, snapshot
Login pagesNoYes
JavaScript tablesOften noYes, after render
Pick table visuallyNo, by indexYes, with preview
Works outside SheetsNoCSV, JSON, clipboard

FAQ

How do I find the table index?
Trial and error with 1, 2, 3, or use the extension preview to see table order.
Does IMPORTHTML refresh?
Google re-fetches periodically, roughly hourly, and on reopen.
Is there an IMPORTHTML for Excel?
Excel uses Get Data > From Web, see the Excel comparison guide.

Related guides

Updated 2026-11-11.

Stop retyping
tables.

Add to Chrome, free ↗

Free, no account. Web exporter Pro is $9 once.