MIME Types by File Extension

Content-Type values for the file types web developers meet most often. Download: CSV · JSON.

ExtensionMIME typeDescription
.htmltext/htmlHTML document
.csstext/cssCascading style sheet
.jstext/javascriptJavaScript (RFC 9239)
.mjstext/javascriptJavaScript module
.jsonapplication/jsonJSON data
.xmlapplication/xmlXML document
.txttext/plainPlain text
.csvtext/csvComma-separated values
.mdtext/markdownMarkdown
.icstext/calendariCalendar event
.pngimage/pngPNG image
.jpgimage/jpegJPEG image
.jpegimage/jpegJPEG image
.gifimage/gifGIF image
.webpimage/webpWebP image
.avifimage/avifAVIF image
.svgimage/svg+xmlSVG vector image
.icoimage/vnd.microsoft.iconIcon file
.bmpimage/bmpBitmap image
.tiffimage/tiffTIFF image
.mp3audio/mpegMP3 audio
.wavaudio/wavWAV audio
.oggaudio/oggOgg audio
.webaaudio/webmWebM audio
.mp4video/mp4MP4 video
.webmvideo/webmWebM video
.mpegvideo/mpegMPEG video
.ogvvideo/oggOgg video
.pdfapplication/pdfPDF document
.zipapplication/zipZIP archive
.gzapplication/gzipGzip archive
.tarapplication/x-tarTape archive
.7zapplication/x-7z-compressed7-Zip archive
.rarapplication/vnd.rarRAR archive
.docapplication/mswordWord (legacy)
.docxapplication/vnd.openxmlformats-officedocument.wordprocessingml.documentWord document
.xlsapplication/vnd.ms-excelExcel (legacy)
.xlsxapplication/vnd.openxmlformats-officedocument.spreadsheetml.sheetExcel workbook
.pptapplication/vnd.ms-powerpointPowerPoint (legacy)
.pptxapplication/vnd.openxmlformats-officedocument.presentationml.presentationPowerPoint presentation
.odtapplication/vnd.oasis.opendocument.textOpenDocument text
.odsapplication/vnd.oasis.opendocument.spreadsheetOpenDocument spreadsheet
.epubapplication/epub+zipEPUB e-book
.rtfapplication/rtfRich text format
.wasmapplication/wasmWebAssembly module
.wofffont/woffWeb font WOFF
.woff2font/woff2Web font WOFF2
.ttffont/ttfTrueType font
.otffont/otfOpenType font
.webmanifestapplication/manifest+jsonWeb app manifest
.phpapplication/x-httpd-phpPHP script
.shapplication/x-shShell script
.binapplication/octet-streamArbitrary binary data