Developer

MIME types

Find the MIME type for an extension, and vice versa.

  • Instant
  • Free
  • Private (processed locally)
  • No sign-up
ExtensionMIME typeFamily
.png image/png Images
.jpg image/jpeg Images
.jpeg image/jpeg Images
.gif image/gif Images
.webp image/webp Images
.svg image/svg+xml Images
.bmp image/bmp Images
.ico image/x-icon Images
.avif image/avif Images
.tiff image/tiff Images
.pdf application/pdf Documents
.doc application/msword Documents
.docx application/vnd.openxmlformats-officedocument.wordprocessingml.document Documents
.xls application/vnd.ms-excel Documents
.xlsx application/vnd.openxmlformats-officedocument.spreadsheetml.sheet Documents
.ppt application/vnd.ms-powerpoint Documents
.pptx application/vnd.openxmlformats-officedocument.presentationml.presentation Documents
.odt application/vnd.oasis.opendocument.text Documents
.rtf application/rtf Documents
.txt text/plain Documents
.csv text/csv Documents
.mp3 audio/mpeg Audio
.wav audio/wav Audio
.ogg audio/ogg Audio
.flac audio/flac Audio
.aac audio/aac Audio
.m4a audio/mp4 Audio
.weba audio/webm Audio
.mp4 video/mp4 Video
.webm video/webm Video
.avi video/x-msvideo Video
.mov video/quicktime Video
.mkv video/x-matroska Video
.mpeg video/mpeg Video
.zip application/zip Archives
.rar application/vnd.rar Archives
.7z application/x-7z-compressed Archives
.tar application/x-tar Archives
.gz application/gzip Archives
.html text/html Web & code
.css text/css Web & code
.js text/javascript Web & code
.mjs text/javascript Web & code
.json application/json Web & code
.xml application/xml Web & code
.wasm application/wasm Web & code
.woff font/woff Fonts
.woff2 font/woff2 Fonts
.ttf font/ttf Fonts
.otf font/otf Fonts
.eot application/vnd.ms-fontobject Fonts

The right Content-Type, in two seconds

Configuring a server, an API or an upload often needs the exact MIME type. This table links extensions and types both ways, with a family filter to find things fast.

  1. Type your search

    An extension (png) or part of a type (image).

  2. Filter by family

    Images, documents, audio, video, archives, web, fonts.

  3. Copy the type

    Paste it into your Content-Type header.

A few common types

ExtensionMIME type
.pngimage/png
.svgimage/svg+xml
.pdfapplication/pdf
.jsonapplication/json
.docxapplication/vnd.openxmlformats-officedocument.wordprocessingml.document

The table works entirely offline in your browser, with no network calls.

Frequently asked questions

What is a MIME type?

A MIME type (or media type) describes the nature of a file as “type/subtype”, for example image/png or application/json. Servers send it in the Content-Type header so the browser knows how to handle the resource.

Why does the right Content-Type matter?

A wrong type can stop an image from showing, a file from downloading, or a script from running. Serving JSON as text/plain, for instance, breaks some APIs. The correct type ensures proper behaviour and security.

What is the difference between .jpg and .jpeg?

None on the MIME side: both extensions map to image/jpeg. They name the same format; .jpg dates from when extensions were limited to three letters on some systems.

Do Office files have complicated types?

Yes, recent formats use long types, like application/vnd.openxmlformats-officedocument.wordprocessingml.document for a .docx. They are ZIP containers; copying the exact type avoids opening errors.