MockFoxAdvertise

MIME types list & lookup

Updated Free mock REST & WebSocket APIs

Find the right Content-Type for any file. Type an extension (or a whole file name) to get its MIME type instantly, or a MIME type to see which extensions use it.

Type an extension to get its MIME type instantly, or a MIME type to find its extensions. 148 common types included.

ExtensionMIME type
.html .htmtext/htmlHTML document
.csstext/cssCascading Style Sheets
.js .mjs .cjstext/javascriptJavaScript
.ts .mts .ctsvideo/mp2tMPEG transport stream video (.ts is also TypeScript — serve source as text/plain)
.txt .texttext/plainPlain text
.csvtext/csvComma-separated values
.tsvtext/tab-separated-valuesTab-separated values
.md .markdowntext/markdownMarkdown
.xmlapplication/xmlXML document
.xhtml .xhtapplication/xhtml+xmlXHTML document
.rtfapplication/rtfRich Text Format
.ics .ifbtext/calendariCalendar event
.vcf .vcardtext/vcardvCard contact
.yaml .ymlapplication/yamlYAML
.tomlapplication/tomlTOML
.jsxtext/jsxJavaScript XML (React)
.tsxtext/tsxTypeScript JSX (React)
.pytext/x-pythonPython source
.javatext/x-java-sourceJava source
.c .htext/x-cC source / header
.cpp .cc .cxx .hpptext/x-c++srcC++ source
.cstext/x-csharpC# source
.gotext/x-goGo source
.rstext/x-rustRust source
.rbtext/x-rubyRuby source
.phpapplication/x-httpd-phpPHP source
.shapplication/x-shShell script
.sqlapplication/sqlSQL
.vtttext/vttWebVTT subtitles
.srtapplication/x-subripSubRip subtitles
.mapapplication/jsonSource map
.diff .patchtext/x-diffDiff / patch
.logtext/plainLog file
.ini .conf .cfgtext/plainConfiguration file
.jsonapplication/jsonJSON
.jsonldapplication/ld+jsonJSON-LD (linked data, schema.org)
.geojsonapplication/geo+jsonGeoJSON
.ndjson .jsonlapplication/x-ndjsonNewline-delimited JSON
.webmanifestapplication/manifest+jsonWeb app manifest
.wasmapplication/wasmWebAssembly binary
.binapplication/octet-streamArbitrary binary data
.exe .dllapplication/vnd.microsoft.portable-executableWindows executable
.msiapplication/x-msiWindows installer
.dmgapplication/x-apple-diskimagemacOS disk image
.pkgapplication/octet-streammacOS installer package
.debapplication/vnd.debian.binary-packageDebian package
.rpmapplication/x-rpmRPM package
.apkapplication/vnd.android.package-archiveAndroid app (APK)
.ipaapplication/octet-streamiOS app archive
.jarapplication/java-archiveJava archive
.classapplication/java-vmJava class file
.swfapplication/x-shockwave-flashAdobe Flash (obsolete)
.sqlite .dbapplication/vnd.sqlite3SQLite database
.parquetapplication/vnd.apache.parquetApache Parquet
.avroapplication/avroApache Avro
.pb .protoapplication/x-protobufProtocol Buffers
.msgpackapplication/msgpackMessagePack
.rssapplication/rss+xmlRSS feed
.atomapplication/atom+xmlAtom feed
.pem .crt .cerapplication/x-pem-filePEM certificate / key
.derapplication/x-x509-ca-certDER certificate
.p12 .pfxapplication/x-pkcs12PKCS#12 keystore
.torrentapplication/x-bittorrentBitTorrent file
.gpxapplication/gpx+xmlGPS exchange format
.kmlapplication/vnd.google-earth.kml+xmlGoogle Earth KML
.kmzapplication/vnd.google-earth.kmzGoogle Earth KMZ
.glbmodel/gltf-binaryglTF binary 3D model
.gltfmodel/gltf+jsonglTF 3D model
.objmodel/objWavefront OBJ 3D model
.stlmodel/stlSTL 3D model
.usdzmodel/vnd.usdz+zipUSDZ 3D model (Apple AR)
.pngimage/pngPNG image
.jpg .jpeg .jpe .jfifimage/jpegJPEG image
.gifimage/gifGIF image
.webpimage/webpWebP image
.avifimage/avifAVIF image
.svg .svgzimage/svg+xmlSVG vector image
.icoimage/vnd.microsoft.iconIcon (favicon)
.bmpimage/bmpBitmap image
.tif .tiffimage/tiffTIFF image
.heicimage/heicHEIC image (iPhone photos)
.heifimage/heifHEIF image
.jxlimage/jxlJPEG XL image
.apngimage/apngAnimated PNG
.psdimage/vnd.adobe.photoshopPhotoshop document
.raw .cr2 .nef .arw .dngimage/x-rawCamera RAW image (vendor types vary, e.g. image/x-canon-cr2)
.epsapplication/postscriptEncapsulated PostScript
.aiapplication/postscriptAdobe Illustrator
.mp3audio/mpegMP3 audio
.wavaudio/wavWAV audio
.ogg .ogaaudio/oggOgg audio (Vorbis/Opus)
.opusaudio/opusOpus audio
.m4aaudio/mp4MPEG-4 audio (AAC)
.aacaudio/aacAAC audio (ADTS)
.flacaudio/flacFLAC lossless audio
.webaaudio/webmWebM audio
.mid .midiaudio/midiMIDI
.aiff .aifaudio/aiffAIFF audio
.amraudio/amrAMR audio (voice)
.m3uaudio/x-mpegurlM3U playlist
.mp4 .m4vvideo/mp4MPEG-4 video
.webmvideo/webmWebM video
.ogvvideo/oggOgg video
.mov .qtvideo/quicktimeQuickTime video
.avivideo/x-msvideoAVI video
.mkvvideo/x-matroskaMatroska video
.wmvvideo/x-ms-wmvWindows Media video
.flvvideo/x-flvFlash video
.mpeg .mpgvideo/mpegMPEG video
.3gpvideo/3gpp3GPP video
.m3u8application/vnd.apple.mpegurlHLS playlist
.mpdapplication/dash+xmlMPEG-DASH manifest
.woff2font/woff2WOFF2 web font
.wofffont/woffWOFF web font
.ttffont/ttfTrueType font
.otffont/otfOpenType font
.eotapplication/vnd.ms-fontobjectEmbedded OpenType (legacy IE)
.pdfapplication/pdfPDF document
.docapplication/mswordWord document (97–2003)
.docxapplication/vnd.openxmlformats-officedocument.wordprocessingml.documentWord document
.xlsapplication/vnd.ms-excelExcel spreadsheet (97–2003)
.xlsxapplication/vnd.openxmlformats-officedocument.spreadsheetml.sheetExcel spreadsheet
.xlsmapplication/vnd.ms-excel.sheet.macroEnabled.12Excel macro-enabled workbook
.pptapplication/vnd.ms-powerpointPowerPoint (97–2003)
.pptxapplication/vnd.openxmlformats-officedocument.presentationml.presentationPowerPoint presentation
.odtapplication/vnd.oasis.opendocument.textOpenDocument text
.odsapplication/vnd.oasis.opendocument.spreadsheetOpenDocument spreadsheet
.odpapplication/vnd.oasis.opendocument.presentationOpenDocument presentation
.epubapplication/epub+zipEPUB e-book
.mobiapplication/x-mobipocket-ebookMobipocket e-book
.azwapplication/vnd.amazon.ebookKindle e-book
.pagesapplication/vnd.apple.pagesApple Pages
.numbersapplication/vnd.apple.numbersApple Numbers
.keyapplication/vnd.apple.keynoteApple Keynote
.psapplication/postscriptPostScript
.emlmessage/rfc822Email message
.msgapplication/vnd.ms-outlookOutlook message
.texapplication/x-texLaTeX source
.zipapplication/zipZIP archive
.gz .tgzapplication/gzipGzip archive
.tarapplication/x-tarTar archive
.bz2application/x-bzip2Bzip2 archive
.xzapplication/x-xzXZ archive
.zstapplication/zstdZstandard archive
.brapplication/x-brotliBrotli-compressed file
.7zapplication/x-7z-compressed7-Zip archive
.rarapplication/vnd.rarRAR archive
.isoapplication/x-iso9660-imageISO disk image

