MIME Type Lookup

Find the MIME type for any file extension, and check what a file really is from its contents, on your device.

Runs in your browser. Nothing is uploaded.

Check what a file really is

Text and documents

ExtensionMIME typeWhat it is
.html, .htmtext/htmlHTML page
.csvtext/csvComma-separated values
.tsvtext/tab-separated-valuesTab-separated values
.txt, .text, .logtext/plainPlain text
.md, .markdowntext/markdownMarkdown
.icstext/calendarCalendar (iCalendar)
.vcf, .vcardtext/vcardContact card (vCard)
.rtfapplication/rtfRich Text Format
.pdfapplication/pdfPDF document
.docapplication/mswordWord 97–2003 document
.docxapplication/vnd.openxmlformats-officedocument.wordprocessingml.documentWord document
.xlsapplication/vnd.ms-excelExcel 97–2003 workbook
.xlsxapplication/vnd.openxmlformats-officedocument.spreadsheetml.sheetExcel 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
.emlmessage/rfc822Email message

Code and data

ExtensionMIME typeWhat it is
.csstext/cssCSS stylesheet
.js, .mjs, .cjstext/javascriptJavaScript
.jsonapplication/jsonJSON data
.jsonldapplication/ld+jsonJSON-LD linked data
.webmanifestapplication/manifest+jsonWeb app manifest
.mapapplication/jsonSource map
.xmlapplication/xmlXML document
.xsl, .xsltapplication/xslt+xmlXSLT stylesheet
.rssapplication/rss+xmlRSS feed
.atomapplication/atom+xmlAtom feed
.yaml, .ymlapplication/yamlYAML
.tomlapplication/tomlTOML
.shapplication/x-shShell script
.pytext/x-pythonPython source
.phpapplication/x-httpd-phpPHP source
.sqlapplication/sqlSQL script

Images

ExtensionMIME typeWhat it is
.jpg, .jpeg, .jfifimage/jpegJPEG image
.pngimage/pngPNG image
.apngimage/apngAnimated PNG
.gifimage/gifGIF image
.webpimage/webpWebP image
.avifimage/avifAVIF image
.heicimage/heicHEIC image (iPhone photos)
.heifimage/heifHEIF image
.jxlimage/jxlJPEG XL image
.svgimage/svg+xmlSVG vector image
.icoimage/vnd.microsoft.iconIcon (favicon)
.bmpimage/bmpBitmap image
.tif, .tiffimage/tiffTIFF image
.psdimage/vnd.adobe.photoshopPhotoshop document

Audio

ExtensionMIME typeWhat it is
.mp3audio/mpegMP3 audio
.m4aaudio/mp4AAC / MPEG-4 audio
.aacaudio/aacAAC audio
.wavaudio/wavWAV audio
.ogg, .ogaaudio/oggOgg audio
.opusaudio/opusOpus audio
.flacaudio/flacFLAC lossless audio
.webaaudio/webmWebM audio
.mid, .midiaudio/midiMIDI

Video

ExtensionMIME typeWhat it is
.mp4, .m4vvideo/mp4MP4 video
.webmvideo/webmWebM video
.ogvvideo/oggOgg video
.movvideo/quicktimeQuickTime video
.avivideo/x-msvideoAVI video
.mkvvideo/x-matroskaMatroska video
.mpeg, .mpgvideo/mpegMPEG video
.tsvideo/mp2tMPEG transport stream (video)
.3gpvideo/3gpp3GPP video
.m3u8application/vnd.apple.mpegurlHLS playlist
.vtttext/vttWebVTT subtitles
.srtapplication/x-subripSubRip subtitles

Fonts

ExtensionMIME typeWhat it is
.wofffont/woffWOFF web font
.woff2font/woff2WOFF2 web font
.ttffont/ttfTrueType font
.otffont/otfOpenType font
.eotapplication/vnd.ms-fontobjectEmbedded OpenType (old IE)

Archives

