MIME Type Lookup
Find the MIME type (Content-Type) for a file extension, or the extensions for a MIME type, with ready-to-copy server config.
104 entries
| Extension | MIME type |
|---|---|
| text/plain | |
| text/csv | |
| text/tab-separated-values | |
| text/markdown | |
| text/calendar | |
| text/vtt | |
| application/x-subrip | |
| application/rtf | |
| application/yaml | |
| application/yaml | |
| application/toml | |
| text/plain | |
| text/html | |
| text/html | |
| text/css | |
| text/javascript | |
| text/javascript | |
| application/json | |
| application/ld+json | |
| application/json | |
| application/xml | |
| application/xhtml+xml | |
| application/manifest+json | |
| application/wasm | |
| application/rss+xml | |
| application/atom+xml | |
| application/xslt+xml | |
| image/png | |
| image/jpeg | |
| image/jpeg | |
| image/gif | |
| image/webp | |
| image/avif | |
| image/svg+xml | |
| image/vnd.microsoft.icon | |
| image/bmp | |
| image/tiff | |
| image/tiff | |
| image/heic | |
| image/heif | |
| image/jxl | |
| image/apng | |
| image/vnd.adobe.photoshop | |
| audio/mpeg | |
| audio/wav | |
| audio/ogg | |
| audio/ogg | |
| audio/ogg | |
| audio/mp4 | |
| audio/aac | |
| audio/flac | |
| audio/webm | |
| audio/midi | |
| audio/midi | |
| video/mp4 | |
| video/mp4 | |
| video/webm | |
| video/ogg | |
| video/quicktime | |
| video/x-msvideo | |
| video/x-matroska | |
| video/mpeg | |
| video/mpeg | |
| video/mp2t | |
| video/3gpp | |
| video/x-flv | |
| application/vnd.apple.mpegurl | |
| application/dash+xml | |
| font/woff | |
| font/woff2 | |
| font/ttf | |
| font/otf | |
| application/vnd.ms-fontobject | |
| application/pdf | |
| application/msword | |
| application/vnd.openxmlformats-officedocument.wordprocessingml.document | |
| application/vnd.ms-excel | |
| application/vnd.openxmlformats-officedocument.spreadsheetml.sheet | |
| application/vnd.ms-powerpoint | |
| application/vnd.openxmlformats-officedocument.presentationml.presentation | |
| application/vnd.oasis.opendocument.text | |
| application/vnd.oasis.opendocument.spreadsheet | |
| application/vnd.oasis.opendocument.presentation | |
| application/epub+zip | |
| application/zip | |
| application/gzip | |
| application/gzip | |
| application/x-tar | |
| application/x-bzip2 | |
| application/x-xz | |
| application/x-7z-compressed | |
| application/vnd.rar | |
| application/zstd | |
| application/octet-stream | |
| application/vnd.microsoft.portable-executable | |
| application/x-msi | |
| application/x-apple-diskimage | |
| application/vnd.android.package-archive | |
| application/vnd.debian.binary-package | |
| application/x-rpm | |
| application/java-archive | |
| application/x-iso9660-image | |
| application/x-sh | |
| application/sql |
About this tool
A MIME type, also called a media type or content type, tells software what kind of data a file contains: text/html for a web page, image/webp for a WebP image, application/pdf for a PDF. Web servers send it in the Content-Type header, and browsers use it rather than the file extension to decide whether to render, play or download the response. A wrong type is behind many puzzling bugs: a script blocked by the browser, a font that will not load, or a page that downloads instead of opening.
This lookup covers more than 100 extensions used on the web and in everyday files, from HTML and JSON to AVIF, WOFF2, DOCX and APK. Search by extension, by a full file name or by MIME type. It recognises common non-standard spellings such as image/jpg, shows whether the type is worth compressing, and gives ready-to-copy Content-Type, nginx and Apache configuration.
How to use MIME Type Lookup
- Type an extension (webp), a file name (Report.PDF) or a MIME type (image/jpeg) into the search box.
- Type the start of a MIME type such as image/ or font/ to list a whole family, or narrow the table with the category buttons.
- Click a row to see all extensions for that type and whether gzip or Brotli compression helps.
- Copy the Content-Type header, the nginx types block or the Apache AddType line into your server configuration.
Examples
File name to MIME type
Report.PDF
application/pdf
A non-standard alias
image/jpg
image/jpeg (.jpg .jpeg)
image/jpg is common in code but not registered; send image/jpeg.
Web font
woff2
font/woff2 · Already compressed, skip gzip
Why the Content-Type header matters
- Browsers refuse to run a script or apply a stylesheet served with the wrong type when the server also sends X-Content-Type-Options: nosniff. JavaScript modules always require a JavaScript type.
- text/html makes the browser render a page; application/octet-stream makes it download the file. To force a download of any type, use Content-Disposition: attachment instead of a fake type.
- For text types, add charset=utf-8 so that accents and non-Latin scripts are not garbled. JSON does not take a charset parameter because it is always UTF-8.
- Uploads should not be trusted by extension alone: check the file contents on the server and serve user files with the type you detected, not the one the client claimed.
Which types are worth compressing
Text-based formats such as HTML, CSS, JavaScript, JSON, XML and SVG usually shrink by 60 to 80 percent with gzip or Brotli, so servers and CDNs should compress them. TTF and OTF fonts also compress well.
JPEG, PNG, WebP, AVIF, MP3, MP4, WOFF2, PDF and ZIP are already compressed internally. Compressing them again costs CPU time and saves almost nothing, so leave them out of your gzip_types or compression rules.
Frequently asked questions
Everything you need to know about this tool and data security.
What is application/octet-stream?
The generic type for "arbitrary binary data". Servers use it when they do not know a file's type, and browsers respond by offering a download. It is the safe default for unknown files, but serving known formats such as PDF or MP4 with it prevents them from opening in the browser.
Is it application/javascript or text/javascript?
text/javascript. The current standard (RFC 9239, 2022) made it the official type and marked application/javascript and the x- variants as obsolete. Browsers accept all of them, so existing configurations keep working.
What is the correct MIME type for .ico files?
The registered type is image/vnd.microsoft.icon, but image/x-icon is far more common in the wild and every browser accepts both. Either is fine for a favicon.
Why does a DOCX file show up as application/zip?
Office Open XML files (DOCX, XLSX, PPTX), EPUB, JAR and APK are ZIP archives inside. Tools that detect types from file contents see the ZIP signature, so the server should set the specific type from the extension.
Which MIME type should I use for YAML?
application/yaml, registered in 2024 by RFC 9512. Older tools may still send text/yaml or application/x-yaml; the lookup maps those aliases to the registered type.
Is my data safe when using this tool?
Yes, 100% safe. This tool operates entirely inside your web browser using client-side JavaScript and WebAssembly. Your data never touches any external server.
Related Tools
Every common HTTP response status code with its meaning, typical causes and how to fix it. Search by code or keyword.
Convert an image to a Base64 data URI and copy it as an img tag, CSS background, Markdown or JSON string.
Escape text for safe use in HTML, or turn entities such as & © € back into characters.
Featured Projects tech-fun.net
Explore more AI & productivity tools
Nihongo GameBox
Master Japanese typing, Kana, and JLPT N5–N1 vocabulary through interactive retro arcade games.
ResumeGPT
Tailors CVs and cover letters to every job opportunity with a multi-agent LLM pipeline, job tracking, and scheduled discovery.
CollectMind
Turns your bookmarks into a searchable AI knowledge base — entirely on-device, powered by Chrome's built-in Gemini Nano.