Look up MIME types by file extension or convert extensions to MIME types. Covers 1000+ file types including images, video, audio, documents, and programming languages.
MIME type is a standard identifier for the format of a file consisting of a type and subtype such as text/html, application/json, or image/png.
Servers use MIME types to tell browsers how to handle files. An incorrect MIME type can cause files to be downloaded instead of displayed.
Essential types: text/html, text/css, application/javascript, application/json, image/png, image/jpeg, image/svg+xml, image/webp, video/mp4, application/pdf, application/zip, multipart/form-data. Content-Type header declares format sent; Accept requests preferred format.
Key roles of MIME types: browsers use Content-Type to decide how to handle a response (display, download, or render); an incorrect MIME type may cause files to download instead of display (e.g., PDFs); API responses must set application/json; validating MIME types on file upload helps prevent malicious files (but must be combined with magic-byte inspection of file content).