My Tool Studio
Developer

MIME Type Lookup

This MIME types list maps 267 file extensions to their Content-Type values, from image/webp and font/woff2 to Office, 3D model and certificate types. Search by extension to find the MIME type, or search part of a MIME type, such as image/ or json, to see every matching extension, and filter by group. Each row has one-click nginx and Apache lines, and the whole list downloads as JSON, CSV, an nginx types block or Apache AddType lines. Drop up to 50 files on the checker at the top to read their first bytes and find the real type, even if a file was renamed. The file check happens in your browser and nothing is uploaded.

Always freeNo sign upRuns in your browser

Check a file's real MIME type

Drop any file to read its first bytes and identify the format. The file is read in your browser and is not uploaded.

Download the full list (267):
267 / 267
ExtensionMIME typeGroupServer config
.txttext/plainText
.logtext/plainText
.htmltext/htmlText
.htmtext/htmlText
.csstext/cssText
.jstext/javascriptText
.mjstext/javascriptText
.cjstext/javascriptText
.csvtext/csvText
.tsvtext/tab-separated-valuesText
.mdtext/markdownText
.markdowntext/markdownText
.icstext/calendarText
.vcftext/vcardText
.vtttext/vttText
.xhtmlapplication/xhtml+xmlText
.jpgimage/jpegImage
.jpegimage/jpegImage
.pngimage/pngImage
.apngimage/apngImage
.gifimage/gifImage
.webpimage/webpImage
.avifimage/avifImage
.svgimage/svg+xmlImage
.icoimage/vnd.microsoft.iconImage
.heicimage/heicImage
.heifimage/heifImage
.bmpimage/bmpImage
.tifimage/tiffImage
.tiffimage/tiffImage
.jxlimage/jxlImage
.psdimage/vnd.adobe.photoshopImage
.mp3audio/mpegAudio
.wavaudio/wavAudio
.oggaudio/oggAudio
.ogaaudio/oggAudio
.opusaudio/oggAudio
.aacaudio/aacAudio
.flacaudio/flacAudio
.m4aaudio/mp4Audio
.webaaudio/webmAudio
.midaudio/midiAudio
.midiaudio/midiAudio
.mp4video/mp4Video
.webmvideo/webmVideo
.movvideo/quicktimeVideo
.mkvvideo/x-matroskaVideo
.avivideo/x-msvideoVideo
.mpegvideo/mpegVideo
.mpgvideo/mpegVideo
.ogvvideo/oggVideo
.3gpvideo/3gppVideo
.tsvideo/mp2tVideo
.flvvideo/x-flvVideo
.wmvvideo/x-ms-wmvVideo
.pdfapplication/pdfDocument
.docapplication/mswordDocument
.docxapplication/vnd.openxmlformats-officedocument.wordprocessingml.documentDocument
.xlsapplication/vnd.ms-excelDocument
.xlsxapplication/vnd.openxmlformats-officedocument.spreadsheetml.sheetDocument
.pptapplication/vnd.ms-powerpointDocument
.pptxapplication/vnd.openxmlformats-officedocument.presentationml.presentationDocument
.odtapplication/vnd.oasis.opendocument.textDocument
.odsapplication/vnd.oasis.opendocument.spreadsheetDocument
.odpapplication/vnd.oasis.opendocument.presentationDocument
.rtfapplication/rtfDocument
.epubapplication/epub+zipDocument
.psapplication/postscriptDocument
.epsapplication/postscriptDocument
.emlmessage/rfc822Document
.jsonapplication/jsonData
.jsonldapplication/ld+jsonData
.geojsonapplication/geo+jsonData
.webmanifestapplication/manifest+jsonData
.ndjsonapplication/x-ndjsonData
.xmlapplication/xmlData
.rssapplication/rss+xmlData
.atomapplication/atom+xmlData
.yamlapplication/yamlData
.ymlapplication/yamlData
.tomlapplication/tomlData
.sqlapplication/sqlData
.zipapplication/zipArchive
.tarapplication/x-tarArchive
.gzapplication/gzipArchive
.tgzapplication/gzipArchive
.bz2application/x-bzip2Archive
.xzapplication/x-xzArchive
.zstapplication/zstdArchive
.7zapplication/x-7z-compressedArchive
.rarapplication/vnd.rarArchive
.jarapplication/java-archiveArchive
.apkapplication/vnd.android.package-archiveArchive
.dmgapplication/x-apple-diskimageArchive
.isoapplication/x-iso9660-imageArchive
.wofffont/woffFont
.woff2font/woff2Font
.ttffont/ttfFont
.otffont/otfFont
.eotapplication/vnd.ms-fontobjectFont
.binapplication/octet-streamBinary
.wasmapplication/wasmBinary
.exeapplication/vnd.microsoft.portable-executableBinary
.dllapplication/vnd.microsoft.portable-executableBinary
.torrentapplication/x-bittorrentBinary
.shtmltext/htmlText
.jsxtext/jsxText
.lesstext/lessText
.scsstext/x-scssText
.sasstext/x-sassText
.coffeetext/coffeescriptText
.javatext/x-java-sourceText
.ctext/x-cText
.htext/x-cText
.cpptext/x-cText
.cctext/x-cText
.hpptext/x-cText
.phpapplication/x-httpd-phpText
.shapplication/x-shText
.plapplication/x-perlText
.appcachetext/cache-manifestText
.srtapplication/x-subripText
.ttltext/turtleText
.n3text/n3Text
.opmltext/x-opmlText
.rtxtext/richtextText
.sgmltext/sgmlText
.jpeimage/jpegImage
.jfifimage/jpegImage
.svgzimage/svg+xmlImage
.curimage/x-iconImage
.jp2image/jp2Image
.jpximage/jpxImage
.heicsimage/heic-sequenceImage
.heifsimage/heif-sequenceImage
.tgaimage/x-tgaImage
.pcximage/x-pcxImage
.xcfimage/x-xcfImage
.ktximage/ktxImage
.ktx2image/ktx2Image
.ddsimage/vnd.ms-ddsImage
.wbmpimage/vnd.wap.wbmpImage
.djvuimage/vnd.djvuImage
.djvimage/vnd.djvuImage
.emfimage/emfImage
.wmfimage/wmfImage
.dngimage/x-adobe-dngImage
.cr2image/x-canon-cr2Image
.nefimage/x-nikon-nefImage
.aiapplication/postscriptImage
.aifaudio/x-aiffAudio
.aiffaudio/x-aiffAudio
.aifcaudio/x-aiffAudio
.cafaudio/x-cafAudio
.amraudio/amrAudio
.mkaaudio/x-matroskaAudio
.wmaaudio/x-ms-wmaAudio
.auaudio/basicAudio
.sndaudio/basicAudio
.mp2audio/mpegAudio
.mpgaaudio/mpegAudio
.spxaudio/oggAudio
.m3uaudio/x-mpegurlAudio
.plsaudio/x-scplsAudio
.raaudio/x-pn-realaudioAudio
.ramaudio/x-pn-realaudioAudio
.m4vvideo/x-m4vVideo
.mpevideo/mpegVideo
.m2tsvideo/mp2tVideo
.mtsvideo/mp2tVideo
.3g2video/3gpp2Video
.f4vvideo/x-f4vVideo
.asfvideo/x-ms-asfVideo
.qtvideo/quicktimeVideo
.h264video/h264Video
.m3u8application/vnd.apple.mpegurlVideo
.mpdapplication/dash+xmlVideo
.docmapplication/vnd.ms-word.document.macroEnabled.12Document
.dotxapplication/vnd.openxmlformats-officedocument.wordprocessingml.templateDocument
.xlsmapplication/vnd.ms-excel.sheet.macroEnabled.12Document
.xlsbapplication/vnd.ms-excel.sheet.binary.macroEnabled.12Document
.xltxapplication/vnd.openxmlformats-officedocument.spreadsheetml.templateDocument
.pptmapplication/vnd.ms-powerpoint.presentation.macroEnabled.12Document
.ppsxapplication/vnd.openxmlformats-officedocument.presentationml.slideshowDocument
.potxapplication/vnd.openxmlformats-officedocument.presentationml.templateDocument
.odgapplication/vnd.oasis.opendocument.graphicsDocument
.odfapplication/vnd.oasis.opendocument.formulaDocument
.odbapplication/vnd.oasis.opendocument.databaseDocument
.ottapplication/vnd.oasis.opendocument.text-templateDocument
.pagesapplication/vnd.apple.pagesDocument
.numbersapplication/vnd.apple.numbersDocument
.keyapplication/vnd.apple.keynoteDocument
.xpsapplication/vnd.ms-xpsdocumentDocument
.oxpsapplication/oxpsDocument
.mobiapplication/x-mobipocket-ebookDocument
.azwapplication/vnd.amazon.ebookDocument
.cbzapplication/vnd.comicbook+zipDocument
.cbrapplication/vnd.comicbook-rarDocument
.texapplication/x-texDocument
.latexapplication/x-latexDocument
.msgapplication/vnd.ms-outlookDocument
.mboxapplication/mboxDocument
.vsdapplication/vnd.visioDocument
.pubapplication/x-mspublisherDocument
.oneapplication/onenoteDocument
.wpdapplication/vnd.wordperfectDocument
.mapapplication/jsonData
.xsdapplication/xmlData
.xslapplication/xmlData
.xsltapplication/xslt+xmlData
.dtdapplication/xml-dtdData
.wsdlapplication/wsdl+xmlData
.rdfapplication/rdf+xmlData
.xspfapplication/xspf+xmlData
.xlfapplication/x-xliff+xmlData
.gpxapplication/gpx+xmlData
.kmlapplication/vnd.google-earth.kml+xmlData
.kmzapplication/vnd.google-earth.kmzData
.ntapplication/n-triplesData
.cborapplication/cborData
.parquetapplication/vnd.apache.parquetData
.sqliteapplication/vnd.sqlite3Data
.sqlite3application/vnd.sqlite3Data
.mdbapplication/x-msaccessData
.pacapplication/x-ns-proxy-autoconfigData
.bzapplication/x-bzipArchive
.lzapplication/x-lzipArchive
.lzmaapplication/x-lzmaArchive
.zapplication/x-compressArchive
.cabapplication/vnd.ms-cab-compressedArchive
.debapplication/vnd.debian.binary-packageArchive
.rpmapplication/x-rpmArchive
.xpiapplication/x-xpinstallArchive
.crxapplication/x-chrome-extensionArchive
.warapplication/java-archiveArchive
.earapplication/java-archiveArchive
.msiapplication/x-msdownloadArchive
.ttcfont/collectionFont
.otcfont/collectionFont
.pfbapplication/x-font-type1Font
.classapplication/java-vmBinary
.swfapplication/x-shockwave-flashBinary
.glbmodel/gltf-binary3D and CAD
.gltfmodel/gltf+json3D and CAD
.objmodel/obj3D and CAD
.stlmodel/stl3D and CAD
.3mfmodel/3mf3D and CAD
.usdzmodel/vnd.usdz+zip3D and CAD
.daemodel/vnd.collada+xml3D and CAD
.stepmodel/step3D and CAD
.stpmodel/step3D and CAD
.igesmodel/iges3D and CAD
.igsmodel/iges3D and CAD
.dwgimage/vnd.dwg3D and CAD
.dxfimage/vnd.dxf3D and CAD
.pemapplication/x-pem-fileSecurity
.cerapplication/pkix-certSecurity
.crtapplication/x-x509-ca-certSecurity
.derapplication/x-x509-ca-certSecurity
.p12application/x-pkcs12Security
.pfxapplication/x-pkcs12Security
.csrapplication/pkcs10Security
.p7bapplication/x-pkcs7-certificatesSecurity
.sigapplication/pgp-signatureSecurity
.ascapplication/pgp-signatureSecurity
.gpgapplication/pgp-encryptedSecurity
.pgpapplication/pgp-encryptedSecurity

