MIME Types Lookup
Look up MIME types by extension or type: 280+ web, image, font, audio, video, document, archive and code formats, with notes and a Content-Type header builder.
How to use MIME Types Lookup
- 1Type an extension such as .webp or a type such as image/webp. You can also search by word, for example spreadsheet.
- 2Read the type, its other extensions and the note, and copy the one you need.
- 3Open the Content-Type builder to add a charset or a multipart boundary, or switch to Browse to filter by category.
What makes it better
- Search both ways: extension to MIME type and MIME type to extensions
- Category chips for web, images, fonts, audio, video, documents, archives, code and data
- Notes on common mistakes, including JavaScript, JSON, SVG, fonts and ZIP-based Office files
- Content-Type header builder with charset and boundary checks
- Extensions that really mean two things, like .ts, show both entries
About MIME Types Lookup
This lookup maps file extensions to MIME types and back, using a bundled table of common web, image, font, audio, video, document, archive, source code and data formats. Each row has notes on the traps, such as text/javascript versus application/javascript, when a charset applies and why unknown binary files fall back to application/octet-stream. The Content-Type builder assembles a header with a charset or boundary and warns when a parameter does not belong.
Common uses
- Set the right Content-Type header for files you serve from a bucket, CDN or small server.
- Fix a browser refusing to run a script or load a font because of a wrong MIME type.
- Check which MIME types to allow in a file upload form or an API gateway.
- Find out what to send when an unknown file type is a download, not a page.
Example
Input
webp
Result
image/webp Extensions: .webp Category: Images
Good to know
- The table covers common types, not the full IANA registry. Types marked x- or without a registered name are what servers use in practice and may differ between systems.
- A MIME type describes how to treat the content, and browsers sometimes sniff the real format anyway. Send X-Content-Type-Options: nosniff and a correct type to make browsers respect your header.
- The file extension is only a convention. This page cannot detect the true format of a file, and nothing you type is uploaded.
MIME Types Lookup FAQ
What is a MIME type?
A MIME type, also called a media type, is a label such as image/png or text/html in two parts, type and subtype. HTTP sends it in the Content-Type header so the browser knows how to treat the bytes it received.
Should I use text/javascript or application/javascript?
Use text/javascript. RFC 9239 made it the standard type and marked application/javascript obsolete, although old servers still send it and browsers accept both. ES module scripts must be served with a JavaScript type or the browser refuses to run them.
When should a Content-Type include a charset?
Only for text types such as text/html, text/css and text/plain, where it tells the browser how to decode the characters. Add charset=utf-8 there. JSON is always UTF-8, and images or PDFs have no character set.
What is application/octet-stream?
It is the generic type for arbitrary binary data. Browsers do not try to display it and offer a download instead, which makes it the right fallback when you do not know the type, and the wrong choice for files you want shown inline.
Why do .docx, .xlsx and .pptx have such long MIME types?
They use vendor-registered names that spell out the Office Open XML format, such as application/vnd.openxmlformats-officedocument.wordprocessingml.document. Servers that send application/zip for them still work, but the browser then cannot offer to open them in Office.