在线工具箱

HTTP-MIME对照表

文件扩展名Content-Type(Mime-Type)
.001application/x-001
.323text/h323
.907drawing/907
.acpaudio/x-mei-aac
.aifaudio/aiff
.aiffaudio/aiff
.asatext/asa
.asptext/asp
.auaudio/basic
.awfapplication/vnd.adobe.workflow
.bmpapplication/x-bmp
.c4tapplication/x-c4t
.calapplication/x-cals
.cdfapplication/x-netcdf
.celapplication/x-cel
.cg4application/x-g4
.citapplication/x-cit
.cmltext/xml
.cmxapplication/x-cmx
.crlapplication/pkix-crl
.csiapplication/x-csi
.cutapplication/x-cut
.dbmapplication/x-dbm
.dcdtext/xml
.derapplication/x-x509-ca-cert
.dibapplication/x-dib
.docapplication/msword
.drwapplication/x-drw
.dwfModel/vnd.dwf
.dwgapplication/x-dwg
.dxfapplication/x-dxf
.emfapplication/x-emf
.enttext/xml
.epsapplication/x-ps
.etdapplication/x-ebx
.faximage/fax
.fifapplication/fractals
.frmapplication/x-frm
.gbrapplication/x-gbr
.gifimage/gif
.gp4application/x-gp4
.hmrapplication/x-hmr
.hplapplication/x-hpl
.hrfapplication/x-hrf
.htctext/x-component
.htmltext/html
.htxtext/html
.icoimage/x-icon
.iffapplication/x-iff
.igsapplication/x-igs
.imgapplication/x-img
.ispapplication/x-internet-signup
.javajava/*
.jpeimage/jpeg
.jpegimage/jpeg
.jpgapplication/x-jpg
.jsptext/html
.larapplication/x-laplayer-reg
.lavsaudio/x-liquid-secure
.lmsffaudio/x-la-lms
.ltrapplication/x-ltr
.m2vvideo/x-mpeg
.m4evideo/mpeg4
.manapplication/x-troff-man
.mdbapplication/msaccess
.mfpapplication/x-shockwave-flash
.mhtmlmessage/rfc822
.midaudio/mid
.milapplication/x-mil
.mndaudio/x-musicnet-download
.mochaapplication/x-javascript
.mp1audio/mp1
.mp2vvideo/mpeg
.mp4video/mpeg4
.mpdapplication/vnd.ms-project
.mpegvideo/mpg
.mpgaaudio/rn-mpeg
.mpsvideo/x-mpeg
.mpvvideo/mpg
.mpwapplication/vnd.ms-project
.mtxtext/xml
.netimage/pnetvue
.nwsmessage/rfc822
.outapplication/x-out
.p12application/x-pkcs12
.p7capplication/pkcs7-mime
.p7rapplication/x-pkcs7-certreqresp
.pc5application/x-pc5
.pclapplication/x-pcl
.pdfapplication/pdf
.pdxapplication/vnd.adobe.pdx
.pglapplication/x-pgl
.pkoapplication/vnd.ms-pki.pko
.plgtext/html
.pltapplication/x-plt
.pngapplication/x-png
.ppaapplication/vnd.ms-powerpoint
.ppsapplication/vnd.ms-powerpoint
.pptapplication/x-ppt
.prfapplication/pics-rules
.prtapplication/x-prt
.psapplication/postscript
.pwzapplication/vnd.ms-powerpoint
.raaudio/vnd.rn-realaudio
.rasapplication/x-ras
.rdftext/xml
.redapplication/x-red
.rjsapplication/vnd.rn-realsystem-rjs
.rlcapplication/x-rlc
.rmapplication/vnd.rn-realmedia
.rmiaudio/mid
.rmmaudio/x-pn-realaudio
.rmsapplication/vnd.rn-realmedia-secure
.rmxapplication/vnd.rn-realsystem-rmx
.rpimage/vnd.rn-realpix
.rsmlapplication/vnd.rn-rsml
.rtfapplication/msword
.rvvideo/vnd.rn-realvideo
.satapplication/x-sat
.sdwapplication/x-sdw
.slbapplication/x-slb
.slkdrawing/x-slk
.smilapplication/smil
.sndaudio/basic
.sortext/plain
.splapplication/futuresplash
.ssmapplication/streamingmedia
.stlapplication/vnd.ms-pki.stl
.styapplication/x-sty
.swfapplication/x-shockwave-flash
.tg4application/x-tg4
.tifimage/tiff
.tiffimage/tiff
.topdrawing/x-top
.tsdtext/xml
.uinapplication/x-icq
.vcftext/x-vcard
.vdxapplication/vnd.visio
.vpgapplication/x-vpeg005
.vsdapplication/x-vsd
.vstapplication/vnd.visio
.vswapplication/vnd.visio
.vtxapplication/vnd.visio
.wavaudio/wav
.wb1application/x-wb1
.wb3application/x-wb3
.wizapplication/msword
.wk4application/x-wk4
.wksapplication/x-wks
.wmaaudio/x-ms-wma
.wmfapplication/x-wmf
.wmvvideo/x-ms-wmv
.wmzapplication/x-ms-wmz
.wpdapplication/x-wpd
.wplapplication/vnd.ms-wpl
.wr1application/x-wr1
.wrkapplication/x-wrk
.ws2application/x-ws
.wsdltext/xml
.xdpapplication/vnd.adobe.xdp
.xfdapplication/vnd.adobe.xfd
.xhtmltext/html
.xlsapplication/x-xls
.xmltext/xml
.xqtext/xml
.xquerytext/xml
.xsltext/xml
.xwdapplication/x-xwd
.sisapplication/vnd.symbian.install
.x_tapplication/x-x_t
.apkapplication/vnd.android.package-archive
.woffapplication/x-font-woff
文件扩展名Content-Type(Mime-Type)
.301application/x-301
.906application/x-906
.a11application/x-a11
.aiapplication/postscript
.aifcaudio/aiff
.anvapplication/x-anv
.asfvideo/x-ms-asf
.asxvideo/x-ms-asf
.avivideo/avi
.biztext/xml
.botapplication/x-bot
.c90application/x-c90
.catapplication/vnd.ms-pki.seccat
.cdrapplication/x-cdr
.cerapplication/x-x509-ca-cert
.cgmapplication/x-cgm
.classjava/*
.cmpapplication/x-cmp
.cotapplication/x-cot
.crtapplication/x-x509-ca-cert
.csstext/css
.dbfapplication/x-dbf
.dbxapplication/x-dbx
.dcxapplication/x-dcx
.dgnapplication/x-dgn
.dllapplication/x-msdownload
.dotapplication/msword
.dtdtext/xml
.dwfapplication/x-dwf
.dxbapplication/x-dxb
.ednapplication/vnd.adobe.edn
.emlmessage/rfc822
.epiapplication/x-epi
.epsapplication/postscript
.exeapplication/x-msdownload
.fdfapplication/vnd.fdf
.fotext/xml
.g4application/x-g4
.application/x-
.gl2application/x-gl2
.hglapplication/x-hgl
.hpgapplication/x-hpgl
.hqxapplication/mac-binhex40
.htaapplication/hta
.htmtext/html
.htttext/webviewhtml
.icbapplication/x-icb
.icoapplication/x-ico
.ig4application/x-g4
.iiiapplication/x-iphone
.insapplication/x-internet-signup
.IVFvideo/x-ivf
.jfifimage/jpeg
.jpeapplication/x-jpe
.jpgimage/jpeg
.jsapplication/x-javascript
.la1audio/x-liquid-file
.latexapplication/x-latex
.lbmapplication/x-lbm
.lsapplication/x-javascript
.m1vvideo/x-mpeg
.m3uaudio/mpegurl
.macapplication/x-mac
.mathtext/xml
.mdbapplication/x-mdb
.mhtmessage/rfc822
.miapplication/x-mi
.midiaudio/mid
.mmltext/xml
.mnsaudio/x-musicnet-stream
.movievideo/x-sgi-movie
.mp2audio/mp2
.mp3audio/mp3
.mpavideo/x-mpg
.mpevideo/x-mpeg
.mpgvideo/mpg
.mppapplication/vnd.ms-project
.mptapplication/vnd.ms-project
.mpv2video/mpeg
.mpxapplication/vnd.ms-project
.mxpapplication/x-mmxp
.nrfapplication/x-nrf
.odctext/x-ms-odc
.p10application/pkcs10
.p7bapplication/x-pkcs7-certificates
.p7mapplication/pkcs7-mime
.p7sapplication/pkcs7-signature
.pciapplication/x-pci
.pcxapplication/x-pcx
.pdfapplication/pdf
.pfxapplication/x-pkcs12
.picapplication/x-pic
.plapplication/x-perl
.plsaudio/scpls
.pngimage/png
.potapplication/vnd.ms-powerpoint
.ppmapplication/x-ppm
.pptapplication/vnd.ms-powerpoint
.prapplication/x-pr
.prnapplication/x-prn
.psapplication/x-ps
.ptnapplication/x-ptn
.r3ttext/vnd.rn-realtext3d
.ramaudio/x-pn-realaudio
.ratapplication/rat-file
.recapplication/vnd.rn-recording
.rgbapplication/x-rgb
.rjtapplication/vnd.rn-realsystem-rjt
.rleapplication/x-rle
.rmfapplication/vnd.adobe.rmf
.rmjapplication/vnd.rn-realsystem-rmj
.rmpapplication/vnd.rn-rn_music_package
.rmvbapplication/vnd.rn-realmedia-vbr
.rnxapplication/vnd.rn-realplayer
.rpmaudio/x-pn-realaudio-plugin
.rttext/vnd.rn-realtext
.rtfapplication/x-rtf
.samapplication/x-sam
.sdpapplication/sdp
.sitapplication/x-stuffit
.sldapplication/x-sld
.smiapplication/smil
.smkapplication/x-smk
.soltext/plain
.spcapplication/x-pkcs7-certificates
.spptext/xml
.sstapplication/vnd.ms-pki.certstore
.stmtext/html
.svgtext/xml
.tdfapplication/x-tdf
.tgaapplication/x-tga
.tifapplication/x-tif
.tldtext/xml
.torrentapplication/x-bittorrent
.txttext/plain
.ulstext/iuls
.vdaapplication/x-vda
.vmltext/xml
.vsdapplication/vnd.visio
.vssapplication/vnd.visio
.vstapplication/x-vst
.vsxapplication/vnd.visio
.vxmltext/xml
.waxaudio/x-ms-wax
.wb2application/x-wb2
.wbmpimage/vnd.wap.wbmp
.wk3application/x-wk3
.wkqapplication/x-wkq
.wmvideo/x-ms-wm
.wmdapplication/x-ms-wmd
.wmltext/vnd.wap.wml
.wmxvideo/x-ms-wmx
.wp6application/x-wp6
.wpgapplication/x-wpg
.wq1application/x-wq1
.wriapplication/x-wri
.wsapplication/x-ws
.wsctext/scriptlet
.wvxvideo/x-ms-wvx
.xdrtext/xml
.xfdfapplication/vnd.adobe.xfdf
.xlsapplication/vnd.ms-excel
.xlwapplication/x-xlw
.xplaudio/scpls
.xqltext/xml
.xsdtext/xml
.xslttext/xml
.x_bapplication/x-x_b
.sisxapplication/vnd.symbian.install
.ipaapplication/vnd.iphone
.xapapplication/x-silverlight-app
.woff2application/x-font-woff

什么是http-mime类型?

  1. 概述

    媒体类型( Multipurpose Internet Mail Extensions 或 MIME 类型 )是一种标准,用来表示文档、文件或字节流的性质和格式。浏览器通常使用MIME类型(而不是文件扩展名)来确定如何处理URL,因此Web服务器在响应头中添加正确的MIME类型非常重要。如果配置不正确,浏览器可能会曲解文件内容,网站将无法正常工作,并且下载的文件也会被错误处理。

  2. 格式

    type/subtype由类型与子类型两个字符串中间用’/’分隔而组成。不允许空格存在。type 表示可以被分多个子类的独立类别。subtype 表示细分后的每个类型。MIME类型对大小写不敏感,但是传统写法都是小写。