Copy Table from Website to Excel — 3 Methods Compared

You found a table on a website — stock prices, sports stats, product comparisons — and you need it in Excel. You try copy-paste: broken formatting, merged cells, missing data. Sound familiar? Here are three methods that actually work, tested on 50+ websites.

Quick answer

Fastest method: Use HTML Table Exporter to export directly to XLSX. Click the extension, click XLSX, open in Excel. Takes 10 seconds, works on JavaScript tables, preserves formatting perfectly.

Why copy-paste from websites breaks in Excel

Before we look at solutions, it helps to understand why the obvious approach fails. When you copy a table from a website, you are copying HTML — not just the text. That HTML includes:

  • Invisible elements — Icons, buttons, and hidden spans that become visible text in Excel
  • CSS styling — Colors, fonts, and spacing that Excel interprets unpredictably
  • Merged cells — HTML colspan and rowspan that create merged cells in unexpected places
  • Non-breaking spaces — Special characters that look like spaces but are not, breaking number formatting
  • JavaScript content — Tables rendered by JavaScript that do not exist in the raw HTML at all

The result? A mess that takes longer to clean up than it would have taken to type the data manually.

Common symptom

If your pasted table has numbers that will not calculate (SUM returns 0), the cells probably contain hidden characters. You will need to use CLEAN() and TRIM() functions, or re-export the data properly.

3 methods to copy tables to Excel — compared

Here is how each method handles the common challenges:

MethodSpeedJavaScript tablesLogin pagesFormattingBest for
Copy-pasteFast✗ Fails✓ WorksOften breaksSimple HTML tables
Excel Power QueryMedium✗ Fails✗ FailsGoodPublic, refreshable data
Browser extensionFastest✓ Works✓ WorksPerfectMost use cases

Let us walk through each method in detail.

Method 1: Copy and paste (manual)

When to use: Simple tables on basic HTML pages. Worth trying first — it takes 5 seconds to know if it works.

Steps

  1. Navigate to the page with the table
  2. Click and drag to select the entire table (or triple-click to select a row, then Shift+click the last row)
  3. Press Ctrl+C (Windows) or Cmd+C (Mac)
  4. Open Excel, click the cell where you want the data
  5. Press Ctrl+V to paste

Pro tip: Paste Special

If regular paste creates formatting chaos, try Paste Special:

  1. After copying, right-click in Excel
  2. Select Paste Special > Text (or press Ctrl+Shift+V)
  3. This strips formatting but may also lose table structure

When this method fails

  • JavaScript-rendered tables — Many modern sites (Google Finance, sports stats, dashboards) render tables with JavaScript. You will copy empty cells or "Loading..." text.
  • Complex formatting — Tables with nested elements, icons, or interactive features paste as garbage.
  • Hidden columns — Some sites hide columns with CSS; copy-paste includes the hidden data in wrong places.

If copy-paste fails, move to Method 2 or 3.

Method 2: Excel Power Query (From Web)

When to use: Public pages where you need to refresh data periodically (stock prices, exchange rates, public statistics).

Steps

  1. Open Excel and go to Data tab
  2. Click Get Data > From Other Sources > From Web (or just From Web in newer versions)
  3. Paste the URL of the page containing the table
  4. Excel will connect and show all detected tables — select the one you want
  5. Click Transform Data if you need to clean it, or Load to import directly

Advantages

  • Refreshable connection — Right-click the table and select Refresh to update data
  • Transform capabilities — Power Query can clean, filter, and reshape data before loading
  • No extensions needed — Built into Excel

When this method fails

  • Login-required pages — Power Query fetches the page as an anonymous visitor. If the table is behind a login, you will get the login page instead.
  • JavaScript tables — Power Query reads raw HTML. If the table is rendered by JavaScript (React, Angular, Vue, or plain JS), Power Query sees an empty page.
  • Dynamic content — Tables that load on scroll or button click will not appear.

How to check if a table is JavaScript-rendered

Right-click the page and select "View Page Source". Search for some text from the table. If you cannot find it in the source code, the table is rendered by JavaScript and Power Query will not see it.

Method 3: Browser extension (recommended)

When to use: Any table you can see in your browser — including JavaScript tables, logged-in pages, and complex formatting. This is the most reliable method for modern websites.

A browser extension runs inside your browser, which means it sees exactly what you see. If the table is visible on your screen, the extension can export it.

Steps with HTML Table Exporter

