Extension ↔ MIME Type Converter
Look up and convert between file extensions and MIME types (Content-Type) in either direction. Type ".png" or "png" to see its MIME type, or "image/png" to see its matching extensions. Includes a reference table of about 50 common types across images, audio, video, and documents.
| Extension | MIME Type | Category |
|---|---|---|
| .jpg | image/jpeg | Image |
| .jpeg | image/jpeg | Image |
| .png | image/png | Image |
| .gif | image/gif | Image |
| .webp | image/webp | Image |
| .svg | image/svg+xml | Image |
| .bmp | image/bmp | Image |
| .ico | image/vnd.microsoft.icon | Image |
| .tiff | image/tiff | Image |
| .mp3 | audio/mpeg | Audio |
| .wav | audio/wav | Audio |
| .ogg | audio/ogg | Audio |
| .flac | audio/flac | Audio |
| .aac | audio/aac | Audio |
| .m4a | audio/mp4 | Audio |
| .mp4 | video/mp4 | Video |
| .webm | video/webm | Video |
| .avi | video/x-msvideo | Video |
| .mov | video/quicktime | Video |
| .mkv | video/x-matroska | Video |
| application/pdf | Document | |
| .doc | application/msword | Document |
| .docx | application/vnd.openxmlformats-officedocument.wordprocessingml.document | Document |
| .xls | application/vnd.ms-excel | Document |
| .xlsx | application/vnd.openxmlformats-officedocument.spreadsheetml.sheet | Document |
| .ppt | application/vnd.ms-powerpoint | Document |
| .pptx | application/vnd.openxmlformats-officedocument.presentationml.presentation | Document |
| .txt | text/plain | Document |
| .rtf | application/rtf | Document |
| .odt | application/vnd.oasis.opendocument.text | Document |
| .zip | application/zip | Archive |
| .rar | application/vnd.rar | Archive |
| .7z | application/x-7z-compressed | Archive |
| .tar | application/x-tar | Archive |
| .gz | application/gzip | Archive |
| .html | text/html | Web / Text |
| .css | text/css | Web / Text |
| .js | text/javascript | Web / Text |
| .json | application/json | Web / Text |
| .xml | application/xml | Web / Text |
| .csv | text/csv | Web / Text |
| .md | text/markdown | Web / Text |
| .woff | font/woff | Font |
| .woff2 | font/woff2 | Font |
| .ttf | font/ttf | Font |
| .otf | font/otf | Font |
| .eot | application/vnd.ms-fontobject | Font |
| .exe | application/x-msdownload | Executable / Other |
| .apk | application/vnd.android.package-archive | Executable / Other |
| .dmg | application/x-apple-diskimage | Executable / Other |
| .iso | application/x-iso9660-image | Executable / Other |
| .bin | application/octet-stream | Executable / Other |
Tips
- You can search an extension with or without the leading dot — both ".png" and "png" work.
- When searching by MIME type, enter the full slash-separated string (e.g. "image/png") to instantly see the matching extensions.
- A single extension can map to more than one MIME string in the wild (for example, ".ico" is sometimes served as "image/x-icon" instead of the registered "image/vnd.microsoft.icon"), so double-check against your server's actual configuration when it matters.
- This table is handy to copy values straight into an HTTP Content-Type header or a file upload form's accept attribute.
- The same extension can be associated with different MIME types depending on the OS or app, so when in doubt, cross-check against the official IANA registry.
Frequently Asked Questions
Side Note — Where MIME types came from
MIME (Multipurpose Internet Mail Extensions) was devised in the early 1990s to let email carry images, audio, and other binary attachments. Email at the time was built on a text-only standard (RFC 822) that assumed plain ASCII, so binary data had to be encoded (typically with Base64) and tagged with a label describing what kind of data it actually was — that label is the MIME type.
A MIME type is written as "type/subtype" (for example, image/png). The type is a broad category — image, audio, video, text, application, and so on — while the subtype names the specific format. This two-level design lets the system grow simply by registering a new subtype whenever a new format appears, without redesigning the whole scheme.
MIME types soon moved beyond email into HTTP, where they became the standard way a web server tells a browser, via the "Content-Type" response header, how a file should be interpreted. Browsers rely on this header as much as (often more than) the file extension, so a misconfigured Content-Type on the server can make a correctly-named file behave unexpectedly — triggering a download instead of rendering, or refusing to execute a script.
Today the IANA (Internet Assigned Numbers Authority) is the official registry for MIME types, and new media types go through a formal registration process. That said, the mapping between file extensions and MIME types is not itself something IANA enforces — a lot of it is convention built up in practice — which is exactly why a reference table like this one is useful.