MIME Type Lookup
Find the MIME type for any file extension, and check what a file really is from its contents, on your device.
Runs in your browser. Nothing is uploaded.
Text and documents
| Extension | MIME type | What it is |
|---|---|---|
| .html, .htm | text/html | HTML page |
| .csv | text/csv | Comma-separated values |
| .tsv | text/tab-separated-values | Tab-separated values |
| .txt, .text, .log | text/plain | Plain text |
| .md, .markdown | text/markdown | Markdown |
| .ics | text/calendar | Calendar (iCalendar) |
| .vcf, .vcard | text/vcard | Contact card (vCard) |
| .rtf | application/rtf | Rich Text Format |
application/pdf | PDF document | |
| .doc | application/msword | Word 97–2003 document |
| .docx | application/vnd.openxmlformats-officedocument.wordprocessingml.document | Word document |
| .xls | application/vnd.ms-excel | Excel 97–2003 workbook |
| .xlsx | application/vnd.openxmlformats-officedocument.spreadsheetml.sheet | Excel workbook |
| .ppt | application/vnd.ms-powerpoint | PowerPoint 97–2003 |
| .pptx | application/vnd.openxmlformats-officedocument.presentationml.presentation | PowerPoint presentation |
| .odt | application/vnd.oasis.opendocument.text | OpenDocument text |
| .ods | application/vnd.oasis.opendocument.spreadsheet | OpenDocument spreadsheet |
| .odp | application/vnd.oasis.opendocument.presentation | OpenDocument presentation |
| .epub | application/epub+zip | EPUB e-book |
| .eml | message/rfc822 | Email message |
Code and data
| Extension | MIME type | What it is |
|---|---|---|
| .css | text/css | CSS stylesheet |
| .js, .mjs, .cjs | text/javascript | JavaScript |
| .json | application/json | JSON data |
| .jsonld | application/ld+json | JSON-LD linked data |
| .webmanifest | application/manifest+json | Web app manifest |
| .map | application/json | Source map |
| .xml | application/xml | XML document |
| .xsl, .xslt | application/xslt+xml | XSLT stylesheet |
| .rss | application/rss+xml | RSS feed |
| .atom | application/atom+xml | Atom feed |
| .yaml, .yml | application/yaml | YAML |
| .toml | application/toml | TOML |
| .sh | application/x-sh | Shell script |
| .py | text/x-python | Python source |
| .php | application/x-httpd-php | PHP source |
| .sql | application/sql | SQL script |
Images
| Extension | MIME type | What it is |
|---|---|---|
| .jpg, .jpeg, .jfif | image/jpeg | JPEG image |
| .png | image/png | PNG image |
| .apng | image/apng | Animated PNG |
| .gif | image/gif | GIF image |
| .webp | image/webp | WebP image |
| .avif | image/avif | AVIF image |
| .heic | image/heic | HEIC image (iPhone photos) |
| .heif | image/heif | HEIF image |
| .jxl | image/jxl | JPEG XL image |
| .svg | image/svg+xml | SVG vector image |
| .ico | image/vnd.microsoft.icon | Icon (favicon) |
| .bmp | image/bmp | Bitmap image |
| .tif, .tiff | image/tiff | TIFF image |
| .psd | image/vnd.adobe.photoshop | Photoshop document |
Audio
| Extension | MIME type | What it is |
|---|---|---|
| .mp3 | audio/mpeg | MP3 audio |
| .m4a | audio/mp4 | AAC / MPEG-4 audio |
| .aac | audio/aac | AAC audio |
| .wav | audio/wav | WAV audio |
| .ogg, .oga | audio/ogg | Ogg audio |
| .opus | audio/opus | Opus audio |
| .flac | audio/flac | FLAC lossless audio |
| .weba | audio/webm | WebM audio |
| .mid, .midi | audio/midi | MIDI |
Video
| Extension | MIME type | What it is |
|---|---|---|
| .mp4, .m4v | video/mp4 | MP4 video |
| .webm | video/webm | WebM video |
| .ogv | video/ogg | Ogg video |
| .mov | video/quicktime | QuickTime video |
| .avi | video/x-msvideo | AVI video |
| .mkv | video/x-matroska | Matroska video |
| .mpeg, .mpg | video/mpeg | MPEG video |
| .ts | video/mp2t | MPEG transport stream (video) |
| .3gp | video/3gpp | 3GPP video |
| .m3u8 | application/vnd.apple.mpegurl | HLS playlist |
| .vtt | text/vtt | WebVTT subtitles |
| .srt | application/x-subrip | SubRip subtitles |
Fonts
| Extension | MIME type | What it is |
|---|---|---|
| .woff | font/woff | WOFF web font |
| .woff2 | font/woff2 | WOFF2 web font |
| .ttf | font/ttf | TrueType font |
| .otf | font/otf | OpenType font |
| .eot | application/vnd.ms-fontobject | Embedded OpenType (old IE) |
Archives
| Extension | MIME type | What it is |
|---|---|---|
| .zip | application/zip | ZIP archive |
| .gz, .gzip | application/gzip | Gzip archive |
| .tar | application/x-tar | Tar archive |
| .tgz | application/gzip | Gzipped tar archive |
| .bz2 | application/x-bzip2 | Bzip2 archive |
| .xz | application/x-xz | XZ archive |
| .7z | application/x-7z-compressed | 7-Zip archive |
| .rar | application/vnd.rar | RAR archive |
| .zst | application/zstd | Zstandard archive |
Applications
| Extension | MIME type | What it is |
|---|---|---|
| .wasm | application/wasm | WebAssembly module |
| .exe, .dll | application/vnd.microsoft.portable-executable | Windows program |
| .msi | application/x-msi | Windows installer |
| .dmg | application/x-apple-diskimage | macOS disk image |
| .apk | application/vnd.android.package-archive | Android app package |
| .jar | application/java-archive | Java archive |
| .deb | application/vnd.debian.binary-package | Debian package |
| .iso | application/x-iso9660-image | Disc image |
| .sqlite, .db | application/vnd.sqlite3 | SQLite database |
| .bin | application/octet-stream | Binary data (unknown type) |
| .gltf | model/gltf+json | glTF 3D model |
| .glb | model/gltf-binary | glTF binary 3D model |
| .stl | model/stl | STL 3D model |
No match. Files without a specific type are sent as application/octet-stream.
How to use the MIME Type Lookup
- Type a file extension, such as
.webp, to see its MIME type. - Type a MIME type, such as
application/json, to see which extensions use it. - Search with words like “font” or “video” to see a whole family.
- To check a file’s real type, drop it on Check what a file really is. Only its first 4 KB is read, on your device.
- Copy the type into your server configuration, Content-Type header or upload settings.
The right label for every file
When a server sends a file, it labels it with a media type, also called a MIME type or content type:
text/html for web pages, image/webp for WebP images, application/json for JSON data. Browsers
trust that label more than the file name. With the right type, images display, scripts run and downloads
start correctly. With the wrong one, a stylesheet can be ignored, a video won’t play or a PDF opens as
gibberish.
Look it up
Search by extension, by type or by description. The table covers the formats you meet when building and running websites: web documents and code, images including AVIF, HEIC and JPEG XL, audio, video, subtitles, fonts, archives, office documents, e-books, 3D models and app packages. Types follow the IANA registrations where they exist, and widely used names elsewhere.
Check what a file really is
File names can lie. A “photo.jpg” saved by some apps is really a HEIC or WebP image, a downloaded “invoice.pdf” might be a ZIP, and renamed files confuse upload forms. Drop any file on the checker and it reads the file’s opening bytes to identify the real format. It recognises over 50 signatures, including images, PDFs, office documents, archives, audio, video, fonts, WebAssembly, SQLite and program files, and guesses common text formats such as SVG, HTML and JSON. If the content and the extension disagree, it tells you.
Only the first 4 KB of the file is read, inside your browser. Nothing is uploaded, so it is safe to use with private documents.
Related references
For the status line that comes before the Content-Type header, see HTTP Status Codes. To set up icons with the right types, use the Favicon Generator.
Frequently asked questions
What is a MIME type?
A label like image/png or application/pdf that says what kind of data a file contains. Servers send it in the Content-Type header, and browsers use it to decide whether to show, play or download the file.
Why does the wrong type cause problems?
If a server sends CSS or JavaScript with the wrong type, browsers refuse to use it when the nosniff security header is set. Fonts, WebAssembly, video and downloads can also fail or behave oddly.
How does the file check work?
Most file formats begin with a fixed signature, sometimes called a magic number, such as %PDF for PDF files or the PNG header bytes. The tool reads the first 4 KB of the file in your browser and compares it with known signatures, so it can tell when a file’s extension doesn’t match its contents.
What type should unknown files use?
application/octet-stream, which means “binary data”. Browsers download such files instead of trying to open them.
Is my file uploaded?
No. Only the first 4 KB is read, locally, and nothing leaves your device.
Tutorials
How to serve web fonts with the right MIME type
Look up the correct Content-Type for WOFF2, WOFF, TTF and OTF fonts and add it to Apache, nginx or other servers so fonts load reliably.