WebGroundwebground.app
Info & Guides · Web Reference

MIME Types & File Extensions Reference

Look up the correct MIME (media) type for common file extensions across images, audio, video, text, documents, archives, and web fonts.

Showing 52 of 52
  • .jpg, .jpeg
    MIME type
    image/jpeg
    Description
    JPEG photo, lossy compression
  • .png
    MIME type
    image/png
    Description
    PNG image with lossless compression and transparency
  • .gif
    MIME type
    image/gif
    Description
    GIF image, supports simple animation
  • .webp
    MIME type
    image/webp
    Description
    WebP image, lossy or lossless, smaller than JPEG
  • .avif
    MIME type
    image/avif
    Description
    AVIF image based on AV1, very efficient compression
  • .svg
    MIME type
    image/svg+xml
    Description
    SVG scalable vector graphic
  • .ico
    MIME type
    image/vnd.microsoft.icon
    Description
    Icon file, often used for favicons
  • .bmp
    MIME type
    image/bmp
    Description
    Uncompressed bitmap image
  • .tif, .tiff
    MIME type
    image/tiff
    Description
    TIFF image used in print and scanning
  • .heic
    MIME type
    image/heic
    Description
    HEIC photo, the default on recent iPhones
  • .mp3
    MIME type
    audio/mpeg
    Description
    MP3 audio
  • .wav
    MIME type
    audio/wav
    Description
    Uncompressed WAV audio
  • .oga, .ogg, .opus
    MIME type
    audio/ogg
    Description
    Ogg audio (Vorbis or Opus)
  • .aac
    MIME type
    audio/aac
    Description
    AAC audio
  • .flac
    MIME type
    audio/flac
    Description
    FLAC lossless audio
  • .m4a
    MIME type
    audio/mp4
    Description
    MPEG-4 audio, usually AAC
  • .weba
    MIME type
    audio/webm
    Description
    WebM audio
  • .mp4
    MIME type
    video/mp4
    Description
    MPEG-4 video
  • .webm
    MIME type
    video/webm
    Description
    WebM video
  • .ogv
    MIME type
    video/ogg
    Description
    Ogg video
  • .mov
    MIME type
    video/quicktime
    Description
    QuickTime video
  • .avi
    MIME type
    video/x-msvideo
    Description
    AVI video
  • .mkv
    MIME type
    video/x-matroska
    Description
    Matroska video
  • .ts
    MIME type
    video/mp2t
    Description
    MPEG transport stream used for video streaming
  • .html, .htm
    MIME type
    text/html
    Description
    HTML web page
  • .css
    MIME type
    text/css
    Description
    CSS stylesheet
  • .js, .mjs
    MIME type
    text/javascript
    Description
    JavaScript code
  • .csv
    MIME type
    text/csv
    Description
    Comma-separated values table
  • .txt
    MIME type
    text/plain
    Description
    Plain text
  • .md
    MIME type
    text/markdown
    Description
    Markdown text
  • .ics
    MIME type
    text/calendar
    Description
    iCalendar event file
  • .vtt
    MIME type
    text/vtt
    Description
    WebVTT subtitles for HTML video
  • .json
    MIME type
    application/json
    Description
    JSON data
  • .jsonld
    MIME type
    application/ld+json
    Description
    JSON-LD linked data and structured data
  • .xml
    MIME type
    application/xml
    Description
    XML data
  • .pdf
    MIME type
    application/pdf
    Description
    PDF document
  • .wasm
    MIME type
    application/wasm
    Description
    WebAssembly module
  • .bin
    MIME type
    application/octet-stream
    Description
    Generic binary data, triggers a download
  • .docx
    MIME type
    application/vnd.openxmlformats-officedocument.wordprocessingml.document
    Description
    Microsoft Word document
  • .xlsx
    MIME type
    application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
    Description
    Microsoft Excel spreadsheet
  • .pptx
    MIME type
    application/vnd.openxmlformats-officedocument.presentationml.presentation
    Description
    Microsoft PowerPoint presentation
  • .webmanifest
    MIME type
    application/manifest+json
    Description
    Web app manifest for installable sites
  • .epub
    MIME type
    application/epub+zip
    Description
    EPUB e-book
  • .zip
    MIME type
    application/zip
    Description
    ZIP archive
  • .gz
    MIME type
    application/gzip
    Description
    Gzip-compressed file
  • .tar
    MIME type
    application/x-tar
    Description
    Tar archive
  • .7z
    MIME type
    application/x-7z-compressed
    Description
    7-Zip archive
  • .rar
    MIME type
    application/vnd.rar
    Description
    RAR archive
  • .woff
    MIME type
    font/woff
    Description
    WOFF web font
  • .woff2
    MIME type
    font/woff2
    Description
    WOFF2 web font with better compression
  • .ttf
    MIME type
    font/ttf
    Description
    TrueType font
  • .otf
    MIME type
    font/otf
    Description
    OpenType font

What Is a MIME Type?

A MIME type, also called a media type, tells browsers and servers what kind of file they are handling. It has a type and a subtype separated by a slash, such as image/png or application/json.

Web servers send it in the Content-Type header. A wrong value can stop scripts from running, show images as downloads, or block fonts from loading.

Tips for Serving Files

Most servers and CDNs set the type from the file extension automatically, but custom files may need manual configuration.

  • Add ; charset=utf-8 to text types such as text/html and text/css.
  • Use application/octet-stream to force a download for unknown binary data.
  • Send X-Content-Type-Options: nosniff so browsers trust the declared type.

Frequently Asked Questions

Should JavaScript use text/javascript or application/javascript?+

text/javascript is the current standard (RFC 9239). Browsers still accept the older application/javascript.

What MIME type should JSON APIs return?+

application/json. JSON exchanged between systems must be UTF-8, so a charset parameter is unnecessary.

Why do some types start with x-?+

The x- prefix marks types that were never officially registered with IANA. Many are still widely used, such as application/x-tar.

Explore More on WebGround

View all