Look up the Content-Type for a file extension, or the extensions for a MIME type.
Runs in your browser. Your input is not uploaded.
Loading the tool…
What it does
A MIME type (media type) tells the browser what a response is, in the Content-Type header: text/html, application/json, image/webp. Browsers rely on it more than on the file extension.
Search by extension or type. The list covers the formats a web server is likely to serve.
How to use it
Type an extension such as .webp or a type such as application/json.
Copy the type or the matching extensions.
Things to watch for
Serve JavaScript as text/javascript. application/javascript is obsolete, and modules with a wrong type are refused.
With X-Content-Type-Options: nosniff, a wrong type stops scripts and stylesheets loading.
Add ; charset=utf-8 for text types if the server does not.
Questions
What is the MIME type for JSON?
application/json. It has no charset parameter because JSON is always UTF-8.
What should unknown files use?
application/octet-stream. Browsers download it rather than trying to display it.
What is the type for .wasm?
application/wasm. Streaming compilation fails without it.
Is image/jpg valid?
No. The registered type is image/jpeg.
85 types
MIME type
Extensions
Description
text/html
.html .htm
HTML document
text/css
.css
CSS stylesheet
text/javascript
.js .mjs .cjs
JavaScript. application/javascript is obsolete
application/json
.json
JSON
application/ld+json
.jsonld
JSON-LD structured data
application/manifest+json
.webmanifest
Web app manifest
application/xml
.xml
XML. text/xml is also accepted
text/plain
.txt .text .log
Plain text
text/csv
.csv
Comma-separated values
text/tab-separated-values
.tsv
Tab-separated values
text/markdown
.md .markdown
Markdown
text/calendar
.ics
iCalendar event
text/vcard
.vcf
vCard contact
application/yaml
.yaml .yml
YAML (RFC 9512)
application/toml
.toml
TOML
application/sql
.sql
SQL script
application/graphql
.graphql .gql
GraphQL query
application/wasm
.wasm
WebAssembly module. Required for streaming compile
image/png
.png
PNG image
image/jpeg
.jpg .jpeg .jfif
JPEG image
image/gif
.gif
GIF image
image/webp
.webp
WebP image
image/avif
.avif
AVIF image
image/svg+xml
.svg
SVG vector image
image/x-icon
.ico
Icon. image/vnd.microsoft.icon is the registered name
image/bmp
.bmp
Bitmap image
image/tiff
.tif .tiff
TIFF image
image/heic
.heic
HEIC image (iPhone photos)
font/woff2
.woff2
WOFF2 web font
font/woff
.woff
WOFF web font
font/ttf
.ttf
TrueType font
font/otf
.otf
OpenType font
audio/mpeg
.mp3
MP3 audio
audio/ogg
.oga .ogg .opus
Ogg audio
audio/wav
.wav
WAV audio
audio/aac
.aac
AAC audio
audio/mp4
.m4a
MPEG-4 audio
audio/webm
.weba
WebM audio
audio/flac
.flac
FLAC audio
video/mp4
.mp4 .m4v
MPEG-4 video
video/webm
.webm
WebM video
video/ogg
.ogv
Ogg video
video/quicktime
.mov
QuickTime video
video/x-msvideo
.avi
AVI video
video/mp2t
.ts
MPEG transport stream (HLS segments)
application/vnd.apple.mpegurl
.m3u8
HLS playlist
application/pdf
.pdf
PDF document
application/zip
.zip
ZIP archive
application/gzip
.gz
Gzip archive
application/x-tar
.tar
Tar archive
application/x-7z-compressed
.7z
7-Zip archive
application/vnd.rar
.rar
RAR archive
application/x-bzip2
.bz2
Bzip2 archive
application/zstd
.zst
Zstandard archive
application/octet-stream
.bin .exe .dll .so .dmg .iso
Unknown binary. Browsers download it rather than display it