MIME 类型查询 – 扩展名 ↔ MIME 对照

共 138 条

  • texttext/plaintxt, text, conf, def, list, log, in, ini, cfgPlain text file with no special formatting.
  • texttext/htmlhtml, htmHyperText Markup Language web page.
  • texttext/csscssCascading Style Sheets used to style web pages.
  • texttext/csvcsvComma-separated values, a simple tabular data format.
  • texttext/tab-separated-valuestsvTab-separated values, a delimited tabular data format.
  • texttext/xmlxmlExtensible Markup Language document.
  • texttext/javascriptjs, mjs, cjsJavaScript source code for the web and Node.js.
  • texttext/markdownmd, markdownMarkdown lightweight markup document.
  • texttext/calendaricsiCalendar file for calendar events.
  • texttext/vcardvcfvCard contact information file.
  • texttext/richtextrtxSimple rich text markup format.
  • texttext/yamlyaml, ymlYAML human-readable data serialization.
  • texttext/x-pythonpyPython source code (legacy text/x-* type).
  • texttext/rtfrtfRich Text Format document.
  • texttext/sgmlsgml, sgmStandard Generalized Markup Language document.
  • imageimage/pngpngPortable Network Graphics, lossless raster image.
  • imageimage/jpegjpg, jpeg, jpeJPEG lossy compressed photographic image.
  • imageimage/gifgifGIF image, supports animation and transparency.
  • imageimage/webpwebpWebP modern image format with lossy and lossless modes.
  • imageimage/svg+xmlsvg, svgzScalable Vector Graphics, XML-based vector image.
  • imageimage/bmpbmpBitmap image format used by Windows.
  • imageimage/tifftif, tiffTagged Image File Format for high-quality raster images.
  • imageimage/x-iconicoWindows icon file.
  • imageimage/vnd.microsoft.iconicoStandard type for Windows icon files.
  • imageimage/avifavifAVIF image based on the AV1 codec.
  • imageimage/heicheicHigh Efficiency Image Coding, used by Apple devices.
  • imageimage/heifheifHigh Efficiency Image File Format.
  • imageimage/jpeg2000jp2, j2kJPEG 2000 wavelet-based image format.
  • imageimage/apngapngAnimated PNG image.
  • imageimage/jxljxlJPEG XL next-generation image format.
  • imageimage/x-portable-pixmapppmPortable PixMap, a Netpbm color image.
  • imageimage/x-portable-graymappgmPortable GrayMap, a Netpbm grayscale image.
  • imageimage/x-portable-bitmappbmPortable BitMap, a Netpbm monochrome image.
  • imageimage/x-xbitmapxbmX BitMap, a monochrome image stored as C source text.
  • audioaudio/mpegmp3, mpgaMP3 audio compressed with the MPEG layer III codec.
  • audioaudio/oggogg, oga, opusOgg container audio, often Vorbis or Opus.
  • audioaudio/wavwavWaveform Audio File Format, uncompressed PCM audio.
  • audioaudio/webmwebaWebM container with audio only.
  • audioaudio/aacaacAdvanced Audio Coding compressed audio.
  • audioaudio/flacflacFree Lossless Audio Codec audio.
  • audioaudio/midimid, midiMIDI musical instrument digital interface data.
  • audioaudio/mp4m4a, mp4aAudio in an MP4 container, often AAC.
  • audioaudio/aiffaiff, aifAudio Interchange File Format used by Apple.
  • audioaudio/x-ms-wmawmaWindows Media Audio file.
  • audioaudio/amramrAdaptive Multi-Rate speech audio codec.
  • audioaudio/3gpp3gp3GPP container audio for mobile networks.
  • videovideo/mp4mp4, m4vMPEG-4 Part 14 video container.
  • videovideo/mpegmpg, mpeg, mpeMPEG-1/MPEG-2 video stream.
  • videovideo/webmwebmWebM container, typically VP8/VP9 video.
  • videovideo/oggogvOgg container video, often Theora.
  • videovideo/quicktimemov, qtApple QuickTime movie.
  • videovideo/x-msvideoaviAudio Video Interleave file by Microsoft.
  • videovideo/x-matroskamkvMatroska multimedia container.
  • videovideo/3gpp3gp3GPP video container for mobile devices.
  • videovideo/3gpp23g23GPP2 video container for CDMA devices.
  • videovideo/x-flvflvFlash Video container.
  • videovideo/x-ms-wmvwmvWindows Media Video file.
  • videovideo/mp2ttsMPEG transport stream, used for broadcast and HLS.
  • videovideo/x-m4vm4vMPEG-4 video file used by Apple.
  • videovideo/av1av1AOMedia Video 1 encoded video.
  • applicationapplication/jsonjsonJavaScript Object Notation data interchange format.
  • applicationapplication/ld+jsonjsonldJSON-LD linked data serialized as JSON.
  • applicationapplication/xmlxmlGeneric XML document for data exchange.
  • applicationapplication/xhtml+xmlxhtmlXHTML document served as XML.
  • applicationapplication/pdfpdfPortable Document Format by Adobe.
  • applicationapplication/msworddoc, dotMicrosoft Word legacy document.
  • applicationapplication/vnd.openxmlformats-officedocument.wordprocessingml.documentdocxMicrosoft Word OOXML document.
  • applicationapplication/vnd.ms-excelxls, xltMicrosoft Excel legacy spreadsheet.
  • applicationapplication/vnd.openxmlformats-officedocument.spreadsheetml.sheetxlsxMicrosoft Excel OOXML spreadsheet.
  • applicationapplication/vnd.ms-powerpointppt, potMicrosoft PowerPoint legacy presentation.
  • applicationapplication/vnd.openxmlformats-officedocument.presentationml.presentationpptxMicrosoft PowerPoint OOXML presentation.
  • applicationapplication/vnd.oasis.opendocument.textodtOpenDocument text document.
  • applicationapplication/vnd.oasis.opendocument.spreadsheetodsOpenDocument spreadsheet.
  • applicationapplication/vnd.oasis.opendocument.presentationodpOpenDocument presentation.
  • applicationapplication/rtfrtfRich Text Format document.
  • applicationapplication/javascriptjs, mjsJavaScript source code served by web servers.
  • applicationapplication/typescripttsTypeScript source code (also a transport stream extension).
  • applicationapplication/x-httpd-phpphpPHP server-side script source.
  • applicationapplication/x-shshBourne shell script.
  • applicationapplication/sqlsqlSQL database query script.
  • applicationapplication/wasmwasmWebAssembly binary module.
  • applicationapplication/graphqlgraphql, gqlGraphQL query document.
  • applicationapplication/tomltomlTOML configuration file.
  • applicationapplication/yamlyaml, ymlYAML data serialization document.
  • applicationapplication/x-ndjsonndjson, jsonlNewline-delimited JSON stream.
  • applicationapplication/manifest+jsonwebmanifestWeb app manifest in JSON.
  • applicationapplication/octet-streambin, dms, lrfGeneric binary data with no specific type.
  • applicationapplication/x-msdownloadexe, dllWindows executable or dynamic library.
  • applicationapplication/vnd.microsoft.portable-executableexeWindows Portable Executable (PE) binary.
  • applicationapplication/x-msimsiWindows Installer package.
  • applicationapplication/x-ms-shortcutlnkWindows shortcut file.
  • applicationapplication/postscriptps, epsPostScript document, often for printing.
  • applicationapplication/vnd.apple.installer+xmlmpkgApple Installer package metadata.
  • applicationapplication/x-debdebDebian software package.
  • applicationapplication/x-rpmrpmRed Hat software package.
  • applicationapplication/oggogxOgg container with an unspecified media type.
  • applicationapplication/vnd.api+jsonjsonJSON:API document serialized as JSON.
  • applicationapplication/vnd.google-earth.kml+xmlkmlKeyhole Markup Language for geographic data.
  • applicationapplication/vnd.google-earth.kmzkmzCompressed KML geographic data.
  • fontfont/woffwoffWeb Open Font Format, compressed for the web.
  • fontfont/woff2woff2Web Open Font Format 2, better compression.
  • fontfont/ttfttfTrueType font.
  • fontfont/otfotfOpenType font.
  • fontfont/collectionttcTrueType font collection.
  • fontapplication/vnd.ms-fontobjecteotEmbedded OpenType font used by legacy IE.
  • fontapplication/font-sfntttf, otfSFNT-based font (TrueType/OpenType).
  • fontapplication/x-font-woffwoffLegacy type for Web Open Font Format.
  • archiveapplication/zipzipZIP archive with lossless compression.
  • archiveapplication/gzipgzGzip compressed single file.
  • archiveapplication/x-tartarTAR archive of concatenated files.
  • archiveapplication/x-7z-compressed7z7-Zip archive with high compression.
  • archiveapplication/vnd.rarrarRAR compressed archive.
  • archiveapplication/x-rar-compressedrarLegacy type for RAR compressed archive.
  • archiveapplication/x-bzip2bz2Bzip2 compressed file.
  • archiveapplication/x-xzxzXZ compressed file with LZMA2.
  • archiveapplication/zstdzstZstandard compressed file.
  • archiveapplication/x-lziplzlzip compressed archive.
  • archiveapplication/x-lzmalzmaLZMA compressed file.
  • archiveapplication/x-compresszUnix compress (.Z) archive.
  • archiveapplication/x-iso9660-imageisoOptical disc image in ISO 9660 format.
  • archiveapplication/x-freearcarcFreeArc compressed archive.
  • archiveapplication/java-archivejarJava archive, a ZIP with Java classes.
  • archiveapplication/vnd.android.package-archiveapkAndroid application package.
  • archiveapplication/epub+zipepubEPUB e-book archive.
  • archiveapplication/x-apple-diskimagedmgApple disk image.
  • modelmodel/gltf+jsongltfglTF 3D scene described as JSON.
  • modelmodel/gltf-binaryglbglTF 3D scene in binary form.
  • modelmodel/objobjWavefront OBJ 3D model.
  • modelmodel/stlstlSTL 3D model used for 3D printing.
  • modelmodel/plyplyPolygon File Format 3D model.
  • modelmodel/vnd.collada+xmldaeCOLLADA XML 3D asset interchange.
  • modelmodel/igesigs, igesIGES CAD model exchange format.
  • modelmodel/stepstep, stpSTEP CAD model exchange format.
  • modelmodel/vrmlwrl, vrmlVRML virtual reality 3D scene.
  • modelmodel/meshmshMesh geometry format.
  • modelmodel/x3d+xmlx3dX3D 3D scene in XML.
  • modelmodel/x3d-vrmlx3dvX3D 3D scene in VRML syntax.
  • modelmodel/vnd.usdz+zipusdzApple AR Quick Look USDZ model.

