MIME Types Reference

text/csv

The MIME type for Comma-Separated Values data files.

What Is This?

The text/csv MIME type indicates that the content is a Comma-Separated Values (CSV) file. CSV is a simple tabular data format where each line represents a row and commas separate columns. It is widely used for data export, import between spreadsheet applications, and data interchange with legacy systems.

Common Uses

1

Data export from databases and analytics platforms

2

Spreadsheet import/export (Excel, Google Sheets)

3

Large dataset downloads for data analysis

4

Bank statements and financial data exports

Examples

Browser Support

Supported by all browsers. Browsers typically open CSV in Excel or other spreadsheet applications depending on user settings.

File Extension

The .csv file extension maps to text/csv as its MIME type.

Related Entries

More from this reference:

Frequently Asked Questions

Should I include a BOM in CSV files?

Including a UTF-8 BOM (byte order mark) at the start of CSV files helps Excel correctly interpret UTF-8 encoding, especially when the file contains non-ASCII characters. Without the BOM, Excel may display characters incorrectly.

How do I handle commas within CSV fields?

Enclose fields containing commas, newlines, or double quotes in double quotes. Use two double quotes inside a quoted field to represent a literal double quote character. This is defined in RFC 4180.