MIME Type Reference
Find the correct MIME type for common file extensions using this searchable reference. Look up content types for HTML, CSS, JavaScript, images, audio, video, documents, and archives, then copy the MIME value for your project.
Look up a MIME type
MIME types
What Is a MIME Type Reference?
A MIME Type Reference is a directory of media types that identify the format of a file or data. MIME types, also called media types, typically use a type/subtype format, such as text/html for HTML documents or image/png for PNG images.
Developers use MIME types in HTTP headers, web servers, APIs, HTML documents, and file uploads to communicate how content should be interpreted. This reference helps you find the appropriate content type by searching for a file extension or MIME value.
How to Use the MIME Type Reference
Search by Extension or MIME Type: Enter a file extension, such as .png, or a MIME value, such as image/png, in the search field.
Review Matching Results: Check the file extension, description, and associated content type.
Identify the Correct MIME Type: Select the value that matches the file format you are working with.
Copy the Content Type: Click Copy beside the relevant result to copy its MIME type for use in your code, configuration, or HTTP headers.
Example: MIME Types and File Extensions
Here are common MIME type examples and their corresponding file formats:
.html — HTML document: text/html
.css — Stylesheet: text/css
.js — JavaScript file: application/javascript
.json — JSON data: application/json
.png — PNG image: image/png
.jpg — JPEG image: image/jpeg
.svg — SVG image: image/svg+xml
.mp4 — MP4 video: video/mp4
.mp3 — MP3 audio: audio/mpeg
.pdf — PDF document: application/pdf
.csv — CSV data: text/csv
.woff2 — Compressed web font: font/woff2
For example, a web server can use the following HTTP response header to identify an HTML document:
Content-Type: text/html; charset=UTF-8
The Content-Type header tells the receiving browser how to interpret the response body. The character encoding parameter specifies how the text is encoded.