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.
Frequently Asked Questions
Why TSV instead of CSV?
TSV is what most spreadsheets parse natively when you paste text. There is no quoting to think about — tabs separate columns, newlines separate rows. It is simpler than CSV for clipboard workflows.
What happens to tabs inside a cell?
Embedded tab, carriage return, and newline characters are collapsed into single spaces. TSV has no in-cell escaping, so leaving them in place would break the column count.
Can I convert multiple tables at once?
Yes — choose All Tables. Each table's TSV is emitted as a separate block with a blank line between them.
What if there is no <table> in the HTML?
The tool shows an error explaining no tables were found. Only data inside HTML <table> elements is extracted; lists and divs are ignored.
Does this tool send my HTML anywhere?
No. Parsing and conversion run entirely in your browser. Nothing is uploaded.
Related Tools
HTML to CSV Converter
Extract table data from HTML and convert it to CSV. Supports multiple tables, minimal or always-quote modes, and download as .csv.
CSV to TSV Converter
Convert CSV to tab-separated values (TSV). Auto-detect or pick delimiter (comma, semicolon, pipe), choose how to handle tabs inside values, and optionally trim cells.
TSV to CSV Converter
Convert tab-separated values (TSV) to comma-separated values (CSV) — pick the output delimiter, control quoting, and decode \t \n \r escape sequences.
TSV to JSON Converter
Convert tab-separated values (TSV) to JSON. Auto-detects header row, infers numbers / booleans / null from string values, and emits a pretty-printed JSON array of objects.
TSV to HTML Table Converter
Convert tab-separated values (TSV) to an HTML table with header row, configurable CSS class, optional inline styles, and a live preview.
TSV to XML Converter
Convert TSV (tab-separated values) to XML. Each row becomes an XML element with configurable root, row, and column element names.

