Categories

MIME Type Lookup

Find the MIME type for a file extension, or the extensions for a MIME type

Type a file extension (with or without the dot) to find its MIME type, or type part of a MIME type to find matching extensions.

92 results
.txt
text/plain
text
.html
text/html
text
.htm
text/html
text
.css
text/css
text
.csv
text/csv
text
.md
text/markdown
RFC 7763
text
.ics
text/calendar
text
.vtt
text/vtt
text
.js
text/javascript
alt: application/javascript
text
.mjs
text/javascript
text
.json
application/json
application
.jsonld
application/ld+json
application
.xml
application/xml
alt: text/xml
application
.xhtml
application/xhtml+xml
application
.pdf
application/pdf
application
.rtf
application/rtf
application
.zip
application/zip
application
.gz
application/gzip
application
.tar
application/x-tar
application
.rar
application/vnd.rar
application
.7z
application/x-7z-compressed
application
.bz
application/x-bzip
application
.bz2
application/x-bzip2
application
.doc
application/msword
application
.docx
application/vnd.openxmlformats-officedocument.wordprocessingml.document
application
.xls
application/vnd.ms-excel
application
.xlsx
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
application
.ppt
application/vnd.ms-powerpoint
application
.pptx
application/vnd.openxmlformats-officedocument.presentationml.presentation
application
.odt
application/vnd.oasis.opendocument.text
application
.ods
application/vnd.oasis.opendocument.spreadsheet
application
.odp
application/vnd.oasis.opendocument.presentation
application
.epub
application/epub+zip
application
.jar
application/java-archive
application
.apk
application/vnd.android.package-archive
application
.wasm
application/wasm
application
.ogx
application/ogg
application
.sh
application/x-sh
application
.php
application/x-httpd-php
application
.sql
application/sql
application
.yaml
application/yaml
alt: text/yaml, application/x-yaml
application
.yml
application/yaml
application
.bin
application/octet-stream
generic binary
application
.exe
application/octet-stream
application
.dll
application/octet-stream
application
.png
image/png
image
.jpg
image/jpeg
image
.jpeg
image/jpeg
image
.gif
image/gif
image
.webp
image/webp
image
.svg
image/svg+xml
image
.ico
image/vnd.microsoft.icon
alt: image/x-icon
image
.bmp
image/bmp
image
.tif
image/tiff
image
.tiff
image/tiff
image
.avif
image/avif
image
.heic
image/heic
image
.heif
image/heif
image
.apng
image/apng
image
.mp3
audio/mpeg
audio
.wav
audio/wav
alt: audio/x-wav
audio
.ogg
audio/ogg
alt: application/ogg
audio
.oga
audio/ogg
audio
.opus
audio/opus
audio
.flac
audio/flac
audio
.aac
audio/aac
audio
.weba
audio/webm
audio
.m4a
audio/mp4
audio
.mid
audio/midi
alt: audio/x-midi
audio
.midi
audio/midi
audio
.mp4
video/mp4
video
.webm
video/webm
video
.ogv
video/ogg
video
.mov
video/quicktime
video
.avi
video/x-msvideo
video
.mkv
video/x-matroska
video
.mpeg
video/mpeg
video
.mpg
video/mpeg
video
.3gp
video/3gpp
audio/3gpp if no video
video
.3g2
video/3gpp2
video
.ts
video/mp2t
video
.flv
video/x-flv
video
.wmv
video/x-ms-wmv
video
.woff
font/woff
font
.woff2
font/woff2
font
.ttf
font/ttf
font
.otf
font/otf
font
.eot
application/vnd.ms-fontobject
font
.gltf
model/gltf+json
model
.glb
model/gltf-binary
model
.stl
model/stl
model
.obj
model/obj
model

MIME Type Lookup — Extension to Content-Type

