MIME Type Lookup
Look up the MIME type for a file extension, or the reverse — every extension in the mime-db registry is searchable, the common web and media types first.
The common types are listed first. Search to reach the other 1,173 extensions in the registry.
| Extension | MIME type | Used for | |
|---|---|---|---|
| .html | text/html | Web pages — the markup a browser renders. | |
| .htm | text/html | Same as .html; an older short form of the extension. | |
| .css | text/css | Stylesheets that control a page's layout and appearance. | |
| .js | text/javascript | Browser and Node.js scripts. | |
| .mjs | text/javascript | A JavaScript ES module (import/export syntax). | |
| .json | application/json | Structured data — API responses, config files, package.json. | |
| .xml | application/xml | Structured markup used by feeds, SOAP APIs and config formats. | |
| .csv | text/csv | Spreadsheet rows exported as plain comma-separated text. | |
| .txt | text/plain | Plain, unformatted text. | |
| .md | text/markdown | Lightweight formatted text — READMEs, docs, notes. | |
| .rtf | application/rtf | Formatted text readable by almost any word processor. | |
| .ics | text/calendar | A calendar event or invite, importable into Google, Outlook or Apple Calendar. | |
| .vtt | text/vtt | Timed subtitles or captions for a video. | |
| .wasm | application/wasm | Compiled bytecode that runs in the browser at near-native speed. | |
| .png | image/png | Lossless image with transparency — screenshots, logos, UI graphics. | |
| .jpg | image/jpeg | Compressed photographic image. | |
| .jpeg | image/jpeg | Same format as .jpg; a longer spelling of the extension. | |
| .gif | image/gif | A looping animation, or a simple image with a limited color palette. | |
| .svg | image/svg+xml | Vector graphics described in XML — scales to any size without blurring. | |
| .webp | image/webp | A photo/animation format, usually smaller than JPEG or PNG at similar quality. | |
| .avif | image/avif | A newer, highly compressed photo format based on the AV1 video codec. | |
| .bmp | image/bmp | Uncompressed Windows bitmap image. | |
| .ico | image/vnd.microsoft.icon | A website favicon or Windows application icon. | |
| .tiff | image/tiff | High-quality uncompressed image used in scanning, printing and archiving. | |
| .heic | image/heic | Apple's photo format (High Efficiency Image Container), used by iPhone cameras. | |
| application/pdf | A fixed-layout document that looks the same on any device or printer. | ||
| .doc | application/msword | A legacy Microsoft Word document (pre-2007 binary format). | |
| .docx | application/vnd.openxmlformats-officedocument.wordprocessingml.document | A modern Microsoft Word document. | |
| .xls | application/vnd.ms-excel | A legacy Microsoft Excel spreadsheet (pre-2007 binary format). | |
| .xlsx | application/vnd.openxmlformats-officedocument.spreadsheetml.sheet | A modern Microsoft Excel spreadsheet. | |
| .ppt | application/vnd.ms-powerpoint | A legacy Microsoft PowerPoint deck (pre-2007 binary format). | |
| .pptx | application/vnd.openxmlformats-officedocument.presentationml.presentation | A modern Microsoft PowerPoint deck. | |
| .odt | application/vnd.oasis.opendocument.text | A word-processing document from LibreOffice or OpenOffice Writer. | |
| .ods | application/vnd.oasis.opendocument.spreadsheet | A spreadsheet from LibreOffice or OpenOffice Calc. | |
| .odp | application/vnd.oasis.opendocument.presentation | A slide deck from LibreOffice or OpenOffice Impress. | |
| .epub | application/epub+zip | A reflowable e-book that resizes its text to fit the screen. | |
| .mp3 | audio/mpeg | The most widely supported compressed audio format. | |
| .wav | audio/wav | Uncompressed audio, common in recording and editing before export. | |
| .ogg | audio/ogg | Open, royalty-free compressed audio (Vorbis). | |
| .oga | audio/ogg | The same Ogg Vorbis audio format as .ogg, under an audio-only extension. | |
| .flac | audio/flac | Lossless compressed audio — smaller than WAV, no quality lost. | |
| .aac | audio/aac | Compressed audio used by iTunes, YouTube and most streaming services. | |
| .weba | audio/webm | Compressed audio, typically the audio track pulled out of a WebM video. | |
| .m4a | audio/mp4 | Audio-only file in an MP4 container, common for iTunes and Apple Music downloads. | |
| .mid | audio/midi | Playback instructions for a synthesizer, not recorded sound. | |
| .mp4 | video/mp4 | The most widely supported video format for web and mobile playback. | |
| .m4v | video/mp4 | Apple's variant of MP4, used for iTunes video downloads and rentals. | |
| .webm | video/webm | Open, royalty-free video format built for HTML5 video. | |
| .ogv | video/ogg | Open-format video (Theora) — the video counterpart to Ogg audio. | |
| .avi | video/x-msvideo | An older Windows video container, often holding lightly compressed video. | |
| .mov | video/quicktime | Apple QuickTime video, the default export from iPhone and Final Cut Pro. | |
| .mkv | video/x-matroska | An open container that can hold multiple video, audio and subtitle tracks. | |
| .mpeg | video/mpeg | Older MPEG-1/2 video, once standard for DVDs and early digital video. | |
| .ts | video/mp2t | An MPEG transport stream, used for broadcast video and live-stream segments (HLS). | |
| .zip | application/zip | The most common general-purpose compressed archive. | |
| .gz | application/gzip | A single file compressed with gzip, often paired with .tar. | |
| .tar | application/x-tar | An uncompressed bundle of files (a tarball), usually compressed afterward as .tar.gz. | |
| .rar | application/vnd.rar | A proprietary compressed archive created by WinRAR. | |
| .7z | application/x-7z-compressed | A high-compression archive format created by 7-Zip. | |
| .bz2 | application/x-bzip2 | A single file compressed with bzip2, which favors compression ratio over speed. | |
| .woff | font/woff | Compressed web font format designed for fast page loading. | |
| .woff2 | font/woff2 | A smaller, newer successor to WOFF — the default for modern web fonts. | |
| .ttf | font/ttf | TrueType font, used on both desktop and the web. | |
| .otf | font/otf | OpenType font, TrueType's successor with support for advanced typography. | |
| .eot | application/vnd.ms-fontobject | Embedded OpenType — a legacy web font format for old Internet Explorer. | |
| .bin | application/octet-stream | The fallback type for binary data whose exact format is unknown. |
Source: IANA Media Types registry · WHATWG MIME Sniffing Standard · mime-db 1.54.0
What a MIME type is
A MIME type (also called a media type or content type) is a short label like image/png or application/json that tells software what kind of data a file holds. Servers send it in the Content-Type header, browsers use it to decide how to open a response, and APIs rely on it to accept or reject uploads. It has two parts — a top-level type such as text, image, audio, video, application or font, and a subtype such as html, jpeg or pdf. Because the file extension alone is only a hint, knowing the matching MIME type is what lets you set the correct header.
How to use this lookup
The table opens on the common types, each with a line on what it is used for. Type into the search box to filter it live: the search covers every extension in the mime-db registry — the data behind the widely used mime-types package — and lists an extension typed exactly first. Enter an extension like svg to see it maps to image/svg+xml, or paste part of a MIME type like application/ or video/ to list the matching rows — a long list is cut short, with the number of matches said above it. A leading dot is ignored, so .mp4 works the same as mp4, and matching is case-insensitive. Each row has a Copy button that puts the MIME type on your clipboard, ready to drop into a server config, fetch call or upload allow-list.
Frequently asked questions
Why do some different extensions share the same MIME type?
MIME types describe the format of the data, not the exact file name. For example .jpg and .jpeg are both image/jpeg, and .htm and .html are both text/html, because they hold identical kinds of content.
Should I use text/javascript or application/javascript for .js files?
This table lists text/javascript, which the HTML and WHATWG standards now recommend for serving JavaScript. The older application/javascript still works in browsers, but text/javascript is the current preferred value.
Does it cover less common extensions like .psd, .apk or .webmanifest?
Yes. Every extension in the mime-db registry — the data behind the widely used mime-types package — is searchable, so .psd, .apk, .webmanifest, .jsonld and .sql all answer. The page still opens on the common types, each with a line on what it is used for, and says how many more a search reaches. A search puts the extension typed exactly first, and where the registry and a written-up row disagree, the written-up row wins — .wav stays audio/wav.