Toolstia / MIME type lookup
MIME type lookup
Type a file extension such as png or pdf to get its MIME type, the value used in the Content-Type header. You can also type a MIME type or its first part, like image/, to see which extensions use it.
| Extension | MIME type |
|---|---|
| .html | text/html |
| .css | text/css |
| .js | text/javascript |
| .json | application/json |
| .png | image/png |
| .jpg | image/jpeg |
| .webp | image/webp |
| .svg | image/svg+xml |
| application/pdf | |
| .mp4 | video/mp4 |
| .mp3 | audio/mpeg |
| .zip | application/zip |
A MIME type tells a browser or server what kind of file it is dealing with. It is sent in the Content-Type header. Type an extension to find its MIME type, or a MIME type (or just its first part, like image/) to see its extensions.
How it works
- Type an extension or MIME type.
- Read the matching rows.
- Copy the value you need.
What a MIME type is
A MIME type, also called a media type, names the kind of data in a file, like text/html or image/png. Browsers and servers use it to decide how to handle the file.
Where you use it
In the Content-Type header of a web response, in upload checks, in email attachments and in the type attribute of HTML elements.
Searching
The tool matches an extension exactly first. If there is none, it searches both columns, so “video” lists every video type.
Common surprises
JavaScript is text/javascript, and unknown binary files are application/octet-stream. Word, Excel and PowerPoint files use long vnd.openxmlformats names.
Questions
Does the dot matter?
No. You can type png, .png or *.png.
Why are two extensions listed for one type?
Some formats have more than one extension, such as jpg and jpeg, which are the same format.
Is the list complete?
It covers the most common web, document, image, audio, video, archive and font formats, not every format in existence.