Understanding MIME Types
A MIME type is a string that identifies the format of a file or data. It consists of two parts separated by a slash:
type/subtypeType
The general category of the data (e.g., text, image, video, application)
Subtype
The specific format within that category (e.g., html, jpeg, mp4, pdf)
Examples
- text/html - HTML documents
- image/jpeg - JPEG images
- video/mp4 - MP4 video files
- application/pdf - PDF documents
Common MIME Type Categories
Text Types
- text/html - HTML documents
- text/css - CSS stylesheets
- text/javascript - JavaScript code
- text/plain - Plain text
- text/xml - XML documents
Image Types
- image/jpeg - JPEG images
- image/png - PNG images
- image/gif - GIF images
- image/svg+xml - SVG vector graphics
- image/webp - WebP images
Video Types
- video/mp4 - MP4 video
- video/webm - WebM video
- video/ogg - Ogg video
- video/quicktime - QuickTime video
Audio Types
- audio/mpeg - MP3 audio
- audio/wav - WAV audio
- audio/ogg - Ogg audio
- audio/webm - WebM audio
Application Types
- application/pdf - PDF documents
- application/json - JSON data
- application/xml - XML data
- application/zip - ZIP archives
- application/octet-stream - Binary data (generic)
MIME Types in HTTP
Content-Type Header
Servers use the Content-Type header to tell browsers the type of content being served:
Content-Type: text/html; charset=UTF-8Accept Header
Browsers use the Accept header to tell servers what content types they prefer:
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8Content-Disposition Header
Used to specify how content should be displayed:
Content-Disposition: attachment; filename="document.pdf"The MIME Type Checker tool simplifies the process of finding and understanding MIME types. Whether you're configuring web servers, validating file uploads, or setting HTTP headers, understanding MIME types is essential for web development. Start using the checker today to find the right MIME type for any file format.