How to look up a MIME type

  1. Type an extension such as webp, a file name like report.xlsx, or a type like font/woff2.
  2. The exact match appears at the top with a ready-to-paste Content-Type header; the table lists every related type.
  3. Filter by category (images, fonts, documents…) to browse.

The MIME types every web server needs

ExtensionContent-Type
.htmltext/html; charset=utf-8
.csstext/css
.js / mjstext/javascript
.jsonapplication/json
.svgimage/svg+xml
.webp / avifimage/webp, image/avif
.woff2font/woff2
.wasmapplication/wasm
.webmanifestapplication/manifest+json
.mp4video/mp4

A wrong type causes real bugs: scripts served as text/plain are blocked when X-Content-Type-Options: nosniff is set, ES modules must be a JavaScript type, .wasm needs application/wasm for streaming compilation, and SVGs served as application/octet-stream download instead of rendering.

Setting MIME types on your server

nginx

# /etc/nginx/mime.types is included by default; add missing ones:
types {
    application/manifest+json  webmanifest;
    image/avif                 avif;
}

Express

// express.static uses the mime-types package automatically.
res.type("application/json");          // set explicitly
res.set("Content-Type", "text/csv; charset=utf-8");

Apache (.htaccess)

AddType font/woff2 .woff2
AddType application/wasm .wasm

Anatomy of a MIME type

A media type is type/subtype plus optional parameters: text/html; charset=utf-8. The top-level types are text, image, audio, video, font, model, application and multipart. A +json or +xml suffix (e.g. application/ld+json) means the format is built on JSON or XML. vnd. subtypes are vendor-specific and x- subtypes are unregistered.

Related tools

Frequently asked questions

What is a MIME type?

A MIME type (media type) is a two-part label like image/png or application/json that tells software what kind of data a file or HTTP body contains. Servers send it in the Content-Type header.

What MIME type should I use for an unknown file?

application/octet-stream, the generic type for arbitrary binary data. Browsers will download it rather than display it.

Is it application/javascript or text/javascript?

text/javascript. RFC 9239 (2022) made it the official type and marked application/javascript obsolete, though browsers accept both.

What's the MIME type for JSON?

application/json. Don't add a charset parameter — JSON is always UTF-8 by definition (RFC 8259), although many servers still send charset=utf-8.

Your business here? Sponsor this tool from $16/week. See placements