Features
Quick lookup
Instantly convert between file extensions and MIME types:- Enter a file extension (e.g.,
.jpg,.pdf) to get the MIME type - Enter a MIME type (e.g.,
image/jpeg,application/pdf) to get the extension - Results include the description for context
Browse all MIME types
Explore the complete database of MIME types:- View all extensions and their corresponding MIME types
- See human-readable descriptions for each type
- Filter by category for focused browsing
- Search across extensions, MIME types, and descriptions
Category filtering
Filter MIME types by category:- Text: Plain text, HTML, CSS, JSON, code files
- Image: JPEG, PNG, GIF, SVG, and other image formats
- Audio: MP3, WAV, OGG, FLAC audio formats
- Video: MP4, AVI, WebM video formats
- Document: PDF, Word, Excel, PowerPoint documents
- Archive: ZIP, RAR, 7z, TAR archives
- Font: TrueType, OpenType, WOFF fonts
- Executable: EXE, DMG, DEB, RPM packages
The database includes over 100 common MIME types covering the most frequently used file formats in web development and applications.
Use cases
Setting HTTP headers
Set correct Content-Type headers when serving files:File upload validation
Validate uploaded files by checking MIME types:Email attachments
Set correct MIME types for email attachments:API responses
Return appropriate Content-Type headers for API responses:Modern frameworks often set Content-Type automatically, but knowing the correct MIME type is still important for debugging and explicit configuration.
Browser behavior
Understanding MIME types helps control browser behavior:- application/octet-stream: Forces download instead of display
- text/plain: Displays as plain text
- application/pdf: Opens in browser PDF viewer
- image/***: Displays inline as image
Common MIME types
Web content
| Extension | MIME Type | Usage |
|---|---|---|
| .html | text/html | HTML pages |
| .css | text/css | Stylesheets |
| .js | application/javascript | JavaScript |
| .json | application/json | JSON data |
| .xml | text/xml | XML documents |
Images
| Extension | MIME Type | Usage |
|---|---|---|
| .jpg, .jpeg | image/jpeg | JPEG images |
| .png | image/png | PNG images |
| .gif | image/gif | GIF images |
| .svg | image/svg+xml | SVG vectors |
| .webp | image/webp | WebP images |
SVG files use
image/svg+xml because they are XML-based vector graphics, not raster images.Documents
| Extension | MIME Type | Usage |
|---|---|---|
| application/pdf | PDF documents | |
| .docx | application/vnd.openxmlformats-officedocument.wordprocessingml.document | Word documents |
| .xlsx | application/vnd.openxmlformats-officedocument.spreadsheetml.sheet | Excel spreadsheets |
| .pptx | application/vnd.openxmlformats-officedocument.presentationml.presentation | PowerPoint presentations |
Archives
| Extension | MIME Type | Usage |
|---|---|---|
| .zip | application/zip | ZIP archives |
| .tar | application/x-tar | TAR archives |
| .gz | application/gzip | GZIP compressed |
| .7z | application/x-7z-compressed | 7-Zip archives |
MIME type structure
Format
MIME types follow the format:type/subtype
Type (main category):
text: Textual contentimage: Image contentaudio: Audio contentvideo: Video contentapplication: Binary or mixed contentmultipart: Multiple parts (used in email)
- Identifies the exact format within the main category
- Can include vendor prefixes (e.g.,
vnd.ms-excel) - Can include suffixes (e.g.,
image/svg+xml)
Parameters
MIME types can include parameters:charset parameter specifies the character encoding for text-based MIME types.
Best practices
Accurate MIME types
Always use accurate MIME types:- Don’t use
text/plainfor JSON or HTML content - Don’t use
application/octet-streamwhen a specific type exists - Match the MIME type to the actual content format
Content-Type headers
When serving files:MIME type validation
Validate MIME types on both client and server:The
accept attribute in HTML5 file inputs can take both MIME types and file extensions. Using MIME types is more precise.