How to use

01

Search or filter the list

Type an extension such as .webp or part of a MIME type such as image/ in the search box, or press a group such as Font or Security. The counter shows how many rows match.

02

Or drop files to check them

Drop up to 50 files on the checker, or click it to browse. Only the first 4 KB of each is read. You get the detected type, how it was identified and a warning if the extension disagrees.

03

Copy or export

Press Copy next to a type, nginx or Apache for a ready config line, or Copy header in the checker. Download the current group as JSON, CSV, nginx types or Apache AddType.

Why MIME Type Lookup

Common MIME types quick reference

These are the types most web projects need. The full searchable list below the checker has the rest.

Types are case-insensitive but almost always written in lowercase. Parameters follow a semicolon, as in text/html; charset=utf-8. Newer image formats such as AVIF and JPEG XL can be missing from older server type lists, so check them first when images download instead of displaying. The same applies to .webmanifest and .wasm files, which some servers still send as generic binary data.

ExtensionMIME type
.htmltext/html
.csstext/css
.js, .mjstext/javascript
.jsonapplication/json
.xmlapplication/xml
.txttext/plain
.csvtext/csv
.pdfapplication/pdf
.zipapplication/zip
.jpg, .jpegimage/jpeg
.pngimage/png
.gifimage/gif
.webpimage/webp
.avifimage/avif
.svgimage/svg+xml
.icoimage/vnd.microsoft.icon
.mp4video/mp4
.webmvideo/webm
.mp3audio/mpeg
.woff2font/woff2

