MIME Content-Type Values

HTTP includes a header that specifies the file format of the response. This is just my list of ones that I keep having to lookup. See the Notes at the bottom of the page for links to the complete lists.
File format Extension MIME Content-Type
Comma-separated values .csv text/csv
ePub .epub application/epub+zip
Icon .ico image/vnd.microsoft.icon i
JavaScript .js text/javascript; charset=UTF-8 i
JSON .json application/json
PDF .pdf application/pdf
RSS .rss application/rss+xml i
SVG .svg image/svg+xml
Microsoft Excel .xlsx application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
XML .xml text/xml
YAML .yaml text/yaml; charset=UTF-8 i
Zip .zip application/zip


The default for anything text is text/plain, usually with encoding text/plain; charset=UTF-8.

To force a file to be downloaded (vs displayed in the browser), use application/octet-stream.


ContactValidate HTML