ImageBinary
image/jpeg
JPEG
Reference for image/jpeg, the most widely used lossy image format for photographs on the web and in digital cameras.
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: .jpg, .jpeg, .jpe
HTTP Content-Type Header
HTTP Header
Content-Type: image/jpegAssociated File Extensions
.jpg.jpeg.jpe
Quick Facts
| MIME Type | image/jpeg |
| Category | Image |
| Type | Binary |
| Extensions | .jpg, .jpeg, .jpe |
Common Usage
JPEG is the dominant format for photographs and photographic images. It uses lossy compression to achieve small file sizes while maintaining acceptable visual quality.
Used by digital cameras, social media, web pages, email, and virtually every image-handling application.
Code Examples
HTML
<!-- Link or embed with explicit type -->
<link rel="stylesheet" href="file.jpg" type="image/jpeg">
<!-- Or for script/media elements -->
<script type="image/jpeg" src="file.jpg"></script>Node.js
// Express.js
app.get('/file', (req, res) => {
res.type('image/jpeg');
res.send(data);
});
// Node.js http
res.writeHead(200, { 'Content-Type': 'image/jpeg' });nginx
# nginx.conf — add to types block or use default
types {
image/jpeg jpg jpeg jpe;
}
# Or set for a specific location
location /api/ {
default_type image/jpeg;
}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.