TOOLS.GAMESLOOP255 Free Online Tools

MIME Type Lookup

Find the MIME type for any file extension, and vice versa.

The leading dot is optional. Search works in both directions.

59 of 59 types.
ExtensionMIME typeDescriptionCharset
.htmltext/htmlHTML documentYes
.htmtext/htmlHTML documentYes
.csstext/cssCascading style sheetYes
.jstext/javascriptJavaScriptYes
.mjstext/javascriptJavaScript moduleYes
.jsonapplication/jsonJSON dataNo
.jsonldapplication/ld+jsonJSON-LD structured dataNo
.xmlapplication/xmlXML documentYes
.csvtext/csvComma-separated valuesYes
.txttext/plainPlain textYes
.mdtext/markdownMarkdownYes
.yamlapplication/yamlYAMLYes
.ymlapplication/yamlYAMLYes
.pngimage/pngPNG imageNo
.jpgimage/jpegJPEG imageNo
.jpegimage/jpegJPEG imageNo
.gifimage/gifGIF imageNo
.webpimage/webpWebP imageNo
.avifimage/avifAVIF imageNo
.svgimage/svg+xmlSVG vector imageNo
.icoimage/x-iconIcon fileNo
.bmpimage/bmpBitmap imageNo
.tiffimage/tiffTIFF imageNo
.heicimage/heicHEIC imageNo
.mp4video/mp4MP4 videoNo
.webmvideo/webmWebM videoNo
.movvideo/quicktimeQuickTime videoNo
.avivideo/x-msvideoAVI videoNo
.mkvvideo/x-matroskaMatroska videoNo
.mp3audio/mpegMP3 audioNo
.wavaudio/wavWAV audioNo
.oggaudio/oggOgg audioNo
.m4aaudio/mp4M4A audioNo
.flacaudio/flacFLAC audioNo
.aacaudio/aacAAC audioNo
.pdfapplication/pdfPDF documentNo
.docapplication/mswordWord document (legacy)No
.docxapplication/vnd.openxmlformats-officedocument.wordprocessingml.documentWord documentNo
.xlsapplication/vnd.ms-excelExcel workbook (legacy)No
.xlsxapplication/vnd.openxmlformats-officedocument.spreadsheetml.sheetExcel workbookNo
.pptapplication/vnd.ms-powerpointPowerPoint presentation (legacy)No
.pptxapplication/vnd.openxmlformats-officedocument.presentationml.presentationPowerPoint presentationNo
.odtapplication/vnd.oasis.opendocument.textOpenDocument textNo
.odsapplication/vnd.oasis.opendocument.spreadsheetOpenDocument spreadsheetNo
.rtfapplication/rtfRich text formatNo
.epubapplication/epub+zipEPUB e-bookNo
.zipapplication/zipZIP archiveNo
.gzapplication/gzipGzip archiveNo
.tarapplication/x-tarTAR archiveNo
.7zapplication/x-7z-compressed7-Zip archiveNo
.rarapplication/vnd.rarRAR archiveNo
.wofffont/woffWeb Open Font FormatNo
.woff2font/woff2WOFF2 fontNo
.ttffont/ttfTrueType fontNo
.otffont/otfOpenType fontNo
.eotapplication/vnd.ms-fontobjectEmbedded OpenType fontNo
.wasmapplication/wasmWebAssembly moduleNo
.webmanifestapplication/manifest+jsonWeb app manifestNo
.binapplication/octet-streamArbitrary binary dataNo

Never trust a client-supplied MIME type

The type a browser attaches to an upload comes from the file extension and is trivially spoofed. Always verify server-side by inspecting the file’s magic bytes.

What does MIME Type Lookup do?

Look up the correct Content-Type for a file extension, or find which extensions a MIME type covers. Serving the wrong type is a frequent cause of files downloading instead of displaying, or of a browser refusing to run a script.

How to Use MIME Type Lookup

  1. 1
    Type an extensionWith or without the dot.
  2. 2
    Read the MIME typePlus any charset guidance.
  3. 3
    Search in reverseEnter a MIME type to see its extensions.

Key Features

  • Search by extension or by MIME type
  • Several hundred types covering images, video, audio, documents, fonts and archives
  • Notes on which types need a charset parameter
  • Flags obsolete types that have been superseded
  • Ready-to-paste Content-Type header for each result

Frequently Asked Questions

What is a MIME type?

A two-part label such as text/html or image/png that tells a client what a file actually is. Servers send it in the Content-Type header, and browsers use it to decide whether to render, download or refuse the file.

Why does my file download instead of displaying?

Usually because it is served as application/octet-stream, the generic "unknown binary" type. Configure your server with the correct type for that extension and the browser will render it.

Should I include a charset?

Yes for text types. text/html; charset=utf-8 avoids the browser guessing the encoding, which is a common cause of mojibake. Binary types have no charset.

Can I trust a file’s MIME type?

Not from a client. An uploaded file’s declared type is set by the browser from the extension and is trivially spoofed. Always verify server-side by inspecting the file’s magic bytes.

Explore Related Workflows & Utilities

More tools in Developer Tools and related problem-solving tools

Topical Deep Dives & Guides

Local Dev Security: Safely Debugging Staging API Payloads in the BrowserRFC 4122 UUID v4 Cryptographic Randomness Explained