This free MIME type lookup finds the correct MIME (media) type for any file extension, and works in reverse too: type part of a MIME type to see every extension that uses it. It covers more than 90 of the everyday web formats — documents, images, audio, video, fonts, archives, and 3D models — each labelled with its category so you can pick the right Content-Type header for a download, an upload validator, or a static file server.

MIME types tell browsers and servers how to interpret a file, so getting them right is the difference between a PDF opening inline and a page of garbled bytes. Everything here is a static reference that runs entirely in your browser — no lookups are sent anywhere.

How to use MIME Type Lookup

  1. Type a file extension, with or without the leading dot (for example png or .docx), to see its MIME type.
  2. Or type part of a MIME type (for example image/ or json) to list every matching extension.
  3. Use the category buttons to narrow results to text, application, image, audio, video, font, or model types.
  4. Click the copy icon on any row to copy the MIME type for use in a Content-Type header or a config file.

What a MIME type is

A MIME type (also called a media type or content type) is a two-part label of the form type/subtype, such as text/html or image/png. The first part is the general category and the second identifies the exact format. Web servers send it in the Content-Type response header so the browser knows whether to render, play, or download the response, and browsers send it when uploading files. An optional parameter such as charset=utf-8 can follow the subtype.

Content-Type: text/html; charset=utf-8
Content-Type: application/json
Content-Type: image/svg+xml
MIME types as they appear in an HTTP Content-Type header.

The main categories

  • text — human-readable formats such as text/plain, text/html, text/css, and text/csv.
  • application — everything else, from application/json and application/pdf to Office and archive formats; application/octet-stream is the generic fallback for arbitrary binary data.
  • image — image/png, image/jpeg, image/webp, image/svg+xml, image/avif, and more.
  • audio and video — media formats such as audio/mpeg, audio/ogg, video/mp4, and video/webm.
  • font — font/woff2, font/woff, font/ttf, and font/otf (the older EOT uses application/vnd.ms-fontobject).
  • model — 3D formats such as model/gltf-binary and model/stl.

When an extension is unknown

If a file's type cannot be determined, the correct generic MIME type is application/octet-stream, which tells the browser to treat the response as arbitrary binary data and download it rather than try to display it. Some extensions also have more than one valid MIME type — for example .js is officially text/javascript but application/javascript is still widely seen — and those alternates are noted next to the primary type.

Related terminology

MIME type
A standardized label of the form type/subtype (for example image/png) that identifies the format of a file or a piece of data. Also called a media type or content type.
Content-Type
The HTTP header that carries the MIME type of a request or response body, telling the recipient how to interpret the bytes that follow.
Subtype
The second half of a MIME type, after the slash, naming the specific format — png in image/png, or vnd.openxmlformats-officedocument.wordprocessingml.document in the .docx type.
application/octet-stream
The generic MIME type for arbitrary binary data. Servers use it when a file's type is unknown, which causes browsers to download rather than display it.
charset parameter
An optional addition to a text MIME type, such as ; charset=utf-8, that specifies the character encoding of the content.

Frequently asked questions

What is the MIME type for a JSON file?
The MIME type for JSON is application/json. Search for json above to confirm it, and note that JSON-LD uses application/ld+json.
What MIME type should I use for a file with no known extension?
Use application/octet-stream. It is the standard generic type for binary data, and it prompts the browser to download the file instead of trying to render it.
Why does one extension show more than one MIME type?
Some formats have several registered or historically used types. For example, .js is officially text/javascript but application/javascript is still common, and .ico appears as both image/vnd.microsoft.icon and image/x-icon. The primary, recommended type is listed first with the alternate noted beside it.
Is a MIME type the same as a file extension?
No. A file extension is a naming convention on the filesystem, while a MIME type is the format label sent over the network in the Content-Type header. Servers map extensions to MIME types, but browsers rely on the MIME type, not the extension, to decide how to handle a response.
Are my lookups sent to a server?
No. The entire MIME type table is bundled with the page and searched in your browser, so nothing you type is uploaded.

Related tools