ImageBinary

image/gif

GIF

Reference for image/gif, the animated image format supporting 256 colors, widely used for short animations and reactions.

MIME Type Detector

Drop a file to detect its MIME type — no upload, runs in your browser

📄

Drop any file here or click to choose

Expected extensions: .gif

HTTP Content-Type Header

HTTP Header
Content-Type: image/gif

Associated File Extensions

.gif

Quick Facts

MIME Typeimage/gif
CategoryImage
TypeBinary
Extensions.gif

Common Usage

GIF supports animation and transparency with a palette of up to 256 colors. It is ubiquitous for short animated clips, reaction images, memes, and simple animations on the web.

Despite its limitations, GIF remains popular due to universal browser and platform support.

Code Examples

HTML
<!-- Link or embed with explicit type -->
<link rel="stylesheet" href="file.gif" type="image/gif">

<!-- Or for script/media elements -->
<script type="image/gif" src="file.gif"></script>
Node.js
// Express.js
app.get('/file', (req, res) => {
  res.type('image/gif');
  res.send(data);
});

// Node.js http
res.writeHead(200, { 'Content-Type': 'image/gif' });
nginx
# nginx.conf — add to types block or use default
types {
    image/gif  gif;
}

# Or set for a specific location
location /api/ {
    default_type image/gif;
}

Related MIME Types

More Image MIME Types

Other image types in the Image family

Related Tools

Explore More MIME Types

Browse our complete reference of 185 MIME types with usage examples, HTTP headers, and code snippets.