MIME Type Lookup
Look up MIME types by file extension or search MIME types to find associated extensions. Free MIME type reference with 200+ common types.
| Extension | MIME Type | Copy |
|---|---|---|
.json | application/json | |
.xml | application/xml | |
.pdf | application/pdf | |
.zip | application/zip | |
.gz | application/gzip | |
.tar | application/x-tar | |
.7z | application/x-7z-compressed | |
.rar | application/vnd.rar | |
.bz2 | application/x-bzip2 | |
.xz | application/x-xz | |
.js | application/javascript | |
.mjs | application/javascript | |
.cjs | application/javascript | |
.wasm | application/wasm | |
.doc | application/msword | |
.docx | application/vnd.openxmlformats-officedocument.wordprocessingml.document | |
.xls | application/vnd.ms-excel | |
.xlsx | application/vnd.openxmlformats-officedocument.spreadsheetml.sheet | |
.ppt | application/vnd.ms-powerpoint | |
.pptx | application/vnd.openxmlformats-officedocument.presentationml.presentation | |
.odt | application/vnd.oasis.opendocument.text | |
.ods | application/vnd.oasis.opendocument.spreadsheet | |
.odp | application/vnd.oasis.opendocument.presentation | |
.rtf | application/rtf | |
.swf | application/x-shockwave-flash | |
.jar | application/java-archive | |
.war | application/java-archive | |
.sql | application/sql | |
.graphql | application/graphql | |
.woff | application/font-woff | |
.jsonld | application/ld+json | |
.rss | application/rss+xml | |
.atom | application/atom+xml | |
.xhtml | application/xhtml+xml | |
.epub | application/epub+zip | |
.mpkg | application/vnd.apple.installer+xml | |
.bin | application/octet-stream | |
.exe | application/octet-stream | |
.dll | application/octet-stream | |
.dmg | application/octet-stream | |
.iso | application/octet-stream | |
.deb | application/x-debian-package | |
.rpm | application/x-rpm | |
.php | application/x-httpd-php | |
.crt | application/x-x509-ca-cert | |
.pem | application/x-pem-file | |
.p12 | application/x-pkcs12 | |
.key | application/pkcs8 | |
.torrent | application/x-bittorrent | |
.ics | application/calendar | |
.html | text/html | |
.htm | text/html | |
.css | text/css | |
.csv | text/csv | |
.tsv | text/tab-separated-values | |
.txt | text/plain | |
.log | text/plain | |
.md | text/markdown | |
.markdown | text/markdown | |
.yaml | text/yaml | |
.yml | text/yaml | |
.toml | text/toml | |
.ini | text/plain | |
.cfg | text/plain | |
.conf | text/plain | |
.env | text/plain | |
.ts | text/typescript | |
.tsx | text/tsx | |
.jsx | text/jsx | |
.py | text/x-python | |
.rb | text/x-ruby | |
.java | text/x-java-source | |
.c | text/x-c | |
.cpp | text/x-c++src | |
.h | text/x-c | |
.hpp | text/x-c++hdr | |
.cs | text/x-csharp | |
.go | text/x-go | |
.rs | text/x-rustsrc | |
.swift | text/x-swift | |
.kt | text/x-kotlin | |
.scala | text/x-scala | |
.sh | text/x-shellscript | |
.bash | text/x-shellscript | |
.zsh | text/x-shellscript | |
.bat | text/x-bat | |
.ps1 | text/x-powershell | |
.lua | text/x-lua | |
.r | text/x-r | |
.dart | text/x-dart | |
.vue | text/x-vue | |
.svelte | text/x-svelte | |
.scss | text/x-scss | |
.sass | text/x-sass | |
.less | text/x-less | |
.styl | text/x-stylus | |
.asm | text/x-asm | |
.vtt | text/vtt | |
.srt | text/srt | |
.ical | text/calendar | |
.vcf | text/vcard | |
.jpg | image/jpeg | |
.jpeg | image/jpeg | |
.png | image/png | |
.gif | image/gif | |
.webp | image/webp | |
.avif | image/avif | |
.svg | image/svg+xml | |
.ico | image/x-icon | |
.bmp | image/bmp | |
.tiff | image/tiff | |
.tif | image/tiff | |
.heic | image/heic | |
.heif | image/heif | |
.jxl | image/jxl | |
.raw | image/x-raw | |
.psd | image/vnd.adobe.photoshop | |
.ai | application/postscript | |
.eps | application/postscript | |
.apng | image/apng | |
.cur | image/x-icon | |
.mp3 | audio/mpeg | |
.wav | audio/wav | |
.ogg | audio/ogg | |
.oga | audio/ogg | |
.flac | audio/flac | |
.aac | audio/aac | |
.m4a | audio/mp4 | |
.wma | audio/x-ms-wma | |
.opus | audio/opus | |
.mid | audio/midi | |
.midi | audio/midi | |
.aiff | audio/aiff | |
.weba | audio/webm | |
.amr | audio/amr | |
.mp4 | video/mp4 | |
.m4v | video/mp4 | |
.webm | video/webm | |
.ogv | video/ogg | |
.avi | video/x-msvideo | |
.mov | video/quicktime | |
.wmv | video/x-ms-wmv | |
.flv | video/x-flv | |
.mkv | video/x-matroska | |
.ts | video/mp2t | |
.3gp | video/3gpp | |
.3g2 | video/3gpp2 | |
.m3u8 | application/vnd.apple.mpegurl | |
.mpd | application/dash+xml | |
.woff2 | font/woff2 | |
.woff | font/woff | |
.ttf | font/ttf | |
.otf | font/otf | |
.eot | application/vnd.ms-fontobject | |
.gltf | model/gltf+json | |
.glb | model/gltf-binary | |
.obj | model/obj | |
.stl | model/stl | |
.webmanifest | application/manifest+json | |
.map | application/json | |
.wsdl | application/wsdl+xml | |
.proto | text/x-protobuf |
About MIME Type Lookup
Look up MIME types (media types) by file extension or search by MIME type string. Includes 162+ entries covering documents, images, audio, video, fonts, code files, and more. Click any row to copy the MIME type to your clipboard.
How to Use MIME Type Lookup
Enter file extension
Type an extension (.pdf, .jpg, .html, and so on) or paste a filename. The tool extracts the extension automatically.
View MIME type
The tool returns the standard MIME type (the most common one), lists alternatives when multiple exist, and provides a description with usage context.
Use in headers
Apply the result to HTTP Content-Type headers, email attachments, file upload validation, and API content negotiation.
Verify on real files
The extension lookup gives you the expected MIME type. For real files, check the magic bytes (the file signature) to confirm the actual content type, and combine both checks for accuracy.
When to Use MIME Type Lookup
Web development
Setting the Content-Type header for file uploads and downloads is one of those small configuration tasks that quietly determines whether everything works. The tool gives you the standard MIME type for any file extension, which fits server configuration, API development, and file handling work.
Email attachments
Programmatic email with attachments needs the correct MIME type on every part. The tool makes the lookup quick, which matters when working with SMTP libraries, automated emails, and attachment processing pipelines.
File processing
Categorizing files by MIME type drives a lot of file processing work. Image processors handle image/jpeg, image/png, and image/gif; video tools handle video/mp4 and video/webm. The tool provides a comprehensive lookup that fits file type detection and processing pipelines.
API design
RESTful APIs depend on Content-Type and Accept headers, and the tool helps you pick the right MIME types. It is useful in API design, content negotiation, and integration with diverse clients.
MIME Type Lookup Examples
Common file types
.pdfapplication/pdf. Standard MIME type for PDF files. Used in: HTTP Content-Type, email attachments, file downloads.A standard lookup. PDFs use application/pdf, which is critical for browsers to handle correctly — without it, the browser may not know whether to display or download.
Multiple options
.htmltext/html (most common). Also: application/xhtml+xml (XHTML). Charset specifier optional: text/html; charset=utf-8.Some extensions have more than one valid MIME type. The tool shows the most common first and lists alternatives so you can choose based on context.
Modern formats
.webpimage/webp. Modern image format (Google, since 2010). Better compression than JPG/PNG.Modern formats have their own MIME types, and serving the correct one matters. Send the wrong MIME and the browser may not display the format properly.
Tips & Best Practices for MIME Type Lookup
- 1.Always set the correct Content-Type. HTTP responses without a proper MIME type can be misinterpreted by the browser, which creates security risks and broken displays.
- 2.Include the charset on text content. text/html; charset=utf-8 is unambiguous, while leaving the charset out forces the browser to auto-detect, which sometimes gets it wrong.
- 3.Distinct MIME types matter for security. Browsers treat application/octet-stream very differently from text/plain, and the wrong type can introduce XSS or other security issues.
- 4.Use modern alternatives where they exist. application/json is now standard for JSON (it used to be served as text/plain), and image/svg+xml is the right type for SVG. Update old configurations.
- 5.Do not rely on MIME type sniffing. Some browsers detect the type from content when Content-Type is missing or wrong, but you should always send the correct type.
- 6.When uploading multiple files, multipart/form-data is the MIME type for the form itself, and each part has its own Content-Type.
Frequently Asked Questions
Related Tools
HTTP Status Code Reference
Searchable HTTP status code reference with descriptions, use cases, and examples. Find any HTTP response code from 1xx to 5xx instantly.
Robots.txt Generator
Generate robots.txt files online with crawler rules and sitemap directives. Free robots.txt generator for SEO and search engine control.
Sitemap Generator
Generate XML sitemaps online for better search engine indexing. Free sitemap generator with priority, frequency, and lastmod options.
.htaccess Generator
Generate .htaccess rules online for Apache web servers. Free htaccess generator for redirects, caching, security, and URL rewriting.
User Agent Parser
Parse and analyze user agent strings online to detect browser, OS, device, and bot details. Free user agent string parser and analyzer for web developers.
URL Parser
Parse and analyze URL components online including protocol, host, path, and query parameters. Free URL parser for web developers.