Category: Text
text/csv
text/csv is the IANA MIME type for tabular data formatted with comma delimiters as defined in RFC 4180.
MIME / CONTENT-TYPE
text/csv
ASSOCIATED EXTENSIONS
.csv
PRIMARY CATEGORY
Text
HTTP Headers & Web Server Configurations
Standard HTTP Response Header
Content-Type: text/csv; charset=utf-8Send this exact header in HTTP responses to instruct browsers how to decode and render the payload.
Node.js / Express / Web API
res.setHeader("Content-Type", "text/csv; charset=utf-8");
res.setHeader("Content-Disposition", "attachment; filename=export.csv");NGINX Configuration (mime.types)
types {
text/csv csv;
}Apache (.htaccess / httpd.conf)
AddType text/csv .csvSecurity Advisory & Hardening
Guard against CSV/Formula Injection: Cells beginning with `=, +, -, @` can trigger arbitrary command execution when opened in Microsoft Excel or Google Sheets. Prefix untrusted cells with a single quote (`').
Frequently Asked Questions
text/csv Questions & Answers
Common questions regarding MIME types, Content-Type headers, and web server configurations.
The standard HTTP response header is: "Content-Type: text/csv; charset=utf-8".