MIME type lookup

MIME type lookup

Common file extensions and their MIME types

Computed in your browser

Filter by extension, full media type or description. This is a common-types reference; extensions alone cannot validate a file's actual format.

ExtensionMIMEDescription
.txt text/plain Plain text
.html text/html HTML document
.htm text/html HTML document
.css text/css Cascading style sheet
.js text/javascript JavaScript
.mjs text/javascript ES module JavaScript
.json application/json JSON data
.xml application/xml XML data
.yaml application/yaml YAML data
.csv text/csv Comma-separated values
.md text/markdown Markdown text
.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
.png image/png PNG image
.jpg image/jpeg JPEG image
.jpeg image/jpeg JPEG image
.gif image/gif GIF image
.webp image/webp WebP image
.avif image/avif AVIF image
.svg image/svg+xml SVG image
.ico image/vnd.microsoft.icon Icon
.bmp image/bmp Windows bitmap
.heic image/heic HEIC image
.mp3 audio/mpeg MP3 audio
.wav audio/wav WAV audio
.ogg audio/ogg Ogg audio
.flac audio/flac FLAC audio
.mp4 video/mp4 MPEG-4 video
.mkv video/x-matroska Matroska video
.webm video/webm WebM video
.mov video/quicktime QuickTime video
.doc application/msword Word 97–2003 document
.docx application/vnd.openxmlformats-officedocument.wordprocessingml.document Word document
.xls application/vnd.ms-excel Excel 97–2003 spreadsheet
.xlsx application/vnd.openxmlformats-officedocument.spreadsheetml.sheet Excel spreadsheet
.ppt application/vnd.ms-powerpoint PowerPoint 97–2003 presentation
.pptx application/vnd.openxmlformats-officedocument.presentationml.presentation PowerPoint presentation
.ttf font/ttf TrueType font
.otf font/otf OpenType font
.woff font/woff Web font (WOFF)
.woff2 font/woff2 Web font (WOFF2)
.wasm application/wasm WebAssembly module
.bin application/octet-stream Arbitrary binary data

Example

Input

json

Example result

.json → application/json

JSON exchanged over a network normally uses UTF-8. A lookup does not validate file contents.

Technical details & limits

Media types use type/subtype with optional parameters such as charset. Extensions and types are not one-to-one. Servers should consider file contents, application rules and response context. This common-types table neither inspects file bytes nor reproduces the full IANA registry.

About this tool

Look up common MIME mappings by extension or media type when setting Content-Type, serving static assets or designing upload allowlists. The local table works offline after loading.

Use cases

  • Configure `Content-Type` in Nginx or a CDN.
  • Match extension whitelists against real MIME types for uploads.
  • Look up what an `application/vnd.*` format actually is.

Notes

This is a common-types reference. Use IANA for complete registration information.

FAQ

Does renaming a file to .jpg make it an image?
No. A filename does not change the data format. Upload validation must inspect content and enforce allowed formats rather than trusting the name or client Content-Type.
Can I search by a complete media type?
Yes. Search application/json or the extension json; matching is case-insensitive.
Which type should I use when an extension has several mappings?
Choose by the actual format, usage and receiving protocol. An extension alone does not guarantee a unique answer.
What if Content-Type disagrees with the filename extension?
Inspect the actual file content and server configuration, not just the extension. Senders should provide the correct media type and receivers should still validate files.

Related tools

MIME type lookup · Common file extensions and their MIME types
MIME type lookup — Tool illustration · dayeku.com