MIME Type Lookup by File Extension

Find the Content-Type for any file extension, or the extensions for a MIME type, and copy it with one click.

Search file types

Web and text

Markup, scripts, data formats and plain text.

  • .htmlHTML document
  • .htmHTML document (short extension)
  • .cssCascading Style Sheet
  • .jsJavaScript. The older names application/javascript and application/x-javascript are obsolete (RFC 9239).
  • .mjsJavaScript module
  • .cjsCommonJS JavaScript module
  • .jsonJSON data
  • .jsonldJSON-LD linked data
  • .webmanifestWeb app manifest
  • .xmlXML document. text/xml is also valid and still common.
  • .xhtmlXHTML document
  • .rssRSS feed Not in the IANA registry, but widely used.
  • .atomAtom feed
  • .txtPlain text
  • .csvComma-separated values
  • .tsvTab-separated values
  • .mdMarkdown
  • .markdownMarkdown
  • .yamlYAML. Registered in 2024. Older tools send application/x-yaml or text/yaml.
  • .ymlYAML (short extension)
  • .tomlTOML configuration file
  • .icsiCalendar event or calendar
  • .vcfvCard contact
  • .vttWebVTT subtitles and captions
  • .sqlSQL script
  • .phpPHP script. A server setting, not something to send to browsers: send the output, usually text/html. Not in the IANA registry, but widely used.
  • .pyPython script Not in the IANA registry, but widely used.
  • .shBourne shell script Not in the IANA registry, but widely used.
  • .cshC-shell script Not in the IANA registry, but widely used.
  • .wasmWebAssembly module. Browsers need this exact type to stream-compile it.

Images

Photos, graphics and icons.

  • .jpgJPEG image. image/jpg is a common misspelling and is not a valid type.
  • .jpegJPEG image. image/jpg is a common misspelling and is not a valid type.
  • .pngPortable Network Graphics
  • .gifGraphics Interchange Format
  • .webpWebP image
  • .svgSVG vector image
  • .apngAnimated PNG
  • .avifAVIF image
  • .heicHEIC image, the default photo format on iPhones
  • .heifHEIF image
  • .jxlJPEG XL image
  • .bmpWindows bitmap
  • .icoIcon file. The older name image/x-icon is still widely sent.
  • .tifTagged Image File Format
  • .tiffTagged Image File Format
  • .jp2JPEG 2000 image
  • .psdAdobe Photoshop document

Audio

Music and sound files.

  • .mp3MP3 audio. audio/mp3 is not a valid type.
  • .wavWaveform audio. audio/x-wav and audio/wave are also common. Not in the IANA registry, but widely used.
  • .oggOgg audio (Vorbis or Opus)
  • .ogaOgg audio
  • .opusOpus audio in an Ogg container
  • .flacFLAC lossless audio
  • .m4aMP4 audio (AAC)
  • .aacAAC audio
  • .midMIDI music file. audio/x-midi is also seen. Not in the IANA registry, but widely used.
  • .midiMIDI music file. audio/x-midi is also seen. Not in the IANA registry, but widely used.
  • .webaWebM audio Not in the IANA registry, but widely used.
  • .wmaWindows Media Audio Not in the IANA registry, but widely used.
  • .cdaCD audio track shortcut Not in the IANA registry, but widely used.

Video

Video files and streaming playlists.

  • .mp4MP4 video
  • .m4vApple MP4 video Not in the IANA registry, but widely used.
  • .webmWebM video Not in the IANA registry, but widely used.
  • .movQuickTime movie
  • .aviAVI video (Audio Video Interleave) Not in the IANA registry, but widely used.
  • .mkvMatroska video. The registered name is video/matroska, but video/x-matroska is more common. Not in the IANA registry, but widely used.
  • .wmvWindows Media Video Not in the IANA registry, but widely used.
  • .mpegMPEG video
  • .mpgMPEG video
  • .3gp3GPP mobile video (audio/3gpp if it has no video)
  • .3g23GPP2 mobile video (audio/3gpp2 if it has no video)
  • .ogvOgg video
  • .flvFlash video Not in the IANA registry, but widely used.
  • .m3u8HLS streaming playlist. application/x-mpegURL is also common.
  • .tsMPEG transport stream video. TypeScript source also uses .ts, so check what the file really is.

Documents

Office files, PDFs and e-books.

  • .pdfAdobe Portable Document Format
  • .docMicrosoft Word (legacy)
  • .docxMicrosoft Word
  • .xlsMicrosoft Excel (legacy)
  • .xlsxMicrosoft Excel
  • .pptMicrosoft PowerPoint (legacy)
  • .pptxMicrosoft PowerPoint
  • .odtOpenDocument text
  • .odsOpenDocument spreadsheet
  • .odpOpenDocument presentation
  • .rtfRich Text Format
  • .epubEPUB e-book
  • .azwAmazon Kindle e-book Not in the IANA registry, but widely used.
  • .mobiMobipocket e-book Not in the IANA registry, but widely used.
  • .vsdMicrosoft Visio
  • .abwAbiWord document Not in the IANA registry, but widely used.
  • .psPostScript
  • .epsEncapsulated PostScript

