MIME Types Reference

Quick lookup for file extension MIME types with search and category filtering

Total 115 个类型

Document(17)

.pdf

application/pdf

.doc

application/msword

.docx

application/vnd.openxmlformats-officedocument.wordprocessingml.document

.xls

application/vnd.ms-excel

.xlsx

application/vnd.openxmlformats-officedocument.spreadsheetml.sheet

.ppt

application/vnd.ms-powerpoint

.pptx

application/vnd.openxmlformats-officedocument.presentationml.presentation

.txt

text/plain

.rtf

application/rtf

.odt

application/vnd.oasis.opendocument.text

.ods

application/vnd.oasis.opendocument.spreadsheet

.odp

application/vnd.oasis.opendocument.presentation

.csv

text/csv

.json

application/json

.xml

application/xml

.html

text/html

.htm

text/html

Image(15)

.jpg

image/jpeg

.jpeg

image/jpeg

.png

image/png

.gif

image/gif

.webp

image/webp

.svg

image/svg+xml

.ico

image/x-icon

.bmp

image/bmp

.tiff

image/tiff

.tif

image/tiff

.avif

image/avif

.heic

image/heic

.heif

image/heif

.psd

image/vnd.adobe.photoshop

.raw

image/raw

Audio(10)

.mp3

audio/mpeg

.wav

audio/wav

.ogg

audio/ogg

.m4a

audio/mp4

.flac

audio/flac

.aac

audio/aac

.wma

audio/x-ms-wma

.aiff

audio/aiff

.mid

audio/midi

.midi

audio/midi

Video(12)

.mp4

video/mp4

.webm

video/webm

.avi

video/x-msvideo

.mov

video/quicktime

.wmv

video/x-ms-wmv

.flv

video/x-flv

.mkv

video/x-matroska

.m4v

video/mp4

.mpeg

video/mpeg

.mpg

video/mpeg

.3gp

video/3gpp

.m2ts

video/mp2t

Archive(9)

.zip

application/zip

.rar

application/vnd.rar

.7z

application/x-7z-compressed

.tar

application/x-tar

.gz

application/gzip

.bz2

application/x-bzip2

.xz

application/x-xz

.iso

application/x-iso9660-image

.dmg

application/x-apple-diskimage

Code(31)

.js

application/javascript

.mjs

application/javascript

.ts

application/typescript

.tsx

application/typescript

.jsx

application/javascript

.css

text/css

.scss

text/x-scss

.sass

text/x-sass

.less

text/x-less

.py

text/x-python

.java

text/x-java

.c

text/x-c

.cpp

text/x-c++

.h

text/x-c

.hpp

text/x-c++

.cs

text/x-csharp

.go

text/x-go

.rs

text/x-rust

.rb

text/x-ruby

.php

text/x-php

.swift

text/x-swift

.kt

text/x-kotlin

.sql

application/sql

.sh

application/x-sh

.bash

application/x-sh

.yaml

application/x-yaml

.yml

application/x-yaml

.toml

application/toml

.ini

text/x-ini

.vue

text/x-vue

.svelte

text/x-svelte

Font(5)

.woff

font/woff

.woff2

font/woff2

.ttf

font/ttf

.otf

font/otf

.eot

application/vnd.ms-fontobject

Other(16)

.exe

application/vnd.microsoft.portable-executable

.msi

application/x-msi

.apk

application/vnd.android.package-archive

.ipa

application/octet-stream

.deb

application/vnd.debian.binary-package

.rpm

application/x-rpm

.jar

application/java-archive

.war

application/java-archive

.swf

application/x-shockwave-flash

.crx

application/x-chrome-extension

.xpi

application/x-xpinstall

.torrent

application/x-bittorrent

.ics

text/calendar

.vcf

text/vcard

.epub

application/epub+zip

.mobi

application/x-mobipocket-ebook

What is a MIME Type?

MIME types (Multipurpose Internet Mail Extensions) are a standard way to indicate the nature and format of documents, files, or byte streams. Browsers and servers use MIME types to determine how to handle content. For example, receiving image/jpeg tells the browser to display an image, while application/pdf might open a PDF preview.

How to Use

Use the search box to quickly find specific extensions or MIME types. Click category tags to filter by file type. Each card has two buttons to copy the extension or MIME type.

Category Types

  • Document: PDF, Office files, text files, etc.
  • Image: JPEG, PNG, WebP, SVG, etc.
  • Audio: MP3, WAV, FLAC, AAC, etc.
  • Video: MP4, WebM, AVI, MKV, etc.
  • Archive: ZIP, RAR, 7z, TAR, etc.
  • Code: JavaScript, Python, CSS, etc.
  • Font: WOFF, TTF, OTF, etc.

FAQ

Q: What is the purpose of MIME types?

A: MIME types tell browsers how to handle received content. For example, when a server returns image/png, the browser renders an image; text/html is parsed as a webpage. Correct MIME types ensure content is displayed and processed properly.

Q: How do I set a file's MIME type?

A: On web servers, you can set MIME types through configuration files or code. Nginx uses mime.types config file, Apache uses AddType directive. In code, HTTP responses can set MIME type via Content-Type header.

Q: What problems can incorrect MIME types cause?

A: Incorrect MIME types may cause: browsers unable to render content correctly (images shown as downloads), security risks (HTML displayed as text), browser security policies failing (scripts not executing).

Q: What is application/octet-stream?

A: application/octet-stream is a generic binary stream type for unknown binary data. When a server doesn't know the specific file type, it typically uses this type. The browser will prompt to download instead of trying to open it.