MIME Type Lookup

Find MIME types by file extension or search by content type and keyword.

63 results

Text

text/plain
.txt
.log

Plain text without formatting.

text/html
.html
.htm

HyperText Markup Language documents.

text/css
.css

Cascading Style Sheets.

text/javascript
.js
.mjs

JavaScript source (modern preferred MIME).

text/csv
.csv

Comma-separated values.

text/markdown
.md
.markdown

Markdown source documents.

text/xml
.xml

XML treated as text.

text/calendar
.ics

iCalendar / vCalendar.

text/vcard
.vcf

vCard contact data.

Image

image/png
.png

Portable Network Graphics — lossless raster.

image/jpeg
.jpg
.jpeg

JPEG lossy raster image.

image/gif
.gif

Graphics Interchange Format with animation support.

image/webp
.webp

Modern Google raster format with great compression.

image/avif
.avif

AV1 Image File Format — superior compression.

image/svg+xml
.svg

Scalable Vector Graphics — XML-based vectors.

image/x-icon
.ico

Windows / favicon icon format.

image/bmp
.bmp

Windows bitmap image.

image/tiff
.tif
.tiff

Tagged Image File Format — print and scanning.

image/heic
.heic

High Efficiency Image Container — Apple devices.

Audio

audio/mpeg
.mp3

MPEG audio (MP3) — universal compressed audio.

audio/wav
.wav

Waveform Audio — uncompressed PCM.

audio/ogg
.ogg
.oga

Ogg container, typically Vorbis or Opus audio.

audio/flac
.flac

Free Lossless Audio Codec.

audio/webm
.weba

WebM audio (Vorbis/Opus).

audio/mp4
.m4a

MP4 audio container, often AAC.

audio/aac
.aac

Advanced Audio Coding stream.

Video

video/mp4
.mp4
.m4v

MPEG-4 video container — broadly supported.

video/webm
.webm

Open WebM video container.

video/ogg
.ogv

Ogg video container.

video/quicktime
.mov

Apple QuickTime movie.

video/x-msvideo
.avi

Microsoft AVI container (legacy).

video/x-matroska
.mkv

Matroska multimedia container.

video/mp2t
.ts

MPEG-2 transport stream (HLS segments).

Application

application/json
.json

JSON data interchange.

application/ld+json
.jsonld

JSON for Linking Data.

application/xml
.xml

XML treated as data.

application/yaml
.yaml
.yml

YAML data serialization.

application/pdf
.pdf

Portable Document Format.

application/octet-stream
.bin

Generic binary stream — unknown payload.

application/javascript
.js

JavaScript (legacy MIME, prefer text/javascript).

application/wasm
.wasm

WebAssembly binary module.

application/manifest+json
.webmanifest

Web App Manifest.

application/x-www-form-urlencoded

Form data encoded as URL parameters.

multipart/form-data

Multipart form upload (files + fields).

application/sql
.sql

SQL script.

application/rtf
.rtf

Rich Text Format documents.

application/vnd.ms-excel
.xls

Microsoft Excel 97-2003 spreadsheet.

application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
.xlsx

Microsoft Excel (modern, OOXML) spreadsheet.

application/msword
.doc

Microsoft Word 97-2003 document.

application/vnd.openxmlformats-officedocument.wordprocessingml.document
.docx

Microsoft Word (modern, OOXML) document.

application/vnd.ms-powerpoint
.ppt

Microsoft PowerPoint 97-2003 presentation.

application/vnd.openxmlformats-officedocument.presentationml.presentation
.pptx

Microsoft PowerPoint (modern, OOXML) presentation.

Archive

application/zip
.zip

ZIP archive.

application/gzip
.gz

Gzip-compressed file.

application/x-tar
.tar

Tape archive (uncompressed).

application/x-7z-compressed
.7z

7-Zip archive.

application/vnd.rar
.rar

RAR archive.

application/x-bzip2
.bz2

Bzip2-compressed file.

Font

font/woff
.woff

Web Open Font Format.

font/woff2
.woff2

Web Open Font Format 2 — better compression.

font/ttf
.ttf

TrueType Font.

font/otf
.otf

OpenType Font.

font/collection
.ttc

TrueType / OpenType Collection.

About MIME Type Lookup

MIME Type Lookup is a searchable mapping between file extensions and MIME types (also called media types or content types) in both directions. Type an extension (`.pdf`, `webp`, `tar.gz`) and get the canonical type (`application/pdf`, `image/webp`, `application/gzip`); type a content type and get every extension that resolves to it. The data follows the IANA media-type registry, with widely-used unregistered types (like `image/x-icon`) included alongside the official ones.

Reach for it whenever you are setting `Content-Type` on a response, configuring a static-file server, or trying to figure out what extension a downloaded blob should have. Picking the right MIME type matters: the wrong one prevents browser previews, breaks `<img>` rendering, blocks PDF inlining, or causes downloads when an inline view was intended. HTTP Status Codes is the related reference for the other side of the response — what to put on the status line; this is for the `Content-Type` header.

Examples

Input
search: webp
Output
image/webp
— Extensions: .webp
— Registered with IANA, RFC 9649

Search by extension (`webp`, `.webp`) or by content type (`image/webp`). The result includes IANA registration and a link to the RFC.

Frequently asked questions

Why are some types prefixed with `application/x-` or `image/vnd.`?

`x-` was the original prefix for unregistered types; modern practice is to use `vnd.` (vendor) or just register the type with IANA. You will still see `x-` types in the wild — `application/x-tar`, `image/x-icon`, `application/x-www-form-urlencoded` — for historical reasons.

What MIME type should I serve a JSON file as?

`application/json`, per RFC 8259. Some legacy servers still serve `text/json` or `text/plain`, both of which work in a browser but are wrong; modern fetch APIs and JSON parsers expect `application/json` and may behave unpredictably with the wrong type.

Are there types for newer formats like AVIF, JXL, WebM?

Yes. `image/avif` (registered), `image/jxl` (provisional), `video/webm` (registered) — all in the lookup. New image and video formats are added to the IANA registry as they ship; the dataset here updates with each release.

What about CSS, JavaScript, and HTML?

`text/css` for CSS, `text/javascript` for JS (the IANA-preferred type as of 2022; `application/javascript` is still accepted), `text/html` for HTML. Browsers tolerate variation here, but matching the official type avoids subtle issues with CDN caching and CSP rules.