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

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

  1. 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.
  2. Check the conversion result The matching extension or MIME type is displayed automatically based on what you entered.
  3. 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.
  4. 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

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.
Tool-kun

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.