MIME Type Lookup
Find the MIME type (Content-Type) for any file extension.
What is a MIME Type?
MIME (Multipurpose Internet Mail Extensions) types indicate the nature and format of a document, file, or assortment of bytes. They are used by web servers to tell browsers what type of content is being served, so the browser can handle it appropriately.
MIME Type Structure
MIME types consist of a type and subtype, separated by a slash:
type/subtype
Examples:
text/html- HTML documentsimage/jpeg- JPEG imagesapplication/json- JSON datavideo/mp4- MP4 videos
Common MIME Type Categories
Images
| Extension | MIME Type | Description |
|---|---|---|
.jpg |
image/jpeg |
JPEG Image |
.png |
image/png |
PNG Image |
.gif |
image/gif |
GIF Image |
.webp |
image/webp |
WebP Image |
.svg |
image/svg+xml |
SVG Vector |
.ico |
image/x-icon |
Icon |
.bmp |
image/bmp |
Bitmap Image |
.avif |
image/avif |
AVIF Image |
Documents
| Extension | MIME Type | Description |
|---|---|---|
.pdf |
application/pdf |
PDF Document |
.doc |
application/msword |
Word Document |
.docx |
application/vnd.openxmlformats-officedocument.wordprocessingml.document |
Word Document |
.xls |
application/vnd.ms-excel |
Excel Spreadsheet |
.xlsx |
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet |
Excel Spreadsheet |
.ppt |
application/vnd.ms-powerpoint |
PowerPoint |
.pptx |
application/vnd.openxmlformats-officedocument.presentationml.presentation |
PowerPoint |
.txt |
text/plain |
Plain Text |
.csv |
text/csv |
CSV File |
Code
| Extension | MIME Type | Description |
|---|---|---|
.html |
text/html |
HTML Document |
.css |
text/css |
CSS Stylesheet |
.js |
application/javascript |
JavaScript |
.json |
application/json |
JSON Data |
.xml |
application/xml |
XML Document |
.php |
application/x-php |
PHP Script |
.py |
text/x-python |
Python Script |
.ts |
application/typescript |
TypeScript |
.md |
text/markdown |
Markdown |
Audio
| Extension | MIME Type | Description |
|---|---|---|
.mp3 |
audio/mpeg |
MP3 Audio |
.wav |
audio/wav |
WAV Audio |
.ogg |
audio/ogg |
OGG Audio |
.flac |
audio/flac |
FLAC Audio |
.m4a |
audio/mp4 |
M4A Audio |
.aac |
audio/aac |
AAC Audio |
Video
| Extension | MIME Type | Description |
|---|---|---|
.mp4 |
video/mp4 |
MP4 Video |
.webm |
video/webm |
WebM Video |
.avi |
video/x-msvideo |
AVI Video |
.mov |
video/quicktime |
QuickTime Video |
.mkv |
video/x-matroska |
Matroska Video |
.mpeg |
video/mpeg |
MPEG Video |
Archives
| Extension | MIME Type | Description |
|---|---|---|
.zip |
application/zip |
ZIP Archive |
.rar |
application/vnd.rar |
RAR Archive |
.7z |
application/x-7z-compressed |
7-Zip Archive |
.tar |
application/x-tar |
TAR Archive |
.gz |
application/gzip |
Gzip Archive |
Fonts
| Extension | MIME Type | Description |
|---|---|---|
.woff |
font/woff |
Web Font |
.woff2 |
font/woff2 |
Web Font 2 |
.ttf |
font/ttf |
TrueType Font |
.otf |
font/otf |
OpenType Font |
Why MIME Types Matter
Practical Applications
- Web Development: Servers use MIME types to tell browsers how to handle files
- File Downloads: Correct MIME types ensure files download instead of displaying in browser
- API Development: REST APIs use MIME types to specify request/response formats
- Email Attachments: Email clients use MIME types to handle attachments properly
- Security: Browsers enforce security policies based on MIME types
Quick Reference
Most Common:
- HTML:
text/html - CSS:
text/css - JavaScript:
application/javascript - JSON:
application/json - JPEG:
image/jpeg - PNG:
image/png - PDF:
application/pdf
Common Mistakes
- Using
text/plainfor JSON - Wrong MIME type for JavaScript files
- Missing MIME types for font files
- Using
application/x-www-form-urlencodedincorrectly