You can save an HTML table as Excel in under a minute with no add-ins: open the page in your browser, copy the table, and paste it into a blank Excel workbook, or in Excel go to Data > Get Data > From File > From HTML and point it at the saved .html file. The second method keeps column widths, numbers and dates cleaner, so it is the better choice for long tables or tables with tricky formatting. Menu labels vary slightly by Excel version, platform and region, so treat the paths below as the usual wording rather than gospel.
What You'll Need
- The web page containing the table, ideally open in a desktop browser (Chrome, Edge, Firefox or Safari).
- A desktop copy of Excel: Microsoft Excel for Windows, Excel for Mac, or Excel on the web. Mobile Excel apps and Google Sheets can paste data but cannot import an HTML file the way desktop Excel can.
- Permission to use the data. If the table is someone else's, check terms of use and any copyright notice before copying.
- For the import method, the page saved on your computer as an .html file, or the exact URL of the page.
Step-by-Step
- Find the table on the page and confirm it is a real table. Click at the start of the first heading row, hold the mouse button and drag to the bottom-right of the data. If you can highlight cleanly, the page uses a real HTML table and both methods below will work. If dragging selects whole blocks of text including menus and sidebars, the page is built with layout boxes rather than a table, and the import method will usually produce messy results.
- Method A: copy and paste. Select the table with the mouse, then press Ctrl+C on Windows or Command+C on Mac.
- Open a blank Excel workbook, click the cell where the top-left corner of the table should sit, usually A1, and press Ctrl+V or Command+V. On Excel for Windows, if the paste looks squashed, use the arrow under the Paste button and choose Paste Special to see other formats; on Mac, use the equivalent Paste Special menu. A plain paste is right most of the time.
- Method B: import the page. In your browser, press Ctrl+S or Command+S, choose to save the page as “Webpage, Complete” or “Webpage, HTML Only”, and pick a folder you will remember. If the page is behind a login, saving it while logged in puts the rendered table in the file.
- In desktop Excel, go to Data > Get Data > From File > From HTML. On Excel on the web this option is not available in the same form; use copy and paste, or open the file in desktop Excel first.
- Browse to the saved .html file and click Import. Excel scans the file and opens a Navigator window listing the tables it found, each with a preview.
- Tick the table you want. If several look similar, click each one and compare the preview to the page, then click Transform Data to open Power Query and clean it up, or Load to drop it straight onto a sheet.
- Check and fix the result. Click the first data cell and look for green error triangles; they usually mean a number arrived as text. Use the small warning button beside the cell or Data > Text to Columns to split columns that merged. If dates came in as text, select the column and use Data > Text to Columns with the correct date format.
- Format and save. Delete empty header rows, apply a number format, freeze the heading row via View > Freeze Panes, then save with Ctrl+S or Command+S as an .xlsx workbook. If you need to share it, use File > Save As and choose Excel Workbook rather than CSV unless the recipient specifically wants plain text.
Common Mistakes
- Pasting as a picture. Right-click > Copy Image or a screenshot paste gives a single image cell with no editable data. Always copy the text selection.
- Pasting merged header rows into data rows. Tables with two-row headings often collapse into one misaligned row. Paste into a scratch sheet, fix the headings, then copy the clean block to the real sheet.
- Losing leading zeros. Codes like “007” become 7 when Excel treats them as numbers. Format the column as Text before pasting, or prefix with an apostrophe.
- Importing the wrong table. Pages often contain navigation or footer tables that look identical in the preview. Check a few rows before you load.
- Forgetting that links and images come too. A browser copy can bring hyperlinks and inline images along with the cells. Use Paste Special > Text or Values if you only want data.
Tips
- Highlight only the data grid, not the whole page, before copying. Extra rows above the table turn into junk headers.
- For a one-off small table, copy and paste wins. For anything you will repeat, use the import method and Power Query, because refreshing picks up the updated table from the same file.
- If the numbers refuse to behave, paste into Notepad or TextEdit first to strip formatting, then copy that plain text into Excel.
- Name the imported sheet something meaningful and keep the raw import on its own tab, so your formatting and calculations live on a separate sheet.
Troubleshooting
- The whole table arrives in one column. The source used spaces or tabs instead of table cells. Select the column and run Data > Text to Columns, choosing Delimited and the right separator.
- Import finds no tables. The page may be generated after loading. Save the page again once it has fully loaded, or copy and paste instead.
- Garbled characters. Accented letters and currency symbols can break if the file's encoding is misread. Try saving the page with UTF-8 encoding from your browser, or paste instead.
- Excel is slow or crashes on a very large table. Import in Power Query and load only the columns you need, or split the source into smaller files.
- Data will not refresh. The saved .html file has moved or been renamed. Use Data > Queries & Connections to check the source path, and re-point it if needed.
Frequently Asked Questions
Can I do this without Excel?
Yes. Google Sheets and LibreOffice Calc both accept a copied table, and Sheets can import an HTML file from its File menu. Formatting may differ slightly from Excel.
Why do my numbers show as text?
Excel kept the cell as text during the paste or import, often because the source mixed numbers with symbols or spaces. Reformat the column as Number, or clean the values with Text to Columns or Power Query.
Does the import keep the table's formatting?
Partly. Cell data, row and column structure and most colours come through. Fonts, borders and widths often need resetting after the import.
Can I import a table from a PDF or Word file?
Not with the HTML import. Use Excel's PDF import option in Data > Get Data > From File > From PDF, or copy and paste from the document.
Is it legal to copy a table from a website?
It depends on the site's terms and copyright. For personal use it is usually fine; for publishing or commercial reuse, check the terms or ask the site owner.
Can I save the Excel result back to HTML?
Yes. Use File > Save As and choose the web page format, though the resulting file will not look identical to the original page.