
Or paste tab-separated text
Compress TSV files without changing your data
Tab-separated files are the everyday format for database exports, spreadsheet copy-and-paste, Google Sheets downloads, and scientific data like gene expression tables. They're easy to read and easy to bloat: stray spaces around values, blank rows, empty columns, and duplicate lines add up, and a large export can run to hundreds of megabytes. This tool cleans those up without touching a single value you didn't ask it to change, then compresses the result into a ZIP or gzip file that's typically 80 to 90 percent smaller.
Everything runs in your browser. Your data never leaves your computer.
How to use it
- Choose a
.tsv,.tab, or tab-delimited.txtfile, drop it on the box, or paste rows copied from a spreadsheet. - Check the cleanup options. The defaults are safe for nearly every file.
- Review the results: sizes, what changed, and a preview of the cleaned rows.
- Download a cleaned TSV, a ZIP for sharing, or a gzip file for data tools. You can also save it as CSV.
Quote marks in TSV files
TSV comes in two flavors, and mixing them up is the most common way TSV tools damage data:
- Plain TSV, the official format, treats quote marks as ordinary text. A value like
He said "hi"means exactly that, quotes included. Values simply can't contain tabs or line breaks. - Excel-style TSV borrows CSV's rules. Values that contain tabs, line breaks, or quote marks are wrapped in quotes, and inner quotes are doubled, like
"She said ""hi""".
The tool looks for evidence of each style, such as doubled quotes or quoted values containing tabs, and shows which one it detected. If it guesses wrong on a small or unusual file, pick the style yourself. Either way, after cleaning it reads its own output back and checks every value against what it meant to write.
What the cleanup options do
| Option | Effect | Changes values? |
|---|---|---|
| Trim spaces around values | Removes spaces at the start and end of each value, like TP53 becoming TP53 | Only outer spaces |
| Remove blank rows | Deletes rows where every value is empty | No |
| Remove duplicate rows | Keeps the first copy of each identical row, including repeated header rows | Removes rows. Off by default. |
| Remove empty columns | Deletes columns that are blank in every row, including the header. This also clears the stray trailing tab many exports add. | No. Off by default. |
| Remove unneeded quotes | For Excel-style files, drops quotes that aren't required | No |
| Shorten decimal numbers | Removes trailing zeros: 10.50 becomes 10.5, 3.0 becomes 3 | Yes. Off by default. |
A note on shortening numbers: it saves a little space, but it changes how values look. Version numbers like 1.10 become 1.1, and prices lose their cents formatting. Values with leading zeros (007.50), thousands separators, and scientific notation are always left alone. Only turn it on for purely numeric measurement data.
ZIP or gzip?
Choose ZIP to email or share a file, since every computer can open it. Choose gzip for data work: pandas (pd.read_csv("data.tsv.gz", sep="\t")), R's read.delim, BigQuery, PostgreSQL, and command-line tools like zcat read .tsv.gz directly. Gzip is the standard for large scientific datasets for exactly this reason.
Frequently asked questions
Is my file uploaded anywhere?
No. Reading, cleaning, and compressing all happen in your browser.
Does it change my data?
Only in the ways you choose. With the default options, every value stays the same except for spaces trimmed from the ends. The green Verified badge confirms that every row and value in the output matches what the tool intended to write.
Why didn't my file get much smaller after cleaning?
A well-made TSV has little to clean up. That's normal. The ZIP and gzip downloads are where the real savings are, usually 80 to 90 percent.
Can I convert TSV to CSV here?
Yes. Choose "CSV (comma-separated)" under Save as. Values that contain commas or quotes are quoted correctly for CSV.
Are leading zeros kept?
Yes. Values like 00123 or ZIP codes like 02134 are kept exactly. Spreadsheet apps sometimes strip leading zeros when they open a file, but this tool never does.
How large a file can it handle?
Up to 300 MB in most desktop browsers. In testing, a 93 MB file with 1.2 million rows was cleaned, verified, and compressed in a few seconds.
