PNG File Format Explained

Portable Network Graphics · .png

Extension.png
MIME typeimage/png
TypeImages
Developed byPNG Development Group / W3C
First released1996
Royalty-freeYes
CompressionLossless

What is a PNG file?

PNG is a lossless raster image format created in 1996 as a patent-free replacement for GIF. Every pixel is stored exactly, so screenshots, diagrams, logos and text stay crisp no matter how many times the file is saved. It supports 24-bit colour plus an 8-bit alpha channel, which gives smooth, partial transparency that GIF cannot offer.

Compression is based on the same algorithm as ZIP, which works well on flat colours and repeated patterns but poorly on photographs: a photo saved as PNG is often several times larger than the same image as JPG. PNG can store metadata and a colour profile, but not animation; APNG, a separate extension, covers that.

When PNG is the right choice

Strengths

  • Lossless: pixels are preserved exactly through every save
  • Real alpha transparency for logos, icons and overlays
  • Sharp text and lines in screenshots and diagrams

Limitations

  • Photographs become large compared with JPG or WebP
  • No animation in the base format
  • No native support for layers or vector shapes

How to open a PNG file

Every browser, operating system and image editor opens PNG. To check the resolution stored for printing, use the DPI checker; to change it without resampling, the DPI converter.

How to convert a PNG file

PNG to JPG shrinks photos that do not need transparency, PNG to WebP keeps transparency in a smaller file for the web, PNG to PDF makes a document from screenshots, and PNG to ICO produces a Windows icon. PNG to SVG traces simple graphics into vector paths.

Frequently Asked Questions

Is PNG better than JPG?

For screenshots, logos, text and images with transparency, yes. For photographs JPG or WebP give much smaller files with no visible loss at normal quality settings.

Why is my PNG so large?

Because it is lossless: a photo or a gradient-heavy image has little repetition for the compressor to exploit. Convert to JPG or WebP, or reduce the number of colours if the image is a graphic.

Does PNG support animation?

Not in the standard format. Animated PNG (APNG) is supported by most browsers but by fewer editors; GIF, WebP or a short MP4 are more portable choices for animation.

Can I make the background of a PNG transparent?

Yes; PNG supports full alpha transparency. Remove the background in an image editor and save as PNG. Converting to JPG afterwards would fill the transparent area with a solid colour.