MIME Type Lookup
Find the MIME type of a file extension, or the extensions of a media type.
Runs in your browser Your input never leaves your device.
Report a problem with this tool
About this tool
Web servers, uploads and APIs describe a file with a media type (also called MIME type or Content-Type), such as image/png or application/pdf. Enter a file name or extension (photo.JPG, .css, *.woff2) to see its type, or a type (application/json, text/html; charset=utf-8) to see the extensions registered for it, whether it is worth compressing and its default charset. A pattern such as image/* counts the types in that family. The data is the open mime-db registry, which merges the IANA registry with types used in practice; 2,522 types are included, 1,015 of them with file extensions. Some extensions map to more than one type; the first is the usual one. We compared the answers for 71 common extensions with Python's mimetypes module and they agree for 63; the rest are differences between registries, such as text/yaml here and application/yaml in Python, or audio/x-flac here and audio/flac there, and both are seen in the wild. The type a server should send for your files is a decision for you; use this to see the common choice. Everything runs in your browser; nothing is uploaded.
How to use it
- Type one file name, extension or media type per line.
- Read the types and extensions.
- Use the compressibility hint when configuring your server.
Common problems
- My extension is not found
- Only extensions registered in mime-db are listed. Unknown formats are usually sent as application/octet-stream.
- Two types are listed
- Some extensions are used for more than one type. The first is the most common. Check what your tools and browsers expect.
- The type differs from my operating system
- Operating systems and libraries keep their own tables. Where they differ, both forms often work, but servers should send one consistently.