ImageBinary
image/png
PNG
Reference for image/png, the lossless image format with transparency support used widely on the web.
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: .png
HTTP Content-Type Header
HTTP Header
Content-Type: image/pngAssociated File Extensions
.png
Quick Facts
| MIME Type | image/png |
| Category | Image |
| Type | Binary |
| Extensions | .png |
Common Usage
PNG provides lossless compression with full alpha transparency support. It is the standard format for screenshots, logos, icons, UI elements, diagrams, and any image where quality preservation or transparency is needed.
PNG files are larger than JPEG for photos but ideal for graphics.
Code Examples
HTML
<!-- Link or embed with explicit type -->
<link rel="stylesheet" href="file.png" type="image/png">
<!-- Or for script/media elements -->
<script type="image/png" src="file.png"></script>Node.js
// Express.js
app.get('/file', (req, res) => {
res.type('image/png');
res.send(data);
});
// Node.js http
res.writeHead(200, { 'Content-Type': 'image/png' });nginx
# nginx.conf — add to types block or use default
types {
image/png png;
}
# Or set for a specific location
location /api/ {
default_type image/png;
}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.