- Skip to main content
- Skip to search
- Skip to select language
- Sign up for free
- English (US)

MIME types (IANA media types)
A media type (also known as a Multipurpose Internet Mail Extensions or MIME type ) indicates the nature and format of a document, file, or assortment of bytes. MIME types are defined and standardized in IETF's RFC 6838 .
The Internet Assigned Numbers Authority (IANA) is responsible for all official MIME types, and you can find the most up-to-date and complete list at their Media Types page.
Warning: Browsers use the MIME type, not the file extension , to determine how to process a URL, so it's important that web servers send the correct MIME type in the response's Content-Type header. If this is not correctly configured, browsers are likely to misinterpret the contents of files, sites will not work correctly, and downloaded files may be mishandled.
Structure of a MIME type
A MIME type most commonly consists of just two parts: a type and a subtype , separated by a slash ( / ) — with no whitespace between:
The type represents the general category into which the data type falls, such as video or text .
The subtype identifies the exact kind of data of the specified type the MIME type represents. For example, for the MIME type text , the subtype might be plain (plain text), html ( HTML source code), or calendar (for iCalendar/ .ics ) files.
Each type has its own set of possible subtypes. A MIME type always has both a type and a subtype, never just one or the other.
An optional parameter can be added to provide additional details:
For example, for any MIME type whose main type is text , you can add the optional charset parameter to specify the character set used for the characters in the data. If no charset is specified, the default is ASCII ( US-ASCII ) unless overridden by the user agent's settings. To specify a UTF-8 text file, the MIME type text/plain;charset=UTF-8 is used.
MIME types are case-insensitive but are traditionally written in lowercase. The parameter values can be case-sensitive.
There are two classes of type: discrete and multipart . Discrete types are types which represent a single file or medium, such as a single text or music file, or a single video. A multipart type represents a document that's comprised of multiple component parts, each of which may have its own individual MIME type; or, a multipart type may encapsulate multiple files being sent together in one transaction. For example, multipart MIME types are used when attaching multiple files to an email.
Discrete types
The discrete types currently registered with the IANA are:
Any kind of binary data that doesn't fall explicitly into one of the other types; either data that will be executed or interpreted in some way or binary data that requires a specific application or category of application to use. Generic binary data (or binary data whose true type is unknown) is application/octet-stream . Other common examples include application/pdf , application/pkcs8 , and application/zip . (See application type registry at IANA)
Audio or music data. Examples include audio/mpeg , audio/vorbis . (See audio type registry at IANA)
Reserved for use as a placeholder in examples showing how to use MIME types. These should never be used outside of sample code listings and documentation. example can also be used as a subtype; for instance, in an example related to working with audio on the web, the MIME type audio/example can be used to indicate that the type is a placeholder and should be replaced with an appropriate one when using the code in the real world.
Font/typeface data. Common examples include font/woff , font/ttf , and font/otf . (See font type registry at IANA)
Image or graphical data including both bitmap and vector still images as well as animated versions of still image formats such as animated GIF or APNG. Common examples are image/jpeg , image/png , and image/svg+xml . (See image type registry at IANA)
Model data for a 3D object or scene. Examples include model/3mf and model/vrml . (See model type registry at IANA)
Text-only data including any human-readable content, source code, or textual data such as comma-separated value (CSV) formatted data. Examples include: text/plain , text/csv , and text/html . (See text type registry at IANA)
Video data or files, such as MP4 movies ( video/mp4 ). (See video type registry at IANA)
For text documents without a specific subtype, text/plain should be used. Similarly, for binary documents without a specific or known subtype, application/octet-stream should be used.
Multipart types
Multipart types indicate a category of document broken into pieces, often with different MIME types; they can also be used — especially in email scenarios — to represent multiple, separate files which are all part of the same transaction. They represent a composite document .
Except for multipart/form-data , used in the POST method of HTML Forms , and multipart/byteranges , used with 206 Partial Content to send part of a document, HTTP doesn't handle multipart documents in a special way: the message is transmitted to the browser (which will likely show a "Save As" window if it doesn't know how to display the document).
There are two multipart types:
A message that encapsulates other messages. This can be used, for instance, to represent an email that includes a forwarded message as part of its data, or to allow sending very large messages in chunks as if it were multiple messages. Examples include message/rfc822 (for forwarded or replied-to message quoting) and message/partial to allow breaking a large message into smaller ones automatically to be reassembled by the recipient. (See message type registry at IANA)
Data that consists of multiple components which may individually have different MIME types. Examples include multipart/form-data (for data produced using the FormData API) and multipart/byteranges (defined in RFC 7233, section 5.4.1 and used with HTTP 's 206 "Partial Content" response returned when the fetched data is only part of the content, such as is delivered using the Range header). (See multipart type registry at IANA)
Important MIME types for Web developers
Application/octet-stream.
This is the default for binary files. As it means unknown binary file, browsers usually don't execute it, or even ask if it should be executed. They treat it as if the Content-Disposition header was set to attachment , and propose a "Save As" dialog.
This is the default for textual files. Even if it really means "unknown textual file," browsers assume they can display it.
Note: text/plain does not mean "any kind of textual data." If they expect a specific kind of textual data, they will likely not consider it a match. Specifically if they download a text/plain file from a <link> element declaring a CSS file, they will not recognize it as a valid CSS file if presented with text/plain . The CSS mime type text/css must be used.
CSS files used to style a Web page must be sent with text/css . If a server doesn't recognize the .css suffix for CSS files, it may send them with text/plain or application/octet-stream MIME types. If so, they won't be recognized as CSS by most browsers and will be ignored.
All HTML content should be served with this type. Alternative MIME types for XHTML (like application/xhtml+xml ) are mostly useless nowadays.
Note: Use application/xml or application/xhtml+xml if you want XML's strict parsing rules, <![CDATA[…]]> sections, or elements that aren't from HTML/SVG/MathML namespaces.
text/javascript
Per the IANA Media Types registry , RFC 9239 , and the HTML specification , JavaScript content should always be served using the MIME type text/javascript . No other MIME types are considered valid for JavaScript, and using any MIME type other than text/javascript may result in scripts that do not load or run.
You may find some JavaScript content incorrectly served with a charset parameter as part of the MIME type — as an attempt to specify the character set for the script content. That charset parameter isn't valid for JavaScript content, and in most cases will result in a script failing to load.
Legacy JavaScript MIME types
In addition to the text/javascript MIME type, for historical reasons, the MIME Sniffing Standard (the definition of how browsers should interpret MIME types and figure out what to do with content that doesn't have a valid one) also allows JavaScript to be served using any of the following legacy JavaScript MIME types:
- application/javascript Deprecated
- application/ecmascript Deprecated
- application/x-ecmascript Non-standard
- application/x-javascript Non-standard
- text/ecmascript Deprecated
- text/javascript1.0 Non-standard
- text/javascript1.1 Non-standard
- text/javascript1.2 Non-standard
- text/javascript1.3 Non-standard
- text/javascript1.4 Non-standard
- text/javascript1.5 Non-standard
- text/jscript Non-standard
- text/livescript Non-standard
- text/x-ecmascript Non-standard
- text/x-javascript Non-standard
Note: Even though any given user agent may support any or all of these, you should only use text/javascript . It's the only MIME type guaranteed to work now and into the future.
Image types
Files whose MIME type is image contain image data. The subtype specifies which specific image file format the data represents.
The following image types are used commonly enough to be considered safe for use on web pages:
- image/apng : Animated Portable Network Graphics (APNG)
- image/avif : AV1 Image File Format (AVIF)
- image/gif : Graphics Interchange Format (GIF)
- image/jpeg : Joint Photographic Expert Group image (JPEG)
- image/png : Portable Network Graphics (PNG)
- image/svg+xml : Scalable Vector Graphics (SVG)
- image/webp : Web Picture format (WEBP)
The Image file type and format guide provides information and recommendations about when to use the different image formats.
Audio and video types
As is the case for images, HTML doesn't mandate that web browsers support any specific file and codec types for the <audio> and <video> elements, so it's important to consider your target audience and the range of browsers (and versions of those browsers) they may be using when choosing the file type and codecs to use for media.
Our media container formats guide provides a list of the file types that are commonly supported by web browsers, including information about what their special use cases may be, any drawbacks they have, and compatibility information, along with other details.
The audio codec and video codec guides list the various codecs that web browsers often support, providing compatibility details along with technical information such as how many audio channels they support, what sort of compression is used, and what bit rates and so forth they're useful at. The codecs used by WebRTC guide expands upon this by specifically covering the codecs supported by the major web browsers, so you can choose the codecs that best cover the range of browsers you wish to support.
As for MIME types of audio or video files, they typically specify the container format (file type). The optional codecs parameter can be added to the MIME type to further specify which codecs to use and what options were used to encode the media, such as codec profile, level, or other such information.
The most commonly used MIME types used for web content are listed below. This isn't a complete list of all the types that may be available, however. See the media container formats guide for that.

multipart/form-data
The multipart/form-data type can be used when sending the values of a completed HTML Form from browser to server.
As a multipart document format, it consists of different parts, delimited by a boundary (a string starting with a double dash -- ). Each part is its own entity with its own HTTP headers, Content-Disposition , and Content-Type for file uploading fields.
The following <form> :
will send this message:
multipart/byteranges
The multipart/byteranges MIME type is used to send partial responses to the browser.
When the 206 Partial Content status code is sent, this MIME type indicates that the document is composed of several parts, one for each of the requested ranges. Like other multipart types, the Content-Type uses a boundary to separate the pieces. Each piece has a Content-Type header with its actual type and a Content-Range of the range it represents.
Importance of setting the correct MIME type
Most web servers send unrecognized resources as the application/octet-stream MIME type. For security reasons, most browsers do not allow setting a custom default action for such resources, forcing the user to save it to disk to use it.
Some common incorrect server configurations:
- RAR-compressed files. In this case, the ideal would be the true type of the original files; this is often impossible as .RAR files can hold several resources of different types. In this case, configure the server to send application/x-rar-compressed .
- Audio and video. Only resources with the correct MIME Type will be played in <video> or <audio> elements. Be sure to specify the correct media type for audio and video .
- Proprietary file types. Avoid using application/octet-stream as most browsers do not allow defining a default behavior (like "Open in Word") for this generic MIME type. A specific type like application/vnd.mspowerpoint lets users open such files automatically in the presentation software of their choice.
MIME sniffing
In the absence of a MIME type, or in certain cases where browsers believe they are incorrect, browsers may perform MIME sniffing — guessing the correct MIME type by looking at the bytes of the resource.
Each browser performs MIME sniffing differently and under different circumstances. (For example, Safari will look at the file extension in the URL if the sent MIME type is unsuitable.) There are security concerns as some MIME types represent executable content. Servers can prevent MIME sniffing by sending the X-Content-Type-Options header.
Other methods of conveying document type
MIME types are not the only way to convey document type information:
- Filename suffixes are sometimes used, especially on Microsoft Windows. Not all operating systems consider these suffixes meaningful (such as Linux and macOS), and there is no guarantee they are correct.
- Magic numbers. The syntax of different formats allows file-type inference by looking at their byte structure. For example, GIF files start with the 47 49 46 38 39 hexadecimal value ( GIF89 ), and PNG files with 89 50 4E 47 ( .PNG ). Not all file types have magic numbers, so this is not 100% reliable either.
- Web media technologies
- Guide to media types used on the web
- Properly configuring server MIME types
All MIME types
Below is a comprehensive list of all MIME types in our database.
If you'd like to make modifications to add or edit any of the items below please submit a pull request on our GitHub .
Media Types

Registries included below
application

Contact Information

- XML Formatter
- JSON Formatter
- HTML Formatter
- SQL Formatter
- XML Validator
- JSON Validator
- HTML Validator
- XPath Tester
- Credit Card Number Generator & Validator
- Regular Expression Tester
- Java Regular Expression Tester
- Cron Expression Generator (Quartz)
- XSD Generator
- XSLT (XSL Transformer)
- XML to JSON Converter
- JSON to XML Converter
- CSV to XML Converter
- CSV to JSON Converter
- YAML to JSON Converter
- JSON to YAML Converter
- Epoch Timestamp To Date
- Url Encoder & Decoder
- Base 64 Encoder & Decoder
- Convert File Encoding
- Message Digester (MD5, SHA-256, SHA-512)
- HMAC Generator
- QR Code Generator
- JavaScript Beautifier
- JavaScript Minifier
- CSS Beautifier
- CSS Minifier
- String Utilities
- HTML Escape
- Java and .Net Escape
- JavaScript Escape
- JSON Escape
- Lorem Ipsum Generator
- List of MIME types
- HTML Entities
- Url Parser / Query String Splitter
- I18N Standards / Code Snippets
- MIME Types List
- Web Resources
I have compiled a full list of MIME types using the "mime.types" file of the Apache HTTPD server. I took the liberty of adding a name/description for each MIME type so that it's clearer what they represent. I have also included a significant link for each type with more details for it. If you think this list is missing elements, please contact me so I can update it.
List of MIME types / Internet Media Types

IMAGES
VIDEO
COMMENTS
Good ideas for mime exercises include mimicking the use of objects, walking in the mode of specific characters or types of people, role-playing actions and using the body to express emotions. Mime can be used in drama, improv and English as...
The earliest mimes originated in ancient Greece where they performed the art of pantomimus, a solo art form featuring a masked dancer. Performances of pantomimus, which is translated as “imitating all,” involved music and dance, and they we...
A file decompression utility can normally decode a MIME file if an email program does not recognize and decode the file automatically. A few programs that open MIME files include Mozilla Thunderbird for Windows and Mac OS, KMail for Linux, ...
Common MIME types ;.mp4, MP4 video, video/mp4 ;.mpeg, MPEG Video, video/mpeg ;.mpkg, Apple Installer Package, application/vnd.apple.installer+
↑ Перейти обратно: 3gp Mime Type (неопр.). Дата обращения: 4 августа 2015
application. Any kind of binary data that doesn't fall explicitly into one of the other types; either data that will be executed or interpreted
All MIME types ; application/pgp-signature .asc, .sig ; application/pics-rules .prf ; application/pkcs10 .p10 ; application/pkcs7-mime .p7c, .p7m, application/x-
1. Табл. 1. MIME-типы. Расширение файла, Тип данных. ai, application/postscript. aif, audio
A media type is a two-part identifier for file formats and format contents transmitted on the Internet. Their purpose is somewhat similar to file extensions
[RFC3863]. pkcs10, application/pkcs10, [RFC5967]. pkcs7-mime, application/pkcs7-mime ... Other MIME Media Type Parameters: [IANA registry media-
text/plain is the default value for textual files. A textual file should be human-readable and must not contain binary data. · application/octet-stream is the
List of MIME types / Internet Media Types ; Cloud Data Management Interface (CDMI) - Domain, application/cdmi-domain .cdmid ; Cloud Data Management Interface (
Currently, there are ten registered types: application, audio, example, font, image, message, model, multipart, text, and video. Let's see some
All known MIME types ; application/dialog-info+xml tika · DICOM ffw · DICOM medical imaging data tika · Digital Imaging and Communications in Medicine File Format