| 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 |
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.
Sources:
file command
(home page,
source)
• Contact
• Validate HTML