Skip to content
D DocNectar

Free MIME Type Lookup Tool

Look up the MIME type for a file extension, or the file extension(s) for a MIME type.

100% Free No Signup Works on all devices

Built and fact-checked by the DocNectar team — see our editorial standards

Thanks for rating!

Key Features

Instant Calculation

Get accurate results in real time with our optimized algorithm.

Mobile Friendly

Fully responsive design. Works on all devices & screen sizes.

Privacy Focused

Your data stays on your device. We don't store any inputs.

100% Free

No hidden costs. This tool is completely free forever.

Setting the correct MIME type is essential for HTTP headers, file uploads, and email attachments, but remembering the exact standard type string for every file extension isn't practical. This tool looks up the standard MIME type for a file extension, or the reverse — the file extension(s) that correspond to a given MIME type.

How it works

Choose a lookup direction and enter either a file extension or a MIME type. The tool checks it against a built-in registry of common MIME type mappings and returns the matching result.

  1. Enter lookup direction.
  2. Enter extension or MIME type.
  3. Click Calculate to see your results.

Examples

Looking up .pdf

The file extension ".pdf" maps to the MIME type "application/pdf".

Who should use it

  • Setting the correct Content-Type header for a file upload or download endpoint.
  • Determining what file extension(s) to expect for a given MIME type in an API integration.

Industry applications

  • Web development and API design
  • Systems administration and email configuration

Advantages

  • Supports lookups in both directions (extension to MIME, and MIME to extension).
  • Covers the most common web, document, media, and font file formats.

Limitations

  • Limited to a built-in registry of common formats — highly specialized or vendor-specific formats may not be included.

Common mistakes to avoid

  • Including the leading dot inconsistently when entering a file extension — the tool accepts it either way, but be consistent in your own documentation.
  • Assuming every possible file extension has a single, universally agreed-upon MIME type — some formats have more than one valid type in use.

Best practices

  • When setting a Content-Type HTTP header for a file download, always use the standard MIME type for that file's actual format, not a generic fallback like "application/octet-stream," when the format is known.

Tips

  • When building a file upload validator, check both the file extension and its declared MIME type together for a more reliable format check than either alone.

Frequently asked questions

Yes, with no signup and no limit on how many lookups you run.
A standardized string (like "image/png" or "application/pdf") that identifies the format of a file or piece of content, used in HTTP headers, email attachments, and file uploads so the receiving system knows how to handle it.
Yes — for example, both ".jpg" and ".jpeg" map to "image/jpeg," so a MIME-type-to-extension lookup can return more than one matching extension.
The tool covers the most common web, document, image, audio, video, and font formats — an unrecognized extension or MIME type will return a "not found" error.

Get new calculators and guides in your inbox

No spam — just new tools like MIME Type Lookup and practical guides.

Favorites