Free TSV sample, test and dummy files

Tabular text with a tab between fields and a line break between rows. Simpler than CSV, because nothing is quoted. Download valid TSV test files in 19 exact sizes, from 1 KB to 100 MB, each with a checksum. Or create one of any size up to 1 GB.

Extension
.tsv
MIME type
text/tab-separated-values
Kind
Text
Category
Spreadsheets

Create a TSV file of any size

Choose any size from 199 bytes to 1 GB. The file is made in your browser, so nothing is downloaded from our server. Smaller files usually finish quickly; generation time depends on your device and format. Larger ones are streamed straight into your downloads list in browsers that support it (current Chrome, Edge and Firefox on computers and Android); elsewhere, such as Safari and every browser on iPhone and iPad, the largest size is lower and is shown below.

TSV files by size

Every file below is a valid Tab-separated values file of exactly the stated size. Open a file's page for its checksum and contents, and to preview it in your browser before downloading.

TSV sample files by size
FileSizeContentsDownload
1 KB TSV samplesample-tsv-1kb.tsv 1 KB1,024 bytes Data rows: 5 Download TSV
5 KB TSV samplesample-tsv-5kb.tsv 5 KB5,120 bytes Data rows: 37 Download TSV
10 KB TSV samplesample-tsv-10kb.tsv 10 KB10,240 bytes Data rows: 76 Download TSV
25 KB TSV samplesample-tsv-25kb.tsv 25 KB25,600 bytes Data rows: 195 Download TSV
50 KB TSV samplesample-tsv-50kb.tsv 50 KB51,200 bytes Data rows: 392 Download TSV
100 KB TSV samplesample-tsv-100kb.tsv 100 KB102,400 bytes Data rows: 786 Download TSV
200 KB TSV samplesample-tsv-200kb.tsv 200 KB204,800 bytes Data rows: 1,564 Download TSV
500 KB TSV samplesample-tsv-500kb.tsv 500 KB512,000 bytes Data rows: 3,888 Download TSV
1 MB TSV samplesample-tsv-1mb.tsv 1 MB1,048,576 bytes Data rows: 7,944 Download TSV
2 MB TSV samplesample-tsv-2mb.tsv 2 MB2,097,152 bytes Data rows: 15,788 Download TSV
3 MB TSV samplesample-tsv-3mb.tsv 3 MB3,145,728 bytes Data rows: 23,601 Download TSV
5 MB TSV samplesample-tsv-5mb.tsv 5 MB5,242,880 bytes Data rows: 39,187 Download TSV
10 MB TSV samplesample-tsv-10mb.tsv 10 MB10,485,760 bytes Data rows: 78,229 Download TSV
15 MB TSV samplesample-tsv-15mb.tsv 15 MB15,728,640 bytes Data rows: 117,131 Download TSV
20 MB TSV samplesample-tsv-20mb.tsv 20 MB20,971,520 bytes Data rows: 155,613 Download TSV
25 MB TSV samplesample-tsv-25mb.tsv 25 MB26,214,400 bytes Data rows: 194,112 Download TSV
30 MB TSV samplesample-tsv-30mb.tsv 30 MB31,457,280 bytes Data rows: 232,622 Download TSV
50 MB TSV samplesample-tsv-50mb.tsv 50 MB52,428,800 bytes Data rows: 386,618 Download TSV
100 MB TSV samplesample-tsv-100mb.tsv 100 MB104,857,600 bytes Data rows: 771,624 Download TSV

What is a TSV file?

A TSV file stores a table as plain text: one record per line, with fields separated by a tab character. Because tabs almost never occur inside real data, the format needs no quoting rules, which removes the main source of trouble in CSV.

The media type text/tab-separated-values has been registered since 1993, and its definition is one paragraph long: a header line of field names, then records, and no tabs inside a field. Bioinformatics tools, database exports and the clipboard of every spreadsheet use the format.

How to recognise a TSV file

TSV files have no file signature, the magic bytes that most binary formats begin with.

No signature bytes. TSV files are identified by parsing their content.

Extension.tsv
MIME typetext/tab-separated-values
Media type registrationIANA text/tab-separated-values (1993)
DelimiterTab (U+0009)
QuotingNone in the registered definition
Extensions.tsv and .tab

What to test for

These are the behaviours that most often go wrong when software handles TSV files.

Strengths of TSV

  • No quoting rules: a tab ends a field and a line break ends a record.
  • Easy to cut, sort and join with command-line tools, and what spreadsheets put on the clipboard.

Limitations of TSV

  • A field cannot hold a tab or a line break without an escape convention the reader may not share.
  • No types, no schema and no declared encoding, the same as CSV.

Typical uses of TSV test files

  • Testing import features that accept more than one delimiter
  • Checking delimiter detection
  • Loading test data into a database in bulk
  • Testing data pipelines that split fields on tabs

Software that opens TSV

  • Microsoft Excel, Google Sheets and LibreOffice Calc
  • pandas, R and DuckDB
  • cut, awk and sort on the command line
  • PostgreSQL COPY and MySQL LOAD DATA, whose default text format is tab-delimited

Specifications

Related

TSV sample files: questions

Do the TSV samples use quotation marks?
No. No field contains a tab, a line break or a quotation mark, so the files read the same way under every TSV convention.
Do the TSV and CSV samples hold the same data?
Yes. Both have the same twelve columns of fictional customer records. The TSV files use tabs and LF line endings where the CSV files use commas and CRLF.
What is the MIME type of a TSV file?
The MIME type is text/tab-separated-values. The file extension is .tsv.
Is a sample TSV file the same as a dummy or example TSV file?
Yes. Sample, test, dummy and example TSV files are different names for the same thing: a TSV file with known contents that stands in for a real one. Any file on this page will do wherever a tutorial or a test plan asks for a dummy TSV file.

Build a fixture for your parser

Create synthetic records with quoted fields, Unicode, missing values or nested JSON. Preview the output and check the actual bytes before downloading.

Open the CSV, JSON and TSV test data generator →