MIME Type Lookup

Look up the MIME type for a file extension, or the reverse — every extension in the mime-db registry is searchable, the common web and media types first.

Showing 66 of 1239Showing 66 of 1239

The common types are listed first. Search to reach the other 1,173 extensions in the registry.

ExtensionMIME typeUsed for
.htmltext/htmlWeb pages — the markup a browser renders.
.htmtext/htmlSame as .html; an older short form of the extension.
.csstext/cssStylesheets that control a page's layout and appearance.
.jstext/javascriptBrowser and Node.js scripts.
.mjstext/javascriptA JavaScript ES module (import/export syntax).
.jsonapplication/jsonStructured data — API responses, config files, package.json.
.xmlapplication/xmlStructured markup used by feeds, SOAP APIs and config formats.
.csvtext/csvSpreadsheet rows exported as plain comma-separated text.
.txttext/plainPlain, unformatted text.
.mdtext/markdownLightweight formatted text — READMEs, docs, notes.
.rtfapplication/rtfFormatted text readable by almost any word processor.
.icstext/calendarA calendar event or invite, importable into Google, Outlook or Apple Calendar.
.vtttext/vttTimed subtitles or captions for a video.
.wasmapplication/wasmCompiled bytecode that runs in the browser at near-native speed.
.pngimage/pngLossless image with transparency — screenshots, logos, UI graphics.
.jpgimage/jpegCompressed photographic image.
.jpegimage/jpegSame format as .jpg; a longer spelling of the extension.
.gifimage/gifA looping animation, or a simple image with a limited color palette.
.svgimage/svg+xmlVector graphics described in XML — scales to any size without blurring.
.webpimage/webpA photo/animation format, usually smaller than JPEG or PNG at similar quality.
.avifimage/avifA newer, highly compressed photo format based on the AV1 video codec.
.bmpimage/bmpUncompressed Windows bitmap image.
.icoimage/vnd.microsoft.iconA website favicon or Windows application icon.
.tiffimage/tiffHigh-quality uncompressed image used in scanning, printing and archiving.
.heicimage/heicApple's photo format (High Efficiency Image Container), used by iPhone cameras.
.pdfapplication/pdfA fixed-layout document that looks the same on any device or printer.
.docapplication/mswordA legacy Microsoft Word document (pre-2007 binary format).
.docxapplication/vnd.openxmlformats-officedocument.wordprocessingml.documentA modern Microsoft Word document.
.xlsapplication/vnd.ms-excelA legacy Microsoft Excel spreadsheet (pre-2007 binary format).
.xlsxapplication/vnd.openxmlformats-officedocument.spreadsheetml.sheetA modern Microsoft Excel spreadsheet.
.pptapplication/vnd.ms-powerpointA legacy Microsoft PowerPoint deck (pre-2007 binary format).
.pptxapplication/vnd.openxmlformats-officedocument.presentationml.presentationA modern Microsoft PowerPoint deck.
.odtapplication/vnd.oasis.opendocument.textA word-processing document from LibreOffice or OpenOffice Writer.
.odsapplication/vnd.oasis.opendocument.spreadsheetA spreadsheet from LibreOffice or OpenOffice Calc.
.odpapplication/vnd.oasis.opendocument.presentationA slide deck from LibreOffice or OpenOffice Impress.
.epubapplication/epub+zipA reflowable e-book that resizes its text to fit the screen.
.mp3audio/mpegThe most widely supported compressed audio format.
.wavaudio/wavUncompressed audio, common in recording and editing before export.
.oggaudio/oggOpen, royalty-free compressed audio (Vorbis).
.ogaaudio/oggThe same Ogg Vorbis audio format as .ogg, under an audio-only extension.
.flacaudio/flacLossless compressed audio — smaller than WAV, no quality lost.
.aacaudio/aacCompressed audio used by iTunes, YouTube and most streaming services.
.webaaudio/webmCompressed audio, typically the audio track pulled out of a WebM video.
.m4aaudio/mp4Audio-only file in an MP4 container, common for iTunes and Apple Music downloads.
.midaudio/midiPlayback instructions for a synthesizer, not recorded sound.
.mp4video/mp4The most widely supported video format for web and mobile playback.
.m4vvideo/mp4Apple's variant of MP4, used for iTunes video downloads and rentals.
.webmvideo/webmOpen, royalty-free video format built for HTML5 video.
.ogvvideo/oggOpen-format video (Theora) — the video counterpart to Ogg audio.
.avivideo/x-msvideoAn older Windows video container, often holding lightly compressed video.
.movvideo/quicktimeApple QuickTime video, the default export from iPhone and Final Cut Pro.
.mkvvideo/x-matroskaAn open container that can hold multiple video, audio and subtitle tracks.
.mpegvideo/mpegOlder MPEG-1/2 video, once standard for DVDs and early digital video.
.tsvideo/mp2tAn MPEG transport stream, used for broadcast video and live-stream segments (HLS).
.zipapplication/zipThe most common general-purpose compressed archive.
.gzapplication/gzipA single file compressed with gzip, often paired with .tar.
.tarapplication/x-tarAn uncompressed bundle of files (a tarball), usually compressed afterward as .tar.gz.
.rarapplication/vnd.rarA proprietary compressed archive created by WinRAR.
.7zapplication/x-7z-compressedA high-compression archive format created by 7-Zip.
.bz2application/x-bzip2A single file compressed with bzip2, which favors compression ratio over speed.
.wofffont/woffCompressed web font format designed for fast page loading.
.woff2font/woff2A smaller, newer successor to WOFF — the default for modern web fonts.
.ttffont/ttfTrueType font, used on both desktop and the web.
.otffont/otfOpenType font, TrueType's successor with support for advanced typography.
.eotapplication/vnd.ms-fontobjectEmbedded OpenType — a legacy web font format for old Internet Explorer.
.binapplication/octet-streamThe fallback type for binary data whose exact format is unknown.

