MIME Type Lookup
Find the right Content-Type for a file extension, or drop a file to see what type it really is.
How to use the MIME Type Lookup
- SearchType a file extension like webp or docx, or part of a MIME type like application/json.
- Copy the typeCopy the Content-Type to use in server settings, API headers, HTML or email attachments.
- Check a real fileChoose or drop a file to compare its extension with its real content, found from the first bytes (the “magic number”).
Example
.webp → image/webp; .docx → application/vnd.openxmlformats-officedocument.wordprocessingml.document.
A file named photo.png that starts with FF D8 FF is really a JPEG, which explains why some apps reject it.
Frequently asked questions
What is a MIME type?
A label like image/png or application/json that tells browsers and apps what kind of data a file contains. Servers send it in the Content-Type header.
Why does my download show as text or garbage?
The server is probably sending the wrong Content-Type. Set the correct MIME type for that extension in your server configuration (.htaccess, Nginx or your hosting panel).
Should JavaScript be text/javascript or application/javascript?
The current standard (RFC 9239, 2022) says text/javascript. Both work in browsers.