Home Tools Blog About

Media Types List (MIME Types) by File Extension

A MIME type, also called a media type or Content-Type, tells a browser or server what kind of file it is handling. This cheat sheet lists the most common MIME types by category, with the file extensions they go with.

Text and web

Extension MIME type
.txt text/plain
.html text/html
.css text/css
.csv text/csv
.js text/javascript
.xml application/xml
.json application/json
.jsonld application/ld+json

Images

Extension MIME type
.png image/png
.jpg, .jpeg image/jpeg
.gif image/gif
.webp image/webp
.avif image/avif
.svg image/svg+xml
.ico image/x-icon
.bmp image/bmp

Audio and video

Extension MIME type
.mp3 audio/mpeg
.wav audio/wav
.ogg audio/ogg
.mp4 video/mp4
.webm video/webm
.mov video/quicktime

Fonts

Extension MIME type
.woff font/woff
.woff2 font/woff2
.ttf font/ttf
.otf font/otf

Documents and archives

Extension MIME type
.pdf application/pdf
.zip application/zip
.gz application/gzip
.doc application/msword
.docx application/vnd.openxmlformats-officedocument.wordprocessingml.document
.xls application/vnd.ms-excel
.xlsx application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
.pptx application/vnd.openxmlformats-officedocument.presentationml.presentation

Other common types

Use MIME type
Arbitrary binary data application/octet-stream
Form submission application/x-www-form-urlencoded
File upload form multipart/form-data
WebAssembly application/wasm

Frequently Asked Questions

What is a MIME type?

A MIME type, or media type, is a label such as text/html or image/png that tells software what kind of content a file or response contains.

Where are MIME types used?

In the HTTP Content-Type header, in HTML form enctype, in email attachments, and anywhere a program needs to know the format of a file.

What is application/octet-stream?

It is the generic type for arbitrary binary data. Browsers usually download it instead of trying to display it.

Why is the MIME type for .docx so long?

Office files use a vendor (vnd) type that spells out the exact format, which is why the docx and xlsx types are so verbose.

See our free developer tools for headers, encoding, and more.

ATV

Written by Nick (ATV Team)

We build and maintain the 600+ free, client-side tools on this site, and every guide is written against the tools themselves: each figure is computed and checked before it is published, and every linked tool is tested in the browser. More about how we work on the about page, and the full library of guides lives on the blog.