Source: IANA Media Types registry · WHATWG MIME Sniffing Standard · mime-db 1.54.0

What a MIME type is

A MIME type (also called a media type or content type) is a short label like image/png or application/json that tells software what kind of data a file holds. Servers send it in the Content-Type header, browsers use it to decide how to open a response, and APIs rely on it to accept or reject uploads. It has two parts — a top-level type such as text, image, audio, video, application or font, and a subtype such as html, jpeg or pdf. Because the file extension alone is only a hint, knowing the matching MIME type is what lets you set the correct header.

How to use this lookup

The table opens on the common types, each with a line on what it is used for. Type into the search box to filter it live: the search covers every extension in the mime-db registry — the data behind the widely used mime-types package — and lists an extension typed exactly first. Enter an extension like svg to see it maps to image/svg+xml, or paste part of a MIME type like application/ or video/ to list the matching rows — a long list is cut short, with the number of matches said above it. A leading dot is ignored, so .mp4 works the same as mp4, and matching is case-insensitive. Each row has a Copy button that puts the MIME type on your clipboard, ready to drop into a server config, fetch call or upload allow-list.

Frequently asked questions

Why do some different extensions share the same MIME type?

MIME types describe the format of the data, not the exact file name. For example .jpg and .jpeg are both image/jpeg, and .htm and .html are both text/html, because they hold identical kinds of content.

Should I use text/javascript or application/javascript for .js files?

This table lists text/javascript, which the HTML and WHATWG standards now recommend for serving JavaScript. The older application/javascript still works in browsers, but text/javascript is the current preferred value.

Does it cover less common extensions like .psd, .apk or .webmanifest?

Yes. Every extension in the mime-db registry — the data behind the widely used mime-types package — is searchable, so .psd, .apk, .webmanifest, .jsonld and .sql all answer. The page still opens on the common types, each with a line on what it is used for, and says how many more a search reaches. A search puts the extension typed exactly first, and where the registry and a written-up row disagree, the written-up row wins — .wav stays audio/wav.