Look up file extensions and their content types

Find the registered media type normally associated with a common filename extension.

freeworks offlinenothing uploaded
ToolMIME Type Reference
Input
Output
Put this on your own site

The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.

Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.

Preview

How it works

A curated extension table is filtered by IANA top-level type or a case-insensitive match against its extension, registered label, or description. The output supplies a base Content-Type value and does not inspect file bytes or add representation parameters.

  • An empty search shows the included registrations, while category all leaves every top-level group visible.
  • Obsolete JavaScript labels and deprecated unregistered YAML aliases are excluded from the current mapping.

Worked example

Browse all image MIME types
Filter by image category to see PNG, JPEG, WebP, AVIF, and more
Input
											image
										
Output
												Ext      MIME Type                                               Description
------------------------------------------------------------------------------------------
.png     image/png                                               PNG image
.jpg     image/jpeg                                              JPEG image
.gif     image/gif                                               GIF image
.svg     image/svg+xml                                           SVG
.webp    image/webp                                              WebP image
.ico     image/vnd.microsoft.icon                                Icon
.avif    image/avif                                              AVIF image
.bmp     image/…
											

When to use this

HTTP servers set Content-Type response headers, multipart email labels attachment bodies, and web-server extension maps select types for SVG, WebAssembly, fonts, and other static assets.

Edge cases

  • The .js extension returns text/javascript because RFC 9239 made that the common registration and marked application/javascript obsolete.
  • The .yaml extension returns application/yaml; RFC 9512 lists application/x-yaml as a deprecated, unregistered alias.
  • A value such as text/html; charset=utf-8 contains a parameter, but the table returns only text/html and does not guess an encoding.

References