HTML to CSV Converter with Private Table Preview
Extract clean CSV from one or many HTML tables without uploading your data. Inspect merged cells, preview the exact CSV text, copy a result, or download every detected table in one ZIP.
HTML is parsed locally in this browser and never uploaded.
No HTML supplied
Paste table markup or choose an HTML file to inspect its rows and columns.
How to convert HTML or an HTML table to CSV
Provide the source, select a detected table, review both the grid and raw CSV, then copy or download the result.
Paste or upload HTML
Paste a table or full HTML document, or choose a local .html or .htm file up to 10 MB.
Select and preview a table
Choose any detected table and verify its expanded rows, columns, and merged cells in the preview.
Copy, download, or export all
Choose a delimiter, copy the generated CSV, download one table, or export every table as separate files in a ZIP.
HTML table to CSV output controls
Choose settings that match Excel, Google Sheets, a database import, or another delimited-data workflow.
| Control | Setting | Effect |
|---|---|---|
| Input | Paste HTML or upload a file | Reads a table fragment or a complete HTML document |
| Table | Select one or export all | Creates one coherent CSV per table and packages multiple results in a ZIP |
| Merged cells | Repeat or leave blank | Expands rowspan and colspan into a rectangular CSV grid |
| Delimiter | Comma, semicolon, tab, or pipe | Matches the separator expected by the destination application |
| Quoting | Required fields or every field | Escapes delimiters, double quotes, and line breaks using standard CSV rules |
| Encoding | UTF-8 with optional BOM | Keeps international text readable when opening CSV in Excel |
What changes from HTML to CSV
HTML can describe a complete interactive page. CSV keeps the rectangular cell data from one table.
| Characteristic | Source | Output |
|---|---|---|
| Structure | Tables, sections, captions, and merged cells | One rectangular grid of rows and columns |
| Formatting | CSS, colors, fonts, links, and layout | Plain text values only |
| Merged cells | rowspan and colspan attributes | Expanded cells that are repeated or left blank |
| Multiple tables | Any number in one document | One selected CSV or a ZIP containing every table |
| Scripts and dynamic data | May render data after page load | Only table markup present in the supplied HTML is read |
Built for real HTML table data
The converter handles common table structures locally and makes ambiguous output choices explicit.
Private local conversion
DOMParser reads the HTML and creates CSV on this device. The source markup and file are never sent to a conversion server.
Merged-cell expansion
Rows and columns remain aligned when source cells use rowspan or colspan. Choose whether covered cells repeat the original value.
CSV injection protection
Optional formula protection prefixes spreadsheet-sensitive values that begin with =, +, -, or @ before download.
Exact CSV preview and copy
Switch from the visual grid to generated CSV text before downloading, then copy the same output directly to the clipboard.
Multi-table ZIP export
Documents with several tables can be downloaded as separate, clearly named CSV files inside one ZIP instead of mixing unrelated schemas.
Related table and spreadsheet tools
Use another converter when the source is an Excel workbook, CSV file, image, or screenshot.
HTML to CSV converter FAQ
How do I convert an HTML table to CSV?
Paste the HTML table markup or upload an HTML file above. Select the detected table, review the preview, choose a delimiter, and select Download CSV.
Can I convert a full HTML page with several tables?
Yes. The converter lists every table found in the document. Select one table for preview and individual download, or download all tables as separate CSV files in a ZIP so unrelated schemas are not mixed.
Does the converter support rowspan and colspan?
Yes. Merged HTML cells are expanded into a rectangular grid. You can repeat the source value across covered cells or leave the additional cells blank.
Can I enter a webpage URL?
Not directly. Browsers prevent most websites from reading another site's page because of cross-origin security rules. Save the page as HTML, copy its table markup, or use your browser's developer tools to copy the table element.
Is my HTML uploaded?
No. HTML parsing, table extraction, preview, and CSV creation all run locally in your browser.
Can I copy the converted CSV without downloading a file?
Yes. Switch to the CSV text view if you want to inspect the exact delimiters and quotes, then use Copy CSV to place the generated text on your clipboard.
Why is a JavaScript-rendered table missing?
The converter reads the HTML you provide. If a site creates its table only after JavaScript runs, copy the rendered table element from the browser inspector instead of using the original page source.
Convert an HTML table now
Paste HTML or choose a file, inspect the detected table, and download a clean CSV locally.
Back to converter