Skip to content
1001 Tools
sr
Developer tools

MIME Type Lookup

Search by a file extension (like .png) to find its MIME type, or search by a MIME string (like image/png) to find the extensions that use it. It covers the common types you set as a Content-Type header or an accept filter — images, documents, audio, video, archives, fonts and code. Everything runs in your browser.

49 results

  • .pngimage/png

    Lossless raster image with transparency.

  • .jpgimage/jpeg

    Lossy photo image (also .jpeg).

  • .gifimage/gif

    Indexed image, supports animation.

  • .webpimage/webp

    Modern image format, smaller than JP/PNG.

  • .svgimage/svg+xml

    Vector image described in XML.

  • .avifimage/avif

    AV1-based image, high compression.

  • .icoimage/x-icon

    Icon file used for favicons.

  • .heicimage/heic

    Apple high-efficiency photo format.

  • .pdfapplication/pdf

    Portable Document Format.

  • .docapplication/msword

    Legacy Microsoft Word document.

  • .docxapplication/vnd.openxmlformats-officedocument.wordprocessingml.document

    Microsoft Word (OOXML) document.

  • .xlsapplication/vnd.ms-excel

    Legacy Microsoft Excel spreadsheet.

  • .xlsxapplication/vnd.openxmlformats-officedocument.spreadsheetml.sheet

    Microsoft Excel (OOXML) spreadsheet.

  • .pptapplication/vnd.ms-powerpoint

    Legacy PowerPoint presentation.

  • .pptxapplication/vnd.openxmlformats-officedocument.presentationml.presentation

    PowerPoint (OOXML) presentation.

  • .odtapplication/vnd.oasis.opendocument.text

    OpenDocument text (LibreOffice).

  • .rtfapplication/rtf

    Rich Text Format document.

  • .txttext/plain

    Plain text.

  • .htmltext/html

    HTML web page.

  • .csstext/css

    Cascading Style Sheet.

  • .csvtext/csv

    Comma-separated values.

  • .jstext/javascript

    JavaScript source.

  • .mjstext/javascript

    JavaScript ES module.

  • .jsonapplication/json

    JSON data.

  • .xmlapplication/xml

    XML data (text/xml for readable).

  • .mdtext/markdown

    Markdown text.

  • .yamlapplication/yaml

    YAML data (also .yml).

  • .icstext/calendar

    iCalendar event/calendar.

  • .zipapplication/zip

    ZIP archive.

  • .gzapplication/gzip

    Gzip-compressed file.

  • .tarapplication/x-tar

    Tar archive (uncompressed).

  • .7zapplication/x-7z-compressed

    7-Zip archive.

  • .rarapplication/vnd.rar

    RAR archive.

  • .mp3audio/mpeg

    MP3 audio.

  • .wavaudio/wav

    Uncompressed WAV audio.

  • .oggaudio/ogg

    Ogg audio container.

  • .flacaudio/flac

    Lossless FLAC audio.

  • .m4aaudio/mp4

    AAC audio in an MP4 container.

  • .mp4video/mp4

    MP4 video.

  • .webmvideo/webm

    WebM video for the web.

  • .movvideo/quicktime

    QuickTime video.

  • .avivideo/x-msvideo

    AVI video container.

  • .mkvvideo/x-matroska

    Matroska video container.

  • .woff2font/woff2

    Web font (best compression).

  • .wofffont/woff

    Web Open Font Format.

  • .ttffont/ttf

    TrueType font.

  • .otffont/otf

    OpenType font.

  • .wasmapplication/wasm

    WebAssembly binary.

  • .binapplication/octet-stream

    Arbitrary binary data (default download).

A curated set of common web and office types, not the full IANA registry. Runs in your browser.

How it works

A MIME type (also called a media type or Content-Type) is a two-part label like image/png or application/json: a top-level type (image, text, application, audio, video, font) and a subtype. Servers send it in the Content-Type header so the browser knows how to handle the bytes, and file inputs use it in the accept attribute to filter what a user can pick.

The list here is a curated set of the types you meet most often on the web, not the full IANA registry. Search is loose: it matches the extension with or without the leading dot, the MIME string, and the plain-language description, so “spreadsheet” finds .xlsx and “json” finds application/json. Copy any MIME value with one click.

Practical examples

Setting a download’s Content-Type

Serving a .csv export? Search “csv” to confirm the header should be text/csv so browsers open it as a spreadsheet rather than plain text or a download.

Restricting a file upload

To let users upload only images, set the input’s accept to image/png, image/jpeg, image/webp. Search each extension here to get the exact MIME strings.

Identifying an unknown extension

Handed a .woff2 file? Search it to learn it’s font/woff2 — a web font — so you know to serve it with that Content-Type and a long cache lifetime.

Frequently asked questions

What is a MIME type?

It is a standard label for the kind of data in a file or HTTP response, written as type/subtype — for example text/html or image/jpeg. It tells software how to interpret the bytes, independent of the file’s name.

What is the MIME type for a JPG file?

image/jpeg — for both .jpg and .jpeg. The extension has two spellings but the MIME type is the same single value, which is why the Content-Type matters more than the filename.

Why does the browser sometimes download a file instead of showing it?

Usually because the server sent application/octet-stream (generic binary) or the wrong Content-Type. Set the correct MIME type — for example text/html or application/pdf — and the browser will display it inline instead.

What is application/octet-stream?

It is the catch-all for arbitrary binary data with no more specific type. Servers fall back to it when they can’t identify a file, and it typically triggers a download rather than inline display.

Is the Content-Type the same as the file extension?

They usually correspond, but they are independent. The extension is part of the filename; the MIME type is metadata sent with the content. A file renamed to the wrong extension still has whatever Content-Type the server assigns, and browsers trust the header over the name.

What MIME type should JavaScript use?

text/javascript is the current standard (application/javascript is also accepted). ES modules use the same type; the module behaviour comes from how the script is loaded, not from a different MIME type.

Does .docx have its own MIME type?

Yes, a long one: application/vnd.openxmlformats-officedocument.wordprocessingml.document. The Office Open XML formats all use these vnd.openxmlformats… types, which is why they’re easy to get wrong by hand — copy them from here.

Is this the complete list of MIME types?

No. It is a practical set of the common web and office types. The full authoritative list is the IANA media types registry, which has hundreds of rarely used entries; this tool focuses on the ones developers actually reach for.

Is anything I search sent to a server?

No. The whole table lives in the page and search runs in your browser; your queries are never uploaded and analytics doesn’t receive them.

Related tools