1

Install the extension (30 seconds)

Go to the Chrome Web Store and click "Add to Chrome". No account needed, no permissions to your data.

2

Navigate to your table

Go to any page with an HTML table. Click on the table to highlight it (optional but helps identify it in the extension).

3

Click the extension icon

Click the HTML Table Exporter icon in your browser toolbar. The popup shows all detected tables on the page.

4

Click XLSX to export

Find your table and click the XLSX button. The file downloads instantly.

5

Open in Excel

Double-click the downloaded file. It opens in Excel with clean formatting, proper columns, and no hidden characters.

HTML Table Exporter
HTML Table Exporter showing XLSX export button
One click to export any table to Excel format. Works on JavaScript tables that Power Query cannot access.

Why this works when other methods fail

  • Runs in your browser session — Sees logged-in pages, JavaScript content, and dynamically loaded data
  • Exports clean data — Strips HTML formatting, icons, and hidden elements automatically
  • Native Excel format — XLSX files open perfectly with no cleanup needed
  • 100% local — Data never leaves your browser; no server processing
Free Chrome Extension

Export your first table to Excel in 10 seconds →

Add to Chrome

Troubleshooting common issues

Problem: Numbers will not calculate after pasting

Cause: Hidden characters (non-breaking spaces, invisible Unicode) that Excel treats as text.

Solution: Use a browser extension that exports clean data, or apply these formulas to fix pasted data:

  • =VALUE(TRIM(CLEAN(A1))) — Removes hidden characters and converts to number
  • =SUBSTITUTE(A1,CHAR(160)," ") — Replaces non-breaking spaces with regular spaces

Problem: Table appears empty in Power Query

Cause: The table is rendered by JavaScript after the page loads.

Solution: Use a browser extension instead. Power Query cannot execute JavaScript.

Problem: Only some rows are copied

Cause: The table uses virtualization (only renders visible rows) or infinite scroll.

Solution: Scroll to load all rows before exporting, or use a tool designed for virtualized tables. HTML Table Exporter PRO can handle some virtualized tables.

Problem: Dates are in wrong format

Cause: Regional date format differences (MM/DD vs DD/MM).

Solution: After importing, select the date column, go to Format > Cells > Date, and choose your preferred format. Or use HTML Table Exporter PRO which normalizes dates to ISO format automatically.

Problem: Cannot select the table

Cause: The page uses overlay elements or disables text selection.

Solution: A browser extension can still detect the underlying table. Try HTML Table Exporter — it finds tables regardless of CSS tricks.

Frequently asked questions

Can I copy a table from a website that requires login?

Yes, but not with Excel Power Query. Use a browser extension — it runs in your logged-in browser session and can access any table you can see. HTML Table Exporter works on any page in Chrome.

What is the fastest method?

A browser extension is fastest for most tables: click extension, click XLSX, done. Copy-paste is faster when it works, but you often spend more time cleaning up the result.

Can I refresh the data automatically?

Only with Excel Power Query — it creates a connection you can refresh. Browser extensions export a snapshot. For frequently updating data, consider Power Query if the page is publicly accessible.

Is my data safe with browser extensions?

Check the extension permissions. HTML Table Exporter has no network permissions — it literally cannot send data anywhere. All processing happens locally in your browser. See the privacy policy.

What if the table spans multiple pages?

Most extensions export only what is visible. You may need to export each page separately and combine in Excel. Some tools like Data Miner can paginate automatically, but have steeper learning curves.

Summary: Which method should you use?

Quick decision guide

Start with copy-paste — It takes 5 seconds to try. If it works, you are done.

Use Power Query if you need refreshable data from a public page and the table is not JavaScript-rendered.

Use a browser extension for everything else — JavaScript tables, logged-in pages, or when you want clean data without manual cleanup.

For most users, HTML Table Exporter is the best option. It handles the cases where other methods fail, exports clean Excel files, and takes 30 seconds to install. The free version includes XLSX export with no row limits.

HTML Table Exporter extension preview
★★★★★ 5.0 on Chrome Web Store

Export any table to Excel — perfectly

HTML Table Exporter handles JavaScript tables, logged-in pages, and complex formatting. Clean XLSX files that open perfectly in Excel.

Native XLSX export JavaScript tables work Zero tracking
Add to Chrome — It is Free

No account required · No server required · Unlimited exports

Export to Excel free ★★★★★ 5.0
Add to Chrome