MIME Types

v1.0.0
Total Types
72
MIME types covered
Categories
9
File type categories
Showing
72
Filtered results
ExtensionMIME TypeCategoryDescriptionActions
.txttext/plain
Text
Plain text file
.htmltext/html
Text
HTML document
.htmtext/html
Text
HTML document
.csstext/css
Text
Cascading Style Sheets
.jstext/javascript
Text
JavaScript file
.mjstext/javascript
Text
JavaScript module
.tstext/typescript
Text
TypeScript file
.tsxtext/typescript
Text
TypeScript JSX file
.jsxtext/javascript
Text
JavaScript JSX file
.jsonapplication/json
Text
JSON data file
.xmltext/xml
Text
XML document
.csvtext/csv
Text
Comma-separated values
.mdtext/markdown
Text
Markdown document
.rtfapplication/rtf
Text
Rich Text Format
.jpgimage/jpeg
Image
JPEG image
.jpegimage/jpeg
Image
JPEG image
.pngimage/png
Image
PNG image
.gifimage/gif
Image
GIF image
.webpimage/webp
Image
WebP image
.svgimage/svg+xml
Image
SVG vector image
.bmpimage/bmp
Image
Bitmap image
.icoimage/x-icon
Image
Icon file
.tiffimage/tiff
Image
TIFF image
.tifimage/tiff
Image
TIFF image
.avifimage/avif
Image
AVIF image
.heicimage/heic
Image
HEIC image
.mp3audio/mpeg
Audio
MP3 audio file
.wavaudio/wav
Audio
WAV audio file
.oggaudio/ogg
Audio
OGG audio file
.flacaudio/flac
Audio
FLAC audio file
.aacaudio/aac
Audio
AAC audio file
.m4aaudio/mp4
Audio
M4A audio file
.wmaaudio/x-ms-wma
Audio
Windows Media Audio
.mp4video/mp4
Video
MP4 video file
.webmvideo/webm
Video
WebM video file
.avivideo/x-msvideo
Video
AVI video file
.movvideo/quicktime
Video
QuickTime video
.wmvvideo/x-ms-wmv
Video
Windows Media Video
.flvvideo/x-flv
Video
Flash video
.mkvvideo/x-matroska
Video
Matroska video
.pdfapplication/pdf
Document
PDF document
.docapplication/msword
Document
Microsoft Word document
.docxapplication/vnd.openxmlformats-officedocument.wordprocessingml.document
Document
Microsoft Word (OpenXML)
.xlsapplication/vnd.ms-excel
Document
Microsoft Excel spreadsheet
.xlsxapplication/vnd.openxmlformats-officedocument.spreadsheetml.sheet
Document
Microsoft Excel (OpenXML)
.pptapplication/vnd.ms-powerpoint
Document
Microsoft PowerPoint presentation
.pptxapplication/vnd.openxmlformats-officedocument.presentationml.presentation
Document
Microsoft PowerPoint (OpenXML)
.odtapplication/vnd.oasis.opendocument.text
Document
OpenDocument Text
.odsapplication/vnd.oasis.opendocument.spreadsheet
Document
OpenDocument Spreadsheet
.odpapplication/vnd.oasis.opendocument.presentation
Document
OpenDocument Presentation
.zipapplication/zip
Archive
ZIP archive
.rarapplication/vnd.rar
Archive
RAR archive
.7zapplication/x-7z-compressed
Archive
7-Zip archive
.tarapplication/x-tar
Archive
TAR archive
.gzapplication/gzip
Archive
GZIP compressed file
.bz2application/x-bzip2
Archive
BZIP2 compressed file
.exeapplication/vnd.microsoft.portable-executable
Application
Windows executable
.msiapplication/x-msdownload
Application
Windows installer package
.dmgapplication/x-apple-diskimage
Application
Apple disk image
.debapplication/vnd.debian.binary-package
Application
Debian package
.rpmapplication/x-rpm
Application
RPM package
.apkapplication/vnd.android.package-archive
Application
Android package
.ttffont/ttf
Font
TrueType font
.otffont/otf
Font
OpenType font
.wofffont/woff
Font
Web Open Font Format
.woff2font/woff2
Font
Web Open Font Format 2
.eotapplication/vnd.ms-fontobject
Font
Embedded OpenType font
.binapplication/octet-stream
Other
Binary file
.isoapplication/x-iso9660-image
Other
ISO disk image
.torrentapplication/x-bittorrent
Other
BitTorrent file
.icstext/calendar
Other
iCalendar file
.vcftext/vcard
Other
vCard contact file

