Converter Tools
HTML Table to CSV Converter
Paste HTML and extract every <table> as clean CSV in your browser. Picks a table, handles colspan, rowspan, and links, with RFC-4180 quoting.
Delimiter
Line ending
Spanned cells
Links inside cells
Conversions run entirely in your browser. Pasted HTML is not uploaded.
How to use
- Open the source page and copy the HTML that contains the table you want. View source, copy outer HTML from the inspector, or paste an entire saved HTML file.
- Paste the HTML into the input area on the left. Every <table> in the document is detected automatically and listed under the output panel.
- Pick a table from the chips at the top of the output panel, or pick All tables to extract every table at once.
- Choose a delimiter (Comma, Tab, Semicolon, or Pipe), a line ending (LF or CRLF for Excel), and tweak how spanned cells, links, and whitespace are handled.
- Read the live preview below to verify the parsed structure, then click Copy CSV or Download to save the file.
About this tool
HTML Table to CSV Converter takes a block of HTML, finds every <table> element inside it, and turns each one into clean RFC-4180 CSV that drops straight into Excel, Google Sheets, Numbers, BigQuery, pandas, or any data tool that speaks comma-separated values. Parsing happens with the browser's native DOMParser, so the same parser the page itself uses handles malformed markup, attribute quoting variations, and nested or deeply styled tables the same way a real browser does. The tool walks <thead>, <tbody>, and <tfoot> in document order, and when no <thead> is present but the first row is built entirely from <th> cells it is detected as the header automatically. colspan and rowspan are expanded into a dense grid you can pick a policy for: Duplicate value fills every spanned slot with the same text (best when you plan to filter or pivot the result), and Leave blank fills spanned slots with empty strings (best when you want to preserve the visual shape of the original table). Cells that contain block-level elements (paragraphs, list items, divs) are joined with a space so prose cells stay on one line, and <br> tags can optionally become real newlines so multi-line cells (addresses, song lyrics, code samples) survive intact. Links inside cells follow a configurable policy: keep just the link text, keep the text plus the URL in parentheses (great for archiving sources), or replace the link with just its href. A live preview below shows exactly how the chosen table will be parsed, with header rows styled separately from body rows, so you can verify the structure before you copy. The CSV emitter is RFC-4180 compliant: fields that contain the delimiter, a double quote, or a newline are wrapped in quotes with inner quotes doubled, so spreadsheets parse the result without fuss. Delimiter is a one-click choice between comma, tab, semicolon, and pipe (so you can produce CSV, TSV, SCSV, or PSV from the same input), and line endings can be LF for Unix tools and pipelines or CRLF for Excel and other Windows-friendly apps. When the HTML contains multiple tables you can pick a single one to extract, or choose All tables to concatenate every table back to back with a labeled separator. A Download button saves the CSV as a real file with a sensible name derived from the table's <caption> when one is present. Useful for pulling pricing or specification tables off documentation sites, harvesting Wikipedia infoboxes, exporting tables embedded in internal HTML reports, archiving forum and changelog pages as machine-readable data, and converting any rendered HTML table you can copy into a structured dataset. Everything runs locally in your browser, so the pages and reports you paste here, including any internal data, never leave your device.
Free to use. Works in your browser. No signup, no login.
Related tools
You may also like
CSV Viewer
View any CSV as a sortable, filterable, paginated table.
Open tool
ConverterCSV to JSON Converter
Two-way CSV and JSON converter with delimiter and header controls.
Open tool
ConverterCSV to Markdown Table Converter
Turn CSV or TSV into a clean Markdown pipe table with alignment and a live preview.
Open tool
ConverterJSON to CSV Converter
Convert JSON arrays to CSV with nested flattening and Excel-friendly options.
Open tool
ConverterHTML to Markdown Converter
Convert HTML to GFM Markdown with tables, code, and reference links.
Open tool