PNG MIME Type

Learn what image/png files are, how PNG stores lossless images and transparency, and how browsers and Poly support them.

MIME type details for image/png

In active use
MIME typeimage/png
Extensions
.png
Magic number89 50 4E 47 0D 0A 1A 0A
First standardized1996
Created byPNG Development Group
Browser supportChrome, Edge, Firefox, Opera, Safari
Example applicationsAdobe Photoshop, Apple Preview
Poly supportYes. Poly recognizes `.png`, decodes the raster image with orientation applied when available, generates lossless WebP thumbnails, and extracts dimensions plus readable EXIF and PNG text metadata.
Indexed by PolyYes. PNGs are indexed by filename, extracted metadata, and a visual embedding. Text visible only in the pixels is not OCR'd.
Preview in PolyYes. PNGs open directly in Poly's image viewer, with generated WebP thumbnails available while browsing.
Poly agentYes. The Poly agent receives a rendered image, normally the largest generated thumbnail up to 1536 pixels, and can reason about its visual content rather than every original chunk.

What does image/png mean?

The image/png media type identifies a Portable Network Graphics datastream. PNG stores raster images with lossless compression, so decoding reconstructs the encoded sample values without the generational damage introduced by a lossy codec. It supports grayscale, indexed-color, and truecolor images, with optional transparency and sample depths from 1 to 16 bits.1

The current registration has no required or optional media-type parameters. Its registered extension is .png, and every PNG datastream begins with these eight bytes:12

89 50 4E 47 0D 0A 1A 0A

That signature is followed by chunks. A conforming stream starts with IHDR, contains one or more IDAT chunks, and ends with IEND. Each chunk carries a type and a cyclic redundancy check, which helps decoders detect damaged data.2

The signature identifies the format, but it does not prove that the whole file is valid or safe to decode. Chunk lengths can be extremely large, dimensions can demand a great deal of memory, and private or future chunks may contain unexpected data. A robust decoder still has to enforce limits and validate the structure.2

How PNG became a web standard

PNG began as a collaborative replacement for GIF. The first proposal, then called Portable Bitmap Format, appeared in January 1995, and the group adopted the PNG name later that month.3 W3C published PNG 1.0 as a Recommendation on October 1, 1996.4

The design emphasized lossless storage, portability, progressive display, integrity checking, and freedom from patent restrictions. Those goals made PNG a natural fit for web graphics, screenshots, diagrams, and images that need transparency.2

The first W3C Recommendation suggested image/x-png as an interim media type because registration was not yet complete.4 That historical spelling may still appear in old systems, but new content should use the registered image/png type.

What PNG preserves

PNG applies a reversible filter to each scanline and then compresses the filtered data with the zlib Deflate method. Filtering changes how the samples are represented for compression, not their decoded values.2

The format can represent five image types:

PNG image typeTransparencyTypical use
GrayscaleOptional single transparent valueMonochrome imagery and masks
Grayscale with alphaFull alpha channelSoft-edged monochrome assets
Indexed colorPer-palette-entry alphaLogos, icons, and compact flat-color art
TruecolorOptional single transparent valueOpaque RGB images
Truecolor with alphaFull alpha channelScreenshots and graphics with smooth transparency

PNG stores alpha separately from color rather than premultiplying the color samples. Fully transparent pixels can therefore retain RGB values that are invisible in an ordinary viewer.2

Visual transparency is not reliable redaction. The PNG specification warns that an editor may hide content by setting alpha to zero without removing the underlying pixel data. PNG can also carry GPS data in an eXIf chunk. Remove hidden pixels and inspect metadata before sharing sensitive images.2

Color-management chunks can describe gamma, chromaticity, sRGB, ICC profiles, wide color gamut, and HDR signaling. Text can appear in tEXt, zTXt, or iTXt chunks. Since ancillary chunks may be ignored by a decoder or stripped by an editor, do not use them as the only copy of critical information.2

How to open an image/png file

