HTML to TSV Converter
Paste HTML containing one or more <table> elements and get clean tab-separated values you can paste straight into a spreadsheet.
Last updated: May 25, 2026
Find this tool useful? Support the project to keep it free!
Buy me a coffeeWhat is HTML to TSV Converter?
TSV (Tab-Separated Values) is a plain-text data format where each row is a line and each column is separated by a tab character. It is the format spreadsheet applications (Excel, Google Sheets, Numbers) recognise natively when you paste text from the clipboard, which makes it a convenient way to move tabular data between sources.
This converter parses HTML with the browser's built-in DOM parser, walks every cell in the chosen `<table>`, extracts its text content, and joins the cells with tab characters and the rows with newlines. Cell text is trimmed, and any embedded tab, carriage return, or newline characters are collapsed into single spaces — TSV has no in-cell escaping mechanism, so those characters would otherwise corrupt the column count downstream.
You can convert the first table only (the common case when scraping a single data table) or all tables at once (separated by a blank line). Row, column, and table counts are shown for quick QA, and the result can be copied to the clipboard or downloaded as a .tsv file ready for Excel or Google Sheets.
How to Use HTML to TSV Converter
Paste HTML containing one or more <table> elements into the input panel.
Choose First Table to extract only the first one, or All Tables to convert each into its own TSV block.
Review the row, column, and table counts to confirm the extraction.
Copy the TSV to the clipboard or download it as a .tsv file.
Paste the result into Excel, Google Sheets, or any tool that accepts tab-separated values.
Common Use Cases
- Scraping a table from a Wikipedia article into a spreadsheet.
- Converting an HTML data table from a CMS preview into rows you can paste into Excel.
- Migrating tabular content from a legacy web page into a Google Sheet.
- Generating TSV input for command-line tools (cut, awk, csvkit) from HTML.
- Extracting multiple report tables from a single HTML export.
Example Input and Output
A small HTML table with header and three rows becomes a TSV ready to paste into a spreadsheet.
<table>
<tr><th>Name</th><th>City</th></tr>
<tr><td>Alice</td><td>London</td></tr>
<tr><td>Bob</td><td>Paris</td></tr>
</table>Name City
Alice London
Bob ParisPrivacy
All conversion happens locally in your browser. No HTML or TSV is sent to a server.
Cell text only
Only the text content of each cell is extracted. Nested HTML (images, links, styles) is stripped, and only the visible text remains.
Pair with TSV converters
Need TSV in another format? After this tool, run the output through TSV to CSV, TSV to JSON, or TSV to XML to reshape the data.