Setting Content-Type correctly

A wrong Content-Type can stop a stylesheet or script from loading, make a download open as text, or let a browser guess the type in unsafe ways. Most web servers pick the type from the file extension, so problems usually come from an extension missing from the server's list.

  • nginx reads types from its mime.types file. Add missing ones in a types block, for example image/avif avif;. The nginx types download builds that block for you.
  • Apache uses the AddType directive, for example AddType image/webp .webp in the config or an .htaccess file.
  • Add a charset to text types, such as text/html; charset=utf-8, so browsers do not have to guess the encoding.
  • Send X-Content-Type-Options: nosniff so browsers trust your type instead of sniffing. With it, scripts and stylesheets served with the wrong type are blocked.
  • For JSON APIs, send application/json. Avoid text/json, which was never a registered type.

Common questions

What is a MIME type?
A MIME type is a label in the form type/subtype, such as text/html or image/png, that tells software what kind of data a file holds. Servers send it in the Content-Type header, and browsers use it to decide whether to display, play or download the file.
How does the MIME type checker detect a file's real type?
Most binary formats start with a fixed signature, such as the bytes 89 50 4E 47 for PNG or %PDF- for PDF. The checker compares the first bytes against a list of these. Text formats have no signature, so it looks at how the text begins, such as <svg or <!DOCTYPE html. Formats built on ZIP, like .docx and .xlsx, share one signature, so the extension decides between them.
Why does my browser report a different MIME type than the checker?
The browser's value comes from the file extension, not the file's content. If a file was renamed, for example a JPEG saved as .png, the two disagree and the checker shows a warning.
Why does .js map to text/javascript instead of application/javascript?
RFC 9239 made text/javascript the standard type for JavaScript, and application/javascript is now considered obsolete. Browsers accept both, but new server configs should use text/javascript.
Is application/octet-stream a safe default for unknown files?
It is the correct label for arbitrary binary data, and browsers respond by downloading the file rather than showing it. Use it only when you do not know the type, never for images, PDFs or anything you want displayed inline.
What is the correct MIME type for .ico favicon files?
The registered type is image/vnd.microsoft.icon, which is what this list shows. Many servers send image/x-icon instead, and browsers accept either one.
Why is .ts listed as video/mp2t instead of TypeScript?
The .ts extension is also used for MPEG transport stream video, and that is the registered mapping in most server type lists. That is why a misconfigured server can send TypeScript files as video. Set the type explicitly if you serve TypeScript source.
Which MIME types should an upload form allow?
Allow only the types you actually need, and check the file's content signature on the server rather than trusting the extension or the Content-Type the browser sends. Be careful with SVG and HTML, which can contain scripts.
Does the MIME type checker upload my file?
No. The browser reads the first 4 KB of each file on your device and the check runs there. Nothing is sent to a server.
How do I add a MIME type to nginx or Apache from this list?
Press nginx on the row to copy a line such as image/avif avif; for a types block, or Apache to copy AddType image/avif .avif for your config or .htaccess file. To add many at once, download the nginx types or Apache AddType file for the group you need.

More Developer tools

View all