Archives and apps

Compressed archives, installers and generic binaries.

  • .zipZIP archive. Windows may upload it as application/x-zip-compressed.
  • .gzgzip archive. Windows and macOS may upload it as application/x-gzip.
  • .tarTape archive (TAR) Not in the IANA registry, but widely used.
  • .bzBZip archive Not in the IANA registry, but widely used.
  • .bz2BZip2 archive Not in the IANA registry, but widely used.
  • .xzXZ archive Not in the IANA registry, but widely used.
  • .zstZstandard archive
  • .7z7-Zip archive Not in the IANA registry, but widely used.
  • .rarRAR archive. The older name application/x-rar-compressed is still seen.
  • .arcArchive document with several files embedded Not in the IANA registry, but widely used.
  • .cabMicrosoft Cabinet archive
  • .jarJava archive (JAR)
  • .apkAndroid app package Not in the IANA registry, but widely used.
  • .dmgApple disk image Not in the IANA registry, but widely used.
  • .exeWindows program. Servers often send application/x-msdownload or application/octet-stream instead.
  • .isoOptical disc image Not in the IANA registry, but widely used.
  • .debDebian package
  • .mpkgApple installer package
  • .binAny binary data. The generic fallback that makes browsers download the file.
  • .datGeneric binary data file

Fonts

Web and desktop font files.

  • .ttfTrueType font
  • .otfOpenType font
  • .woffWeb Open Font Format
  • .woff2Web Open Font Format 2
  • .eotEmbedded OpenType font (legacy Internet Explorer)

Other

Databases, maps, 3D models, certificates and email.

  • .torrentBitTorrent file Not in the IANA registry, but widely used.
  • .sqliteSQLite database
  • .sqlite3SQLite database
  • .kmlGoogle Earth KML map data
  • .gpxGPS exchange format Not in the IANA registry, but widely used.
  • .geojsonGeoJSON map data
  • .glbglTF 3D model (binary)
  • .gltfglTF 3D model (JSON)
  • .crtX.509 certificate
  • .pemPEM encoded key or certificate Not in the IANA registry, but widely used.
  • .p12PKCS 12 certificate bundle Not in the IANA registry, but widely used.
  • .emlEmail message
  • .ogxOgg container for several kinds of media
  • .xulXUL (obsolete Mozilla interface format)

How to use the MIME type lookup

  1. Type into Search by extension, filename or MIME type: pdf, .png, report.docx or image/webp. A leading dot, a *. wildcard or a whole filename all work.
  2. Press a category button such as Images or Fonts to narrow the list. The line under the buttons says how many file types match.
  3. Press the MIME type itself to copy it. The label changes to Copied.

How MIME types work

A MIME type, also called a media type, has the form type/subtype, such as image/png, and may carry parameters like ; charset=utf-8. Servers send it in the Content-Type header so the browser knows what the bytes are, and email attachments and file uploads carry it too. IANA keeps the media types registry. Types that are common but not in it, such as audio/wav, video/webm and application/x-tar, are marked on their rows. Matching an extension to a type is a convention, since a file name does not guarantee what is inside.

Worked example

On load the box is empty and the line under the buttons reads Showing all 132 file types. Type report.docx and the tool reads the extension, so it shows Showing 1 of 132 file types with the row .docx, application/vnd.openxmlformats-officedocument.wordprocessingml.document and the description Microsoft Word. Type application/javascript instead and you get .js, .mjs and .cjs, because that old name is listed on those rows as obsolete in favor of text/javascript (RFC 9239).

Limits and edge cases

Related tools: the HTTP status code list explains 415 Unsupported Media Type, and the Base64 encoder and decoder builds data URIs that start with a MIME type.

Frequently asked questions

What is application/octet-stream?

It is the generic type for binary data, used when the server does not know what a file is. Most browsers respond by downloading the file instead of showing it.

What is the correct MIME type for JavaScript?

Use text/javascript. RFC 9239 made it the standard and marked application/javascript and application/x-javascript obsolete, although many servers and tools still send the old names.

Is image/jpg a valid MIME type?

No. The registered type for JPEG files is image/jpeg for both .jpg and .jpeg. Browsers often tolerate image/jpg, but validators and strict servers can reject it.

What is the difference between a MIME type and a file extension?

The extension is part of the file name and only hints at the format. The MIME type is sent separately, for example in the Content-Type header, and tells the receiver how to treat the bytes.

What happens if a server sends the wrong Content-Type?

The browser may download a file it should display, render it as plain text, or block it. With nosniff set, a script served as text/plain will not run.

Sources: IANA media types registry, RFC 9239 and the MDN common MIME types list.