MIME Types Reference
Look up MIME types by file extension or search by type. Click a MIME type to copy it.
Showing 68 of 68 MIME types
| Extension | MIME Type | Category | |
|---|---|---|---|
| .html | text/html | Text | |
| .css | text/css | Text | |
| .js | text/javascript | Text | |
| .json | application/json | Text | |
| .xml | application/xml | Text | |
| .txt | text/plain | Text | |
| .csv | text/csv | Text | |
| .md | text/markdown | Text | |
| .yaml | application/x-yaml | Text | |
| .yml | application/x-yaml | Text | |
| .toml | application/toml | Text | |
| .ts | text/typescript | Text | |
| .tsx | text/tsx | Text | |
| .jsx | text/jsx | Text | |
| .php | application/x-httpd-php | Text | |
| .py | text/x-python | Text | |
| .rb | text/x-ruby | Text | |
| .java | text/x-java-source | Text | |
| .go | text/x-go | Text | |
| .rs | text/x-rust | Text | |
| .swift | text/x-swift | Text | |
| .kt | text/x-kotlin | Text | |
| .png | image/png | Image | |
| .jpg | image/jpeg | Image | |
| .jpeg | image/jpeg | Image | |
| .gif | image/gif | Image | |
| .svg | image/svg+xml | Image | |
| .webp | image/webp | Image | |
| .ico | image/x-icon | Image | |
| .bmp | image/bmp | Image | |
| .tiff | image/tiff | Image | |
| .avif | image/avif | Image | |
| .mp3 | audio/mpeg | Audio | |
| .wav | audio/wav | Audio | |
| .ogg | audio/ogg | Audio | |
| .flac | audio/flac | Audio | |
| .aac | audio/aac | Audio | |
| .weba | audio/webm | Audio | |
| .midi | audio/midi | Audio | |
| .mp4 | video/mp4 | Video | |
| .webm | video/webm | Video | |
| .avi | video/x-msvideo | Video | |
| .mov | video/quicktime | Video | |
| .mkv | video/x-matroska | Video | |
| .wmv | video/x-ms-wmv | Video | |
| .flv | video/x-flv | Video | |
| application/pdf | Application | ||
| .zip | application/zip | Application | |
| .tar | application/x-tar | Application | |
| .gz | application/gzip | Application | |
| .rar | application/vnd.rar | Application | |
| .7z | application/x-7z-compressed | Application | |
| .doc | application/msword | Application | |
| .docx | application/vnd.openxmlformats-officedocument.wordprocessingml.document | Application | |
| .xls | application/vnd.ms-excel | Application | |
| .xlsx | application/vnd.openxmlformats-officedocument.spreadsheetml.sheet | Application | |
| .ppt | application/vnd.ms-powerpoint | Application | |
| .pptx | application/vnd.openxmlformats-officedocument.presentationml.presentation | Application | |
| .wasm | application/wasm | Application | |
| .exe | application/x-msdownload | Application | |
| .dmg | application/x-apple-diskimage | Application | |
| .deb | application/x-debian-package | Application | |
| .rpm | application/x-rpm | Application | |
| .woff | font/woff | Font | |
| .woff2 | font/woff2 | Font | |
| .ttf | font/ttf | Font | |
| .otf | font/otf | Font | |
| .eot | application/vnd.ms-fontobject | Font |
About MIME Types
MIME (Multipurpose Internet Mail Extensions) types are standardized identifiers that indicate the nature and format of a file. They are used by web servers, browsers, and APIs to determine how to handle different file types. A MIME type consists of a type and subtype separated by a slash (e.g., text/html, image/png). Setting the correct MIME type in HTTP headers ensures that files are processed and displayed correctly by clients.
How to Use
- Type a file extension (e.g.,
.png) or MIME type (e.g.,image/jpeg) into the search box to filter results. - Use the category buttons to show only Text, Image, Audio, Video, Application, or Font types.
- Click the Copy button next to any entry to copy its MIME type string to your clipboard.
Frequently Asked Questions
What is a MIME type?
A MIME type (also called a media type or content type) is a two-part identifier for file formats transmitted on the Internet. It tells the receiving application how to interpret and handle the data. For example, text/html tells the browser to render the content as an HTML page.
Where are MIME types used?
MIME types appear in HTTP Content-Type headers, email attachments, file upload forms, and API responses. Web servers use them to tell browsers how to handle files, and browsers use them to decide whether to display, download, or execute content.
What happens if the wrong MIME type is used?
Using an incorrect MIME type can cause browsers to mishandle content. For example, serving JavaScript with text/plain instead of text/javascript may prevent the script from executing. Similarly, serving CSS with the wrong type can prevent styles from being applied.
What is the difference between application/json and text/json?
The standard MIME type for JSON is application/json as defined in RFC 8259. While text/json was sometimes used historically, it is not an official standard and application/json should always be preferred.