MIME Type Lookup

Find the MIME type, or Content-Type, for any common file extension.

.
Enter a file extension without the dot, for example jpg rather than .jpg.

What is a MIME Type?

MIME, or Multipurpose Internet Mail Extensions, identifies the nature and format of a file or byte stream. Web servers use MIME types to tell browsers what content is being served so the browser can handle it correctly.

MIME Type Structure

MIME types consist of a type and subtype separated by a slash.

type/subtype

Examples:

  • text/html - HTML documents
  • image/jpeg - JPEG images
  • application/json - JSON data
  • video/mp4 - MP4 videos

Common MIME Type Categories

Images
Extension MIME Type Description
.jpg image/jpeg JPEG Image
.png image/png PNG Image
.gif image/gif GIF Image
.webp image/webp WebP Image
.svg image/svg+xml SVG Vector
.ico image/x-icon Icon
.bmp image/bmp Bitmap Image
.avif image/avif AVIF Image
Documents
Extension MIME Type Description
.pdf application/pdf PDF Document
.doc application/msword Word Document
.docx application/vnd.openxmlformats-officedocument.wordprocessingml.document Word Document
.xls application/vnd.ms-excel Excel Spreadsheet
.xlsx application/vnd.openxmlformats-officedocument.spreadsheetml.sheet Excel Spreadsheet
.ppt application/vnd.ms-powerpoint PowerPoint
.pptx application/vnd.openxmlformats-officedocument.presentationml.presentation PowerPoint
.txt text/plain Plain Text
.csv text/csv CSV File
Code
Extension MIME Type Description
.html text/html HTML Document
.css text/css CSS Stylesheet
.js application/javascript JavaScript
.json application/json JSON Data
.xml application/xml XML Document
.php application/x-php PHP Script
.py text/x-python Python Script
.ts application/typescript TypeScript
.md text/markdown Markdown
Audio
Extension MIME Type Description
.mp3 audio/mpeg MP3 Audio
.wav audio/wav WAV Audio
.ogg audio/ogg OGG Audio
.flac audio/flac FLAC Audio
.m4a audio/mp4 M4A Audio
.aac audio/aac AAC Audio
Video
Extension MIME Type Description
.mp4 video/mp4 MP4 Video
.webm video/webm WebM Video
.avi video/x-msvideo AVI Video
.mov video/quicktime QuickTime Video
.mkv video/x-matroska Matroska Video
.mpeg video/mpeg MPEG Video
Archives
Extension MIME Type Description
.zip application/zip ZIP Archive
.rar application/vnd.rar RAR Archive
.7z application/x-7z-compressed 7-Zip Archive
.tar application/x-tar TAR Archive
.gz application/gzip Gzip Archive
Fonts
Extension MIME Type Description
.woff font/woff Web Font
.woff2 font/woff2 Web Font 2
.ttf font/ttf TrueType Font
.otf font/otf OpenType Font

Why MIME Types Matter

Practical Applications
  • Web Development: Servers use MIME types to tell browsers how to handle files.
  • File Downloads: Correct MIME types help files download instead of rendering incorrectly in the browser.
  • API Development: APIs use MIME types to describe request and response formats.
  • Email Attachments: Mail clients rely on MIME types to handle attachments correctly.
  • Security: Browsers enforce security behavior based on MIME type handling.
Quick Reference

Most Common:

  • HTML: text/html
  • CSS: text/css
  • JavaScript: application/javascript
  • JSON: application/json
  • JPEG: image/jpeg
  • PNG: image/png
  • PDF: application/pdf
Common Mistakes
  • Using text/plain for JSON payloads.
  • Serving JavaScript with the wrong MIME type.
  • Missing font MIME types in static delivery.
  • Using application/x-www-form-urlencoded where a different content type is expected.
Browse Tools

Tool Navigation

629+ tools across 43 categories