Lably
Skip to content

Delimiter-separated values

Text format for indicating tabular data

  • 3 min read
  • 3 chapters

Related on Lably

Through Table (format), Character (computing) and Delimiter

A delimited text file is a text file that stores data as DSV. Such a file can be classified as a flat-file database if, in fact, the data is database-like – accessing individual rows is meaningful.

A commonly used alternative for text data is fixed-width where each column has the same number of characters – limiting the length of each field value. In contrast, DSV supports field values of any length.

Format

DSV is a categorization of data format, not a particular format. To be useful, a convention must be established that defines the precise format. In general a format is categorized as DSV if it is lines of delimiter-separated values (where lines are newline-separated). The first row is sometimes a special record containing the column names.

Any character may be used to separate field values, and the more commonly used include comma, tab, colon, vertical bar (a.k.a. pipe) and space. ASCII and Unicode include control characters that are intended to be used as delimiters: File Separator, Group Separator, Record Separator, and Unit Separator. Use of these in DSV data is relatively uncommon although the MARC 21 bibliographic data format does.

Two commonly-used sub-categories of DSV, comma-separated values (CSV) and tab-separated values (TSV), are supported by many software packages including many spreadsheet and statistical applications. Some can import such data even without the user describing the format – such as which character to use as the delimiter. Even though such an application may more directly support a more capable and possibly proprietary internal data model (for example, accdb or xlsx), they can map DSV data to their internal data model.

Sign in to keep reading

2 more chapters are free with a Lably account.

More in Computing and communication