Category Breakdown

Text
14
types
Image
12
types
Audio
7
types
Video
7
types
Document
10
types
Archive
6
types
Application
6
types
Font
5
types
Other
5
types
  • Encode and decode URLs with support for both standard URI encoding and component encoding methods.

  • ASCII Table
    Similar tool

    Complete ASCII character reference table with decimal, hexadecimal, binary, and octal values.

  • HTTP Status Codes
    Similar tool

    Complete reference for HTTP response status codes with descriptions, use cases, and categories.

  • HTML Entities
    Similar tool

    Complete HTML character entity reference with symbols, special characters, and escape codes.

  • Country Codes
    Similar tool

    Comprehensive reference for ISO country codes with flags, names, and regional information.

  • Port Numbers
    Similar tool

    Comprehensive reference for network port numbers, protocols, and services used in networking and development.

  • CSS Color Codes
    Similar tool

    Complete CSS color reference with hex, RGB, HSL values, and visual previews for web development and design.

About MIME Types

MIME (Multipurpose Internet Mail Extensions) types are standardized identifiers that specify the nature and format of files. Originally developed for email attachments, MIME types are now essential for web development, file handling, and content delivery.

Why MIME Types Matter

MIME types tell browsers and applications how to handle different file formats. They're crucial for:

  • Web Development: Setting correct Content-Type headers for HTTP responses
  • File Uploads: Validating and processing uploaded files
  • Content Delivery: Ensuring files are displayed or downloaded correctly
  • API Development: Specifying request and response formats
  • Email: Properly handling attachments and inline content

MIME Type Structure

MIME types follow the format type/subtype, where:

  • Type: General category (text, image, video, application, etc.)
  • Subtype: Specific format within that category

For example, image/jpeg indicates an image file in JPEG format.

Common Categories

Text Files

HTML, CSS, JavaScript, JSON, and plain text documents.

Examples: text/html, text/css, application/json

Images

Raster and vector graphics in various formats.

Examples: image/jpeg, image/png, image/svg+xml

Audio & Video

Multimedia files for streaming and download.

Examples: audio/mpeg, video/mp4, video/webm

Documents

Office documents, PDFs, and formatted text.

Examples: application/pdf, application/msword

Web Development Usage

In web development, MIME types are used in several contexts:

HTTP Headers

Content-Type: text/html; charset=utf-8 Content-Type: application/json Content-Type: image/png

HTML Accept Attribute

<input type="file" accept="image/*"> <input type="file" accept=".pdf,.doc,.docx"> <input type="file" accept="video/mp4,video/webm">

JavaScript File Validation

const allowedTypes = ['image/jpeg', 'image/png', 'image/gif']; if (allowedTypes.includes(file.type)) 

Best Practices

  • Always set Content-Type: Specify MIME types in HTTP responses
  • Validate uploads: Check both file extension and MIME type
  • Use charset for text: Include character encoding for text files
  • Consider security: Don't trust client-provided MIME types alone
  • Use standard types: Prefer registered MIME types over custom ones

Security Considerations

MIME types play a crucial role in web security:

  • Content sniffing: Browsers may ignore declared MIME types and guess based on content
  • Upload validation: Always verify file contents, not just the declared type
  • X-Content-Type-Options: Use the "nosniff" header to prevent content type sniffing
  • File execution: Be cautious with executable MIME types like application/javascript

Modern Developments

New MIME types are regularly added to support emerging formats:

  • WebP images: image/webp for better compression
  • AVIF images: image/avif for next-generation image format
  • WebM video: video/webm for web-optimized video
  • WOFF2 fonts: font/woff2 for web font delivery
💡 Pro Tip: When in doubt, use application/octet-stream for binary files or check the official IANA Media Types registry for the most current MIME type assignments.