ExtensionMIME typeWhat it is
.zipapplication/zipZIP archive
.gz, .gzipapplication/gzipGzip archive
.tarapplication/x-tarTar archive
.tgzapplication/gzipGzipped tar archive
.bz2application/x-bzip2Bzip2 archive
.xzapplication/x-xzXZ archive
.7zapplication/x-7z-compressed7-Zip archive
.rarapplication/vnd.rarRAR archive
.zstapplication/zstdZstandard archive

Applications

ExtensionMIME typeWhat it is
.wasmapplication/wasmWebAssembly module
.exe, .dllapplication/vnd.microsoft.portable-executableWindows program
.msiapplication/x-msiWindows installer
.dmgapplication/x-apple-diskimagemacOS disk image
.apkapplication/vnd.android.package-archiveAndroid app package
.jarapplication/java-archiveJava archive
.debapplication/vnd.debian.binary-packageDebian package
.isoapplication/x-iso9660-imageDisc image
.sqlite, .dbapplication/vnd.sqlite3SQLite database
.binapplication/octet-streamBinary data (unknown type)
.gltfmodel/gltf+jsonglTF 3D model
.glbmodel/gltf-binaryglTF binary 3D model
.stlmodel/stlSTL 3D model

How to use the MIME Type Lookup

  1. Type a file extension, such as .webp, to see its MIME type.
  2. Type a MIME type, such as application/json, to see which extensions use it.
  3. Search with words like “font” or “video” to see a whole family.
  4. To check a file’s real type, drop it on Check what a file really is. Only its first 4 KB is read, on your device.
  5. Copy the type into your server configuration, Content-Type header or upload settings.

The right label for every file

When a server sends a file, it labels it with a media type, also called a MIME type or content type: text/html for web pages, image/webp for WebP images, application/json for JSON data. Browsers trust that label more than the file name. With the right type, images display, scripts run and downloads start correctly. With the wrong one, a stylesheet can be ignored, a video won’t play or a PDF opens as gibberish.

Look it up

Search by extension, by type or by description. The table covers the formats you meet when building and running websites: web documents and code, images including AVIF, HEIC and JPEG XL, audio, video, subtitles, fonts, archives, office documents, e-books, 3D models and app packages. Types follow the IANA registrations where they exist, and widely used names elsewhere.

Check what a file really is

File names can lie. A “photo.jpg” saved by some apps is really a HEIC or WebP image, a downloaded “invoice.pdf” might be a ZIP, and renamed files confuse upload forms. Drop any file on the checker and it reads the file’s opening bytes to identify the real format. It recognises over 50 signatures, including images, PDFs, office documents, archives, audio, video, fonts, WebAssembly, SQLite and program files, and guesses common text formats such as SVG, HTML and JSON. If the content and the extension disagree, it tells you.

Only the first 4 KB of the file is read, inside your browser. Nothing is uploaded, so it is safe to use with private documents.

For the status line that comes before the Content-Type header, see HTTP Status Codes. To set up icons with the right types, use the Favicon Generator.

Frequently asked questions

What is a MIME type?

A label like image/png or application/pdf that says what kind of data a file contains. Servers send it in the Content-Type header, and browsers use it to decide whether to show, play or download the file.

Why does the wrong type cause problems?

If a server sends CSS or JavaScript with the wrong type, browsers refuse to use it when the nosniff security header is set. Fonts, WebAssembly, video and downloads can also fail or behave oddly.

How does the file check work?

Most file formats begin with a fixed signature, sometimes called a magic number, such as %PDF for PDF files or the PNG header bytes. The tool reads the first 4 KB of the file in your browser and compares it with known signatures, so it can tell when a file’s extension doesn’t match its contents.

What type should unknown files use?

application/octet-stream, which means “binary data”. Browsers download such files instead of trying to open them.

Is my file uploaded?

No. Only the first 4 KB is read, locally, and nothing leaves your device.

Tutorials