Category: Image

image/png

image/png is the standard raster graphics format supporting lossless data compression and full 8-bit alpha transparency.

MIME / CONTENT-TYPE

image/png

ASSOCIATED EXTENSIONS

.png

PRIMARY CATEGORY

Image

HTTP Headers & Web Server Configurations

Standard HTTP Response Header
Content-Type: image/png

Send this exact header in HTTP responses to instruct browsers how to decode and render the payload.

Node.js / Express / Web API
res.setHeader("Content-Type", "image/png"); fs.createReadStream("logo.png").pipe(res);
NGINX Configuration (mime.types)
types { image/png png; }
Apache (.htaccess / httpd.conf)
AddType image/png .png

Security Advisory & Hardening

PNG files have magic bytes: `89 50 4E 47 0D 0A 1A 0A`. Validate these magic numbers during file upload verification rather than trusting user-submitted extensions.

Frequently Asked Questions

image/png Questions & Answers

Common questions regarding MIME types, Content-Type headers, and web server configurations.

The standard HTTP response header is: "Content-Type: image/png".