Skip to content
uencoder

TSV

TSV (tab-separated values) is like CSV but separates fields with tabs, avoiding conflicts with commas inside fields; it is common in database exports and NLP.

Purpose

To provide a tabular format that needs no quote escaping, simplifying parsing.

Mechanism

Each line is a record with fields separated by tabs. Because tabs are rare in data, quoting is usually unnecessary. The Unix cut command splits on tabs by default.

Use cases

  • Database BCP exports
  • NLP corpus annotation (CoNLL)
  • Tabular transfer in Unix pipelines
  • Bioinformatics

Examples

  • Input
    name	age
    Ada	36
    Output
    A tab-separated table

    No quoting needed

Common errors

A field containing a tab is left unhandled
Replace or escape tabs inside fields

Related terms

Related tools

References