MIME Type Lookup
Look up common MIME types by file extension.
Read the guideRun the tool
The calculation runs in your browser. This tool does not send your input to JVR Software.
More information
Back to the toolWhat it is and when to use it
A media type names a representation such as text/html or image/png. MIME Lookup suggests a media type from a filename’s extension. It is useful for checking an ordinary Content-Type value before configuring a static site, attaching a file to an email fixture or writing API documentation.
How it works
The tool compares the extension with the types it knows. It does not inspect any file bytes. HTTP clients can use the resulting type to choose a renderer or decoder. A charset, boundary or other media-type parameter may provide additional requirements for particular formats.
How to use it
- Enter the extension on its own, with or without an initial dot.
- Compare the suggested type with the documented format for your endpoint or attachment.
- Check the actual Content-Type response after deploying web configuration.
Worked example
For sample.png, enter .png and expect image/png. JSON commonly uses application/json. An unfamiliar extension can produce the generic binary fallback. Renaming a text file to .png changes the label while leaving its bytes unchanged.
Reading the result
Filename-based guesses are a starting point. For a compound suffix, identify the real container and any applicable content encoding. Confirm the representation with a format-aware library if the file’s origin is uncertain or its type matters for downstream handling.
Common mistakes and limits
Validate uploads by content and application policy in addition to checking a declared type or extension. Some download responses rely on a separate Content-Disposition header, which controls presentation and naming rather than declaring the on-wire media format.
