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 Reference Table
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
.pdf 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

They refer to essentially the same thing. "MIME type" is the name for the string itself (like "image/png"), while "Content-Type" is the name of the header field used to transmit that string in an HTTP response or an email message.

Yes. For example, an ".ico" file is registered as "image/vnd.microsoft.icon" but is sometimes served as "image/x-icon" in practice. This kind of inconsistency usually comes from older formats that predate formal standardization, or from different vendors defining their own conventions independently.

The browser may fail to interpret the file correctly — an image might not render, a PDF might download instead of opening inline, or a script might not execute. The fix is usually to correct the web server's MIME type configuration (for example, Apache's mime.types or Nginx's mime.types file).

Browsers and operating systems sometimes use "MIME sniffing" — inspecting the first few bytes of a file (its magic number) and matching them against known file signatures to guess the type. For security reasons, though, most browsers give priority to an explicit Content-Type header sent by the server whenever one is present.

It is a generic MIME type meaning "unspecified binary data." Servers fall back to it when they cannot determine a more specific MIME type, and browsers typically treat files of this type as a download rather than trying to render them.
ツールくん

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.