File Extensions & MIME Types

Common file extensions mapped to their MIME (media) type.

A searchable reference of common file extensions with their MIME (media) type, category and a description. Look up the MIME / Content-Type for images (.png → image/png), documents (.pdf → application/pdf), video (.mp4 → video/mp4), audio, archives, code and fonts. Ideal for setting a Content-Type header or a file input accept filter. Search by extension or MIME type and tap to copy. Runs fully in your browser — no API.

How to use File Extensions & MIME Types

  1. Open the list

    Launch this free file extensions tool to look up the MIME type for any common file format in one searchable table.

  2. Search a type

    Type an extension like .png or a MIME type like image/png, or a word like 'video', to find the matching file type.

  3. Filter by category

    Use the category filter to narrow to documents, images, audio, video, archives, code or fonts.

  4. Read the MIME type

    Each row shows the extension, its official MIME (media) type and a short description of the format.

  5. Copy a value

    Tap the extension or MIME type to copy it, ready for a Content-Type header or an HTML file input accept attribute.

  6. Set upload filters

    Use the MIME types to configure server validation or an <input accept="..."> so users can only pick the right files.

Frequently asked questions

What is a MIME type?

A MIME type (also called a media type or Content-Type) is a two-part label like image/png or application/pdf that tells a browser or server what kind of file it's dealing with. It's how the web knows to show a PNG as an image or offer a PDF for download, regardless of the file's name.

What is the MIME type for a PDF?

The MIME type for a PDF file (.pdf) is application/pdf. Search this list for any extension to see its correct MIME type.

What MIME type should I use for images?

It depends on the format: .jpg/.jpeg is image/jpeg, .png is image/png, .gif is image/gif, .webp is image/webp and .svg is image/svg+xml. Use the exact MIME type when setting the Content-Type header or an upload filter.

How do I limit file uploads to certain types?

In HTML you can set the accept attribute on a file input using extensions or MIME types, e.g. <input type="file" accept="image/png,image/jpeg,.pdf">. On the server, validate the uploaded file's MIME type against an allow-list. This tool gives you the exact values to use.

What's the difference between a file extension and a MIME type?

A file extension (like .mp4) is the suffix on a filename that hints at the format, while the MIME type (video/mp4) is the standardised label sent over HTTP. Browsers rely on the MIME type, not the extension, so it's important to send the correct Content-Type.

Is this file extensions tool free?

Yes — it's completely free with no sign-up. The list runs in your browser from a built-in dataset, so there are no limits, no API keys and nothing is uploaded.

What is the MIME type for a .docx, .xlsx or .json file?

A Word .docx is application/vnd.openxmlformats-officedocument.wordprocessingml.document, an Excel .xlsx is the spreadsheetml equivalent, and .json is application/json. Search any extension in the list to copy its exact MIME type.

What MIME type is used for video and audio files?

Common video types are .mp4 → video/mp4, .webm → video/webm and .mov → video/quicktime; common audio types are .mp3 → audio/mpeg, .wav → audio/wav and .ogg → audio/ogg. Use the exact value when setting a Content-Type header.

Related tools — Reference · Codes & Web