How to convert an HTML table to CSV or Excel
You do not need to upload a file or send data to a conversion service. This page does the work in your browser. The table you paste never leaves your computer.
- Copy the table. On the web page that has the data, select the table and copy it (Ctrl+C or Cmd+C). If you already have the HTML source, copy the markup that contains a
<table>. - Paste it here. Click the box above and paste (Ctrl+V or Cmd+V). Browsers usually put formatted HTML on the clipboard when you copy a table. This tool reads that
text/htmldata so columns stay intact. You can also paste raw HTML, or tab-separated text copied from a spreadsheet. - Choose a table if several are found. Some pages include a summary table and a detail table in the same snippet. Use the list to pick the one you want. The preview updates immediately.
- Check the preview. Confirm that headers, Chinese or other non-ASCII text, and long identifiers look right before you download.
- Download. Choose CSV, TSV, or Excel (
.xlsx). If you will open a CSV in Microsoft Excel, leave “Excel-safe long numbers” turned on.
A short example
Imagine you copied an order list from an admin page. One row has order ID 123456789012345678, customer 张伟, and city 上海. Another row uses a short code with a leading zero, such as 00123.
After you paste, the preview should show every digit of the order ID and the Chinese characters exactly as they appeared. If you download Excel, those IDs are stored as text, so they do not turn into 1.23457E+17 and the leading zero is not stripped. If you download CSV, the file starts with a UTF-8 byte order mark so Excel on Windows is more likely to keep 张伟 readable instead of showing mojibake. Use the button above to try this sample without leaving the page.
Why Excel sometimes garbles Chinese in a CSV file
CSV is a plain-text format. It has no official field for declaring a character encoding. UTF-8 is the right choice for Chinese, Japanese, Korean, and mixed-language data, but Excel on Windows often guesses a legacy “ANSI” code page when you open a .csv file by double-clicking it. If the file is UTF-8 and Excel assumes Windows-1252, or another encoding based on the system locale, Chinese text turns into garbled characters.
A practical workaround is to write a UTF-8 BOM (U+FEFF) at the start of the file. Excel uses that signature to treat the file as UTF-8. This converter always prefixes that BOM on CSV downloads.
Two caveats are worth knowing. First, a BOM is a compatibility convention, not a universal standard. Most modern tools handle it correctly, but a few strict parsers may show  at the start of the first header. Second, you can avoid the guesswork by opening the file through Excel’s Data → From Text/CSV dialog and choosing UTF-8 yourself. If you want to sidestep CSV encoding issues altogether, download an Excel workbook instead. The .xlsx format stores text as Unicode, so Chinese and other scripts do not depend on a BOM.
Why long numbers turn into scientific notation
Excel stores numbers with about 15 digits of precision. Order IDs, tracking numbers, or account numbers with 16 or more digits cannot be represented exactly as numbers. Excel may display them in scientific notation (for example 1.23457E+17) or silently round the last digits. A related problem is leading zeros: a value like 00123 becomes 123, because the two are the same number.
Those values are identifiers, not quantities, so they should be stored as text. In the Excel file this tool writes, integer IDs with 16 or more digits, and all-digit values with a leading zero, are written as text cells (cell type t:'s' in the spreadsheet XML). Ordinary short numbers such as 42, and a five-digit ZIP code like 94043 that does not start with zero, are left as they are.
CSV cannot mark a cell type the way an Excel workbook can. If you need Excel to keep a long ID intact when it opens a CSV, leave “Excel-safe long numbers” enabled. The tool then writes those fields in the ="123456789012345678" form, which Excel interprets as text. Turn the option off when the CSV is meant for a script or a database that should see the raw digits rather than a formula.
What this page cannot do
Browsers will not let a website read tables from an arbitrary URL you type in. That is a cross-origin security rule, not a missing feature. If you need one-click export from the page you are already viewing — including some dashboards that draw grids with <div> elements instead of a <table> — use the Table to Excel & CSV Chrome extension. It applies the same conversion rules (UTF-8 BOM, long IDs as text), and nothing is uploaded.
Frequently asked questions
Is my table uploaded to a server?
No. Detection, preview, and file generation all run locally in your browser. After this page has loaded, you can disconnect from the network, except that the Excel engine is fetched from this site the first time you click Download Excel.
What is the difference between CSV, TSV, and Excel?
CSV uses commas and is widely supported. TSV uses tabs and is convenient for pasting back into a spreadsheet. Excel (.xlsx) is a real workbook: encodings stay correct, and long IDs can be stored as text without CSV formulas.
How are merged cells handled?
rowspan and colspan are expanded into a rectangular grid. The text stays in the origin cell; continuation cells are left blank, which is what most spreadsheet exports expect.
Can I paste more than one table?
Yes. If the HTML contains several useful tables, pick one from the list and export it. Exporting every table on a page into a multi-sheet workbook is a feature of the Chrome extension’s Pro plan, not of this page.
Will this work in Excel for Mac, Numbers, or Google Sheets?
Yes. The .xlsx file is a standard Office Open XML workbook. CSV with a UTF-8 BOM also opens in Numbers and Google Sheets. If a tool misreads the BOM, use the Excel download, or import the CSV with UTF-8 selected.
Why did detection miss my table?
The snippet may not include a real <table>. Some dashboards paint grids with <div>s. Try pasting the HTML source, or use the extension, which can also detect some grid layouts on the live page. Tables used only for page layout (role="presentation") are ignored on purpose.
Is there a row limit?
This page does not impose a row cap, but a very large paste can make the browser sluggish. For huge tables already on a live page, the extension is usually smoother.
Is this affiliated with Microsoft Excel?
No. “Excel” here refers to the common .xlsx format. This is an independent tool.