Regex & Testing

MIME Type Lookup

Look up the MIME type for any file extension, or find what extensions match a MIME type. Covers 200+ common file types.

Free 200+ Types Searchable Nothing Stored
Ext MIME Type Description
.html text/html Web page
.htm text/html Web page
.css text/css Stylesheet
.js text/javascript JavaScript
.mjs text/javascript ES Module
.ts text/typescript TypeScript
.json application/json JSON data
.xml application/xml XML data
.txt text/plain Plain text
.csv text/csv CSV data
.md text/markdown Markdown
.yaml application/yaml YAML
.yml application/yaml YAML
.toml application/toml TOML
.jpg image/jpeg JPEG image
.jpeg 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
.tif image/tiff TIFF image
.tiff image/tiff TIFF image
.avif image/avif AVIF image
.heic image/heic HEIC image
.mp3 audio/mpeg MP3 audio
.wav audio/wav WAV audio
.ogg audio/ogg OGG audio
.m4a audio/mp4 M4A audio
.flac audio/flac FLAC audio
.aac audio/aac AAC audio
.opus audio/opus Opus audio
.weba audio/webm WebM audio
.mp4 video/mp4 MP4 video
.webm video/webm WebM video
.avi video/x-msvideo AVI video
.mov video/quicktime QuickTime
.mkv video/x-matroska MKV video
.ogv video/ogg OGG video
.m4v video/mp4 M4V video
.3gp video/3gpp 3GP video
.pdf application/pdf PDF document
.zip application/zip ZIP archive
.gz application/gzip GZIP archive
.tar application/x-tar TAR archive
.7z application/x-7z-compressed 7-Zip archive
.rar application/vnd.rar RAR archive
.docx application/vnd.openxmlformats-officedocument.wordprocessingml.document Word doc
.xlsx application/vnd.openxmlformats-officedocument.spreadsheetml.sheet Excel spreadsheet
.pptx application/vnd.openxmlformats-officedocument.presentationml.presentation PowerPoint
.doc application/msword Word (legacy)
.xls application/vnd.ms-excel Excel (legacy)
.ppt application/vnd.ms-powerpoint PowerPoint (legacy)
.rtf application/rtf Rich Text
.epub application/epub+zip eBook
.wasm application/wasm WebAssembly
.jar application/java-archive Java archive
.swf application/x-shockwave-flash Flash (deprecated)
.ttf font/ttf TrueType font
.otf font/otf OpenType font
.woff font/woff WOFF font
.woff2 font/woff2 WOFF2 font
.eot application/vnd.ms-fontobject EOT font
.bin application/octet-stream Binary data
.exe application/x-msdownload Windows executable
.dmg application/x-apple-diskimage macOS disk image
.iso application/x-iso9660-image ISO image
.sh application/x-sh Shell script
.bat application/x-msdos-program Batch file
.sql application/sql SQL script
.wsdl application/wsdl+xml WSDL
.rss application/rss+xml RSS feed
.atom application/atom+xml Atom feed
.jsonld application/ld+json JSON-LD
.geojson application/geo+json GeoJSON
.form multipart/form-data Form upload

Frequently Asked Questions

What is a MIME type?
A MIME type (Multipurpose Internet Mail Extensions) is a standard identifier for the format of a file. It tells browsers, servers, and applications how to handle a file. It consists of a type and subtype separated by a slash, e.g. "text/html", "image/png", or "application/json".
Where are MIME types used?
MIME types appear in HTTP headers (Content-Type), HTML <link> and <script> tags, email attachments, CSS @font-face declarations, API responses, and anywhere a file format needs to be identified programmatically.
What is the difference between application/octet-stream and other types?
"application/octet-stream" is the generic binary file type — it means "arbitrary binary data". Browsers typically prompt a download for this type. It is the safe fallback when no more specific MIME type is known.