image/png

PNG is the go-to raster format for screenshots, UI assets, and graphics that need sharp edges or transparent backgrounds.

image
Usually already encoded

Content-Type header

Content-Type: image/png
Common extensions

How teams usually encounter it

This page maps the media type to the file extensions and delivery behaviors developers usually care about: browser parsing, upload validation, cache correctness, and asset handling.

Compression signal

image/png is usually already compressed or stored in a binary-heavy format, so extra transfer compression tends to help less.

Server config snippets

Use these when a server is missing the right extension-to-MIME mapping or you want the expected header to survive a proxy, CDN, or custom asset bucket setup.

Nginx
types {
  image/png png;
}
Apache
AddType image/png .png

Magic bytes / file signature

When you need to validate uploads or investigate a mislabeled file, the signature often starts with 89 50 4E 47 0D 0A 1A 0A.

Operational shortcut

If a browser downloads this asset instead of rendering it correctly, check the response header first, then verify the extension mapping on your origin and edge cache. .png is the fastest sanity check for teammates reviewing the file outside the app.

Related image types