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 |
What Are MIME Types and Extensions?
A MIME type is a string like "image/png" or "application/pdf" that computers use to describe what kind of file they are exchanging. When a web server sends a file to a browser, it includes this MIME type in the HTTP response header alongside the file extension, so the browser can decide whether to display it, download it, or refuse to run it.
This tool lets you look up a MIME type from an extension, or an extension from a MIME type, in either direction. It includes a reference table of about 50 common types spanning images, audio, video, documents, archives, web formats, and fonts — handy whenever you are writing a server configuration file, setting an upload form's accept attribute, or checking a Content-Type header in an API response, without having to search the web each time.
How to Use
- Enter the extension or MIME type you want to look up Type an extension like ".png" or "png", or a MIME type like "image/png" — either direction works.
- Check the conversion result The matching extension or MIME type is displayed automatically based on what you entered.
- Browse the table if you are not sure what to search for Scroll through the reference table below, organized by category, to find the format you need.
- Copy the value for your use case Paste it directly into a server configuration file or an HTML accept attribute.
Tips for getting more out of it
- 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.
Use Cases
Writing a web server configuration file
Confirm the exact, correct MIME type string to assign to a given extension in Apache's mime.types or an Nginx configuration.
Building a file upload form
Look up the full list of MIME types you want to accept for an HTML input element's accept attribute or for API-side validation.
Validating an API response
Quickly cross-check whether the Content-Type header a server returns matches what you expect.
Encountering an unfamiliar MIME type
Look up an unfamiliar MIME type from a log file or error message to find out what kind of file it refers to.
Glossary
- MIME type
- A string in "type/subtype" format that describes a file's kind, such as image/png or application/pdf.
- Content-Type
- The header field name used to transmit a MIME type in an HTTP response or email message. Its value is the MIME type itself.
- Extension
- The identifier at the end of a file name, like ".png" or ".pdf", that operating systems and apps use as one clue to a file's type.
- IANA
- Short for Internet Assigned Numbers Authority, the international body that officially registers and maintains MIME (media) types.
- MIME sniffing
- A technique where a browser inspects the first few bytes of a file and matches them against known format signatures to guess its MIME type.
- application/octet-stream
- A generic MIME type for binary data of an unspecified kind. Browsers usually treat files of this type as a download.
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.