MIME Type Lookup
Look up MIME types by file extension or search by type. Full reference for web content types, media formats, and more.
| Extension | MIME Type | |
|---|---|---|
| .jpg | image/jpeg | |
| .jpeg | image/jpeg | |
| .png | image/png | |
| .gif | image/gif | |
| .webp | image/webp | |
| .svg | image/svg+xml | |
| .ico | image/x-icon | |
| .bmp | image/bmp | |
| .tiff | image/tiff | |
| .tif | image/tiff | |
| .avif | image/avif | |
| .mp4 | video/mp4 | |
| .webm | video/webm | |
| .ogg | video/ogg | |
| .mov | video/quicktime | |
| .avi | video/x-msvideo | |
| .mkv | video/x-matroska | |
| .flv | video/x-flv | |
| .wmv | video/x-ms-wmv | |
| .mp3 | audio/mpeg | |
| .wav | audio/wav | |
| .ogg | audio/ogg | |
| .flac | audio/flac | |
| .aac | audio/aac | |
| .m4a | audio/mp4 | |
| .opus | audio/opus | |
| .html | text/html | |
| .htm | text/html | |
| .css | text/css | |
| .js | text/javascript | |
| .mjs | text/javascript | |
| .ts | text/typescript | |
| .jsx | text/jsx | |
| .tsx | text/tsx | |
| .txt | text/plain | |
| .csv | text/csv | |
| .tsv | text/tab-separated-values | |
| .md | text/markdown | |
| .xml | application/xml | |
| .json | application/json | |
| .jsonl | application/jsonlines | |
| .yaml | application/yaml | |
| .yml | application/yaml | |
| .toml | application/toml | |
| application/pdf | ||
| .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 | |
| .zip | application/zip | |
| .tar | application/x-tar | |
| .gz | application/gzip | |
| .bz2 | application/x-bzip2 | |
| .7z | application/x-7z-compressed | |
| .rar | application/vnd.rar | |
| .xz | application/x-xz | |
| .ttf | font/ttf | |
| .otf | font/otf | |
| .woff | font/woff | |
| .woff2 | font/woff2 | |
| .eot | application/vnd.ms-fontobject | |
| .wasm | application/wasm | |
| .exe | application/octet-stream | |
| .bin | application/octet-stream | |
| .dmg | application/x-apple-diskimage | |
| .deb | application/vnd.debian.binary-package | |
| .apk | application/vnd.android.package-archive | |
| .webmanifest | application/manifest+json | |
| .rss | application/rss+xml | |
| .atom | application/atom+xml | |
| .ics | text/calendar | |
| .vcf | text/vcard | |
| .geojson | application/geo+json |
Related Tools
Unix Timestamp
Convert Unix timestamps to UTC, local time, and ISO 8601 instantly. Auto-detects seconds vs milliseconds.
Base Converter
Convert numbers between decimal, hex, binary, and octal instantly. Free and runs in your browser.
Hash Generator
Generate SHA-1, SHA-256, SHA-384, and SHA-512 hashes instantly. Runs entirely in your browser using the Web Crypto API.
MIME types (Multipurpose Internet Mail Extensions) are standardized string identifiers that describe the nature and format of a file or data stream. They follow the pattern type/subtype (e.g., image/png, application/json, text/html) and are registered with IANA (Internet Assigned Numbers Authority). HTTP uses MIME types in the Content-Type header to tell browsers and clients how to process a response — whether to render it as HTML, display it as an image, trigger a download, or parse it as JSON.
Every web developer regularly needs to look up the correct MIME type for a file extension. When configuring HTTP server Content-Type headers, setting up S3 bucket metadata for static assets, writing file upload validation code, configuring nginx or Apache MIME type mappings, or setting the type attribute on HTML <link> or <script> tags, the exact MIME type string must match the standard. A wrong or invented MIME type causes browsers to mishandle the content.
This tool provides an instant lookup of MIME types by file extension or by type string. The database is a static table of several hundred common and uncommon types sourced from IANA registries and browser vendor MIME databases. Both forward lookup (extension → MIME type) and reverse lookup (MIME type → extension) are supported. Click any result row to copy the MIME type string directly to the clipboard.
Common Use Cases
Configuring HTTP server Content-Type headers
Web servers (nginx, Apache, Caddy, Express) must return the correct Content-Type header for each file type they serve. Misconfigured MIME types cause browsers to prompt unnecessary downloads, refuse to render content, or block resources under strict Content Security Policies. When writing nginx mime.types configuration or Express static middleware settings, looking up the authoritative MIME type for uncommon extensions (like .wasm, .avif, or .woff2) ensures correct browser behavior.
Writing file upload validation on frontend and backend
File upload inputs restrict accepted file types using the HTML accept attribute and server-side validation. The accept attribute takes MIME types (accept='image/png,image/jpeg') or extensions (.png,.jpg). Backend validation in Node.js, Python, or Go checks the uploaded file's Content-Type against an allowlist. Looking up the correct MIME type for each allowed format ensures the validation list is accurate and covers all relevant subtypes.
Setting S3 and CDN object metadata for static assets
Files uploaded to Amazon S3, Google Cloud Storage, or Cloudflare R2 without explicit Content-Type metadata default to application/octet-stream, which causes browsers to download rather than display them. When programmatically uploading fonts (.woff2), SVG icons, JavaScript modules, or WebAssembly files, the upload SDK call must include the correct MIME type in the object metadata. Looking up types for uncommon formats prevents the 'download instead of render' issue.
How to Use
- Type a file extension (e.g.
mp4,pdf) to find its MIME type. - Or type a partial MIME type (e.g.
image,video) to browse all matching types. - Results update instantly as you type.
- Click any row to copy the MIME type string to your clipboard.
- Use it in HTTP headers,
Content-Typefields, or file upload validation.
Common MIME Types
text/html— HTML documentsapplication/json— JSON dataimage/png/image/jpeg/image/webp— Imagesvideo/mp4— MP4 videoaudio/mpeg— MP3 audioapplication/pdf— PDF documentsapplication/octet-stream— Generic binary data
What is a MIME Type?
MIME (Multipurpose Internet Mail Extensions) types tell browsers and servers how to handle file content. Format: type/subtype (e.g. image/png). They appear in HTTP Content-Type headers, HTML accept attributes, and file input validation.