关于此工具

在内置的常见 MIME 类型表中按文件扩展名(png)、按 MIME 类型(image/png 或 image/)或按关键词(json、zip)搜索。每条结果展示 MIME 类型、对应扩展名与一行说明,并支持一键复制 MIME 或扩展名。整张对照表随页面一起加载,所有查询都在浏览器本地完成,不上传任何内容,离线也能正常使用。

使用方法
  1. 输入文件扩展名(如 png)、完整 MIME 类型(如 image/png)或类别前缀(如 image/)。
  2. 查看命中的结果行:每条包含 MIME 类型、对应扩展名与一行说明。
  3. 点击「复制 MIME」或「复制扩展名」即可把需要的值复制到剪贴板。
MIME 类型是什么?用在哪里?

MIME 类型(媒体类型)是形如 image/png 或 application/json 的标签,用来告诉软件一份文件或 HTTP 响应里装的是什么数据。浏览器、Web 服务器、邮件客户端与 API 都靠它决定如何渲染、下载或处理内容。它的写法是「类型/子类型」,例如 text/html、video/mp4。

为什么同一个扩展名可能对应多个 MIME 类型(如 .ts)?

扩展名并不唯一:.ts 既是 TypeScript 源码(application/typescript),也是视频广播与 HLS 使用的 MPEG 传输流(video/mp2t)。同理 .xml 既可以是 text/xml 也可以是 application/xml,.rar 既有 application/vnd.rar 也有旧的 application/x-rar-compressed。拿不准时,应以服务器或工具实际发送的 MIME 类型为准,而不是只看扩展名。

数据是否离线可用?

可以。整张 MIME 对照表都内置在页面里,工具不会请求服务器、不上传输入、也不下载数据库。所有搜索都在浏览器本地完成,没有网络也能使用。