How to Copy a Table From a Website to Excel (Without Losing Formatting)
You find the perfect data table on a government portal, a research site, or a company report page. You select it, Ctrl+C, switch to Excel, Ctrl+V — and the result is a mess. Columns shifted, merged cells vanished, numbers stored as text, half the rows collapsed into one.
You're not doing anything wrong. The problem is how browsers copy tables. This guide explains why it breaks and gives you 4 fixes, from quick workarounds to a one-click tool you'll use every day.
Why Web Tables Break When You Copy-Paste Into Excel
When you select a table on a webpage and press Ctrl+C, the browser copies HTML markup, not structured spreadsheet data. Excel then tries to interpret that HTML, and things go sideways:
- Merged cells — HTML uses
rowspanandcolspanto merge cells. Excel's paste doesn't always reconstruct them, leaving gaps or shifted columns; - Nested elements —
<div>,<span>,<br>inside cells create phantom line breaks or extra columns; - Whitespace chaos — non-breaking spaces (
), tabs, and newlines inside cells get pasted as literal characters; - Numbers as text — formatted numbers like "1,234.56" sometimes arrive as text strings that Excel won't sum or sort correctly;
- Invisible tables — some sites use
display: flexor CSS Grid to look like tables but aren't<table>elements at all — copy-paste gives you a wall of text.
The root cause: browsers copy rendering, not structure. You need a tool that reads the underlying HTML table directly.
Fix 1: Paste Special in Excel
A quick partial fix. After copying the table from the browser:
- In Excel, right-click a cell and choose Paste Special (or Ctrl+Alt+V);
- Select Unicode Text or Text format;
- Use Data → Text to Columns to split on tab delimiters.
This preserves more data than a normal paste, but merged cells still break and you'll spend time manually fixing columns. Good for a one-off, painful for daily use.
Fix 2: Google Sheets as Intermediary
Copy the table from the browser, paste into Google Sheets, then download as Excel (.xlsx). Google Sheets handles HTML tables slightly better than Excel's direct paste, and the export is clean. Downside: you need a Google account, the data passes through Google's servers, and merged cells still don't survive perfectly.
Fix 3: Browser DevTools (For Developers)
Open DevTools (F12), find the <table> element in the Elements panel, right-click it, and use a Console script to extract the data as JSON or CSV. This is the most accurate method — but it requires technical knowledge and is impractical for non-developers or for quick daily use.
Fix 4: One Click With VKT TableGrab (The Keeper)
VKT TableGrab reads the HTML <table> structure directly from the page — not the rendered copy — and exports a clean CSV file that opens perfectly in Excel.
What makes it different from copy-paste:
- Merged cells handled properly — parses
rowspanandcolspan, reconstructs the full grid, repeats values across spanned cells so nothing is lost; - Auto-detects all tables — no need to manually select; it scans the page and lists every valid table with row × column counts;
- Batch export — export one, selected, or all tables at once;
- UTF-8 BOM encoding — Chinese, Japanese, Korean and other non-ASCII characters display correctly in Excel (no more garbled text);
- Whitespace cleanup — strips extra newlines, spaces, and HTML fragments from cells;
- Privacy-first — all parsing happens locally; table data never leaves your browser.
How to Use It
- Install from the Chrome Web Store or Edge Add-ons;
- Visit any page with HTML tables;
- Click the TableGrab icon — tables are auto-detected and listed;
- Hover to highlight a table on the page, check to select;
- Click Export All or Export Selected;
- CSV downloads instantly — open it in Excel, done.
Free tier: Up to 5 tables per page, unlimited pages. UTF-8 BOM, merged cell support, whitespace cleanup — all included. Premium ($2.99/mo or $9.99 lifetime) removes the 5-table limit. See pricing.
Comparison: Copy-Paste vs. TableGrab
| Method | Merged Cells | Speed | Non-ASCII | Multi-Table |
|---|---|---|---|---|
| Ctrl+C / Ctrl+V | ❌ Broken | Instant but broken | ❌ Often garbled | ❌ One at a time |
| Paste Special | ⚠️ Partial | Manual cleanup | ⚠️ Sometimes OK | ❌ One at a time |
| Google Sheets | ⚠️ Partial | Extra step | ✅ Usually OK | ❌ One at a time |
| DevTools script | ✅ Full | Slow (manual) | ✅ Full | ⚠️ Manual |
| VKT TableGrab | ✅ Full | ✅ One click | ✅ UTF-8 BOM | ✅ Batch |
FAQ
Why does copying a table from a website mess up the formatting in Excel?
Browsers copy HTML, not spreadsheet data. When you paste into Excel, it tries to interpret the HTML — merged cells, nested spans and inline styles all collide, producing broken columns and missing data. A tool that reads the raw HTML table structure directly avoids the problem entirely.
What is the fastest way to copy a web table into Excel?
Install VKT TableGrab, click the icon on any page with tables, and hit Export. It reads the HTML table structure directly and downloads a clean CSV file that opens perfectly in Excel — merged cells reconstructed, no formatting loss.
Can I copy multiple tables from one page at once?
Yes. VKT TableGrab detects all tables on the page automatically. You can export all of them in one click, or select specific tables to export. The free tier supports up to 5 tables per page.
Does this work on tables with merged cells?
Yes. VKT TableGrab parses rowspan and colspan attributes to reconstruct the full grid layout before exporting. Merged values are repeated across the spanned cells so no data is lost in the CSV.
Stop Fighting With Pasted Tables
Two clicks, one clean CSV, zero formatting headaches. Install once, use it on every data page you visit.
More guides in the VKT blog; questions to [email protected].
