MIME Type Lookup

Find the right MIME type for any file extension, or look up which extensions a MIME type covers.

45 entries
ExtensionMIME typeDescription
.jsonapplication/jsonJSON data
.htmltext/htmlHTML document
.csstext/cssStylesheet
.jstext/javascriptJavaScript
.mjstext/javascriptJavaScript module
.txttext/plainPlain text
.csvtext/csvComma separated values
.xmlapplication/xmlXML document
.pdfapplication/pdfPDF document
.zipapplication/zipZIP archive
.gzapplication/gzipGzip archive
.tarapplication/x-tarTar archive
.pngimage/pngPNG image
.jpgimage/jpegJPEG image
.jpegimage/jpegJPEG image
.gifimage/gifGIF image
.webpimage/webpWebP image
.avifimage/avifAVIF image
.svgimage/svg+xmlSVG vector image
.icoimage/x-iconIcon file
.mp3audio/mpegMP3 audio
.wavaudio/wavWAV audio
.oggaudio/oggOgg audio
.mp4video/mp4MP4 video
.webmvideo/webmWebM video
.movvideo/quicktimeQuickTime video
.wofffont/woffWeb font
.woff2font/woff2Web font (compressed)
.ttffont/ttfTrueType font
.otffont/otfOpenType font
.docapplication/mswordWord document (legacy)
.docxapplication/vnd.openxmlformats-officedocument.wordprocessingml.documentWord document
.xlsapplication/vnd.ms-excelExcel spreadsheet (legacy)
.xlsxapplication/vnd.openxmlformats-officedocument.spreadsheetml.sheetExcel spreadsheet
.pptapplication/vnd.ms-powerpointPowerPoint (legacy)
.pptxapplication/vnd.openxmlformats-officedocument.presentationml.presentationPowerPoint
.wasmapplication/wasmWebAssembly module
.mdtext/markdownMarkdown
.yamlapplication/yamlYAML
.tomlapplication/tomlTOML
.epubapplication/epub+zipEPUB ebook
.apkapplication/vnd.android.package-archiveAndroid package
.binapplication/octet-streamArbitrary binary data
.jsonldapplication/ld+jsonJSON-LD
.icstext/calendarCalendar file

About the MIME Type Lookup

Every HTTP response declares what kind of content it carries in the Content-Type header, and every upload form, CDN configuration, and file API needs the right MIME type for the files it handles. Get it wrong and browsers download pages instead of rendering them, refuse to run scripts, or block fonts.

This is a searchable table of the MIME types developers actually need, from the obvious (.json, .png) to the ones nobody remembers (.docx and its 70 character type, .woff2, .wasm). Search by extension, by type, or by what the file is, and copy the exact string.

The ones that cause the most bugs: JavaScript should be served as text/javascript, SVG needs image/svg+xml or it will not render as an image, and anything served as application/octet-stream will download rather than display. When in doubt about a binary format, application/octet-stream is the honest fallback.

Your ad could be here

Reach developers and designers who use these tools every day. Privacy-first, no trackers.

Frequently asked questions

What happens if I serve the wrong MIME type?

Depends on the type. Browsers refuse to execute scripts and stylesheets with wrong types (due to X-Content-Type-Options: nosniff), images may download instead of rendering, and fonts get blocked by CORS rules. Wrong MIME types are a common cause of "works locally, broken in production".

What is application/octet-stream?

The generic type for arbitrary binary data. It tells the browser "do not try to interpret this, just download it." It is the right choice for unknown binary files and the wrong choice for anything you want displayed or executed.

Is it text/javascript or application/javascript?

text/javascript. It was deprecated for years in favor of application/javascript, then the standard reversed course in 2022 and made text/javascript the official type again. Browsers accept both.