MIME Type Lookup
Search local MIME types by extension or name, filter by category, and compare a file’s extension with its header signature.
Compare a File Extension With Its Header
Check a file header
Reads up to the first 4,096 bytes. Header matches identify format clues and shared containers.
Media type reference
Loading the local reference.
Extension mappings come from the mime-db 1.54.0 snapshot. An extension can match more than one media type.
MIME Type Lookup: how to use it
- Enter a filename, extension, media type, or a term such as JavaScript. Filter the matches by category.
- Copy the media type you need. Check the recorded source and compare alternatives when one extension returns several entries.
- To check a file, choose Open local file or Check example file. Compare the extension candidates with the signature and its byte offset.
Limits and notes
Includes 1,048 entries from the mime-db 1.54.0 snapshot. Reads at most the first 4,096 bytes of a chosen file. A signature is a header match and may identify a shared container. Lookup and file reads stay on this device.
How your privacy works →MIME Type Lookup: common questions
Which MIME type should I use for JavaScript?
Use text/javascript for JavaScript. The reference also lists the historical application/javascript alias so you can recognize it.
Why does a .docx file show a ZIP signature?
A DOCX document stores its parts in a ZIP container. The local header identifies the outer container and leaves the contents undetermined.
Can I look up a type without opening a file?
Yes. Enter an extension such as .pdf or a name such as Portable Network Graphics. File selection is only needed to compare a saved file’s header.