Chrome, Edge, Firefox, Opera, and Safari display PNG directly. MDN lists the same browser support for both PNG and APNG.5 Desktop image tools also support it broadly:

  • Adobe Photoshop can export PNG and can preserve 16-bit PNG data in supported workflows.6
  • Apple Preview can open images and export them as PNG.7
  • Most operating-system photo viewers can open a .png without an additional codec.

If a file named .png will not open, verify its first eight bytes rather than trusting the extension. Renaming a JPEG, WebP, or SVG file does not convert its contents.

Support in Poly

Poly provides format-specific support for PNG. It recognizes both the image/png identifier and .png filenames, decodes the image, and creates lossless WebP thumbnails at several sizes. The original PNG can open directly in the image viewer.

During indexing, Poly extracts pixel dimensions and readable EXIF and PNG text tags. It also creates a visual embedding from a generated thumbnail, so PNGs can be found by filename, metadata, visual similarity, and search by color. Words that exist only inside the pixels are not OCR'd, so a screenshot is not searchable by its visible text.

The Poly agent normally receives the largest generated WebP thumbnail whose longest edge is at most 1536 pixels. If processing has not finished, it can fall back to the original image/png bytes when the file is no larger than 4 MiB. This lets the agent reason about the visible image, but it is not a byte-level review of every chunk, original bit depth, or metadata value.

Keep the original PNG when exact samples, 16-bit data, a color profile, or embedded metadata matter. Poly's thumbnails and agent view are rendered derivatives designed for browsing and visual understanding.

PNG, JPEG, WebP, and AVIF

No single image format is best for every job. The useful distinction is what must survive and where the file must work.

FormatCompressionAlpha transparencyGood fit
PNGLosslessYesScreenshots, diagrams, pixel art, and editing intermediates
JPEGLossyNoPhotographs where very broad compatibility matters
WebPLossy or losslessYesModern web delivery with smaller files than many PNG workflows
AVIFLossy or losslessYesHighly compressed web images, HDR, and wide color gamut

MDN recommends PNG when precise reproduction or transparency matters, while noting that WebP and AVIF can compress more efficiently.5 A photograph saved as PNG can be much larger than a visually similar lossy JPEG, WebP, or AVIF. Conversely, JPEG can create ringing and block artifacts around text, UI elements, and hard edges.

Conversion should follow the intended use:

  • Convert PNG to JPEG for a smaller photographic copy when transparency and exact pixels are unnecessary. Composite transparency onto an explicit background first.
  • Convert PNG to WebP or AVIF for web delivery, then compare the decoded result and keep a fallback if your audience requires it.
  • Convert a lossy source to PNG to avoid further loss during later saves. The conversion does not restore information already discarded by the source codec.
  • Keep PNG for a lossless screenshot, diagram, texture, or image that needs widely supported alpha transparency.

Is APNG the same as PNG?

Animated PNG is an extension of PNG that adds acTL, fcTL, and fdAT chunks. It remains backward compatible: a decoder that does not understand animation can ignore those ancillary chunks and display the static image.2

The current specification registers animated content as image/apng, normally with the .apng extension. Older animated files are also commonly stored as .png, and browsers support that practice.25 The two types share the PNG signature, so detecting animation requires parsing the chunks rather than checking only the first eight bytes.

Poly does not currently define a separate image/apng type or infer .apng filenames. A file using the ordinary .png extension can enter the PNG pipeline, but Poly's thumbnails, visual embedding, and agent view represent a static rendered image rather than the complete animation.

Footnotes

  1. Internet Assigned Numbers Authority. image/png Media Type Registration. 2
  2. World Wide Web Consortium. Portable Network Graphics (PNG) Specification, Third Edition. W3C Recommendation, June 24, 2025. 2 3 4 5 6 7 8 9 10
  3. PNG Development Group. History of PNG.
  4. World Wide Web Consortium. PNG Specification 1.0: Miscellaneous Topics. W3C Recommendation, October 1, 1996. 2
  5. MDN Web Docs. Image File Type and Format Guide. 2 3
  6. Adobe. Photoshop File Formats Overview.
  7. Apple. Remove a Background or Extract an Image in Preview on Mac.
© Poly Corp. 2026