TextText-based
text/csv
CSV
Reference for text/csv, the MIME type for comma-separated values files used for tabular data exchange.
MIME Type Detector
Drop a file to detect its MIME type — no upload, runs in your browser
📄
Drop any file here or click to choose
Expected extensions: .csv
HTTP Content-Type Header
HTTP Header
Content-Type: text/csv; charset=utf-8Associated File Extensions
.csv
Quick Facts
| MIME Type | text/csv |
| Category | Text |
| Type | Text-based (human-readable) |
| Extensions | .csv |
Common Usage
CSV is the simplest format for tabular data, using commas to separate values and newlines to separate rows. It is used for spreadsheet exports, database imports/exports, data science datasets, financial data feeds, and any scenario requiring portable tabular data exchange.
Code Examples
HTML
<!-- Link or embed with explicit type -->
<link rel="stylesheet" href="file.csv" type="text/csv">
<!-- Or for script/media elements -->
<script type="text/csv" src="file.csv"></script>Node.js
// Express.js
app.get('/file', (req, res) => {
res.type('text/csv');
res.send(data);
});
// Node.js http
res.writeHead(200, { 'Content-Type': 'text/csv' });nginx
# nginx.conf — add to types block or use default
types {
text/csv csv;
}
# Or set for a specific location
location /api/ {
default_type text/csv;
}Related MIME Types
More Text MIME Types
Other text types in the Text family
Related Tools
Explore More MIME Types
Browse our complete reference of 185 MIME types with usage examples, HTTP headers, and code snippets.