// mime type · text type

text/csv

Comma-separated values · .csv

What text/csv is

text/csv marks comma-separated values — rows of tabular data. It's what you set when a download should open as a spreadsheet, often alongside a Content-Disposition: attachment header.

How it's used

You'll see this as a Content-Type value on requests and responses — for example Content-Type: text/csv. It's the type associated with the .csv file extension. Text types are human-readable formats. On the web they're assumed to be UTF-8, and browsers can display them directly.

Other text types