Mime Types🔒 100% local
MIME type reference: file extensions mapped to content types. Privacy-first, no server uploads, no tracking.
Related Tools
Answers the content-type question in both directions: give it a file extension and it returns the MIME type with ready-to-paste Content-Type and Content-Disposition header lines, or give it part of a type name and it lists the extensions that use it. The lookup runs against a fixed table of 38 web, image, media, font, office and archive types compiled into the page, so the answer does not depend on how your own server is configured.
How to use it
- Type an extension with or without the dot (.pdf or pdf), or a fragment such as image.
- Press Process to run the lookup.
- Copy the header lines, or read through the extension list that a fragment returns.
Worked example
.pdfbecomesExtension: .pdf
MIME type: application/pdf
Usage headers:
Content-Type: application/pdf
Content-Disposition: inline; filename="example.pdf"The filename in the disposition line is always example followed by your extension, so replace it with the real one before using the header.
imagebecomesExtensions matching "image":
.png → image/png
.jpg → image/jpeg
.jpeg → image/jpeg
.gif → image/gif
.svg → image/svg+xml
.webp → image/webp
.ico → image/x-iconA fragment that is not itself an extension falls through to a substring search across the MIME values, and the results keep the table's own order rather than any sort.
When to use it
- Setting a Content-Type header for a static file server or an API response.
- Working out which type a client expects when an upload is rejected.
- Writing a file filter that matches on MIME type instead of on the extension alone.
What it does not do
- The table is fixed at 38 entries and misses plenty of modern formats: .avif, .heic, .mov, .mkv, .7z and .yaml are not in it.
- An unrecognised extension returns an error that lists all 38 known extensions at once, which is a wall of text rather than a suggestion.
- The reverse lookup is a substring match, so text matches text/html, text/css, text/plain and text/markdown as well as application/epub+zip, and a short fragment such as e matches almost the whole table.
- Only the file name is consulted, so a .jpg whose contents are really a PNG is still reported as image/jpeg. To know what a server actually sends, read the response header.
- One type per extension is offered, and the charset parameter that a real server often appends is not included in the generated header.