What is a PNG file?
PNG keeps every pixel and can store transparency. That makes it the working format for logos, screenshots and anything you plan to edit again.
- Lossless compression keeps every pixel
- Alpha channel for real transparency
- Best for logos, screenshots and cut-outs
PNG is lossless, so the files are larger than JPG or WebP. Use it for editing and transparency, not for shrinking a photo.
Why PNG stays sharp
PNG compresses image data without discarding it. Lines stay crisp, text stays readable and colours do not develop the halos that heavy JPG compression creates. That is why screenshots, interface graphics and illustrations are almost always PNG.
The other advantage is the alpha channel: each pixel can say how transparent it is. A logo saved as PNG can sit on any background without a white rectangle around it. The cost is file size — photographs in PNG can be many times larger than the same photo in JPG.
PNG was created in the mid-1990s as a response to GIF’s colour limit and patent concerns. It compresses image data without discarding any of it, using a general-purpose algorithm called DEFLATE. Before compression, the encoder can apply one of five filters to each row, choosing whichever makes neighbouring bytes most predictable. A photograph with gentle gradients benefits a lot from this step; a noisy image benefits very little. That difference explains why two PNGs of identical dimensions can have wildly different file sizes.
The format defines several colour types: greyscale, truecolour, indexed palette, greyscale with alpha, and truecolour with alpha. Indexed PNGs store a palette of up to 256 colours and are ideal for simple icons and diagrams. Truecolour with an alpha channel is what designers usually mean by a transparent PNG. Sixteen-bit per channel variants exist for professional imaging, though browsers and phone screens generally display only eight bits, so the extra precision is wasted on the web.
Transparency in PNG is continuous rather than on-or-off. Each pixel carries an alpha value from zero to 255, which allows soft anti-aliased edges to blend into any background without a white halo. This is the main reason logos and cut-outs are saved as PNG. GIF can only make a pixel fully transparent or fully opaque, so a GIF cut-out placed on a dark background often shows a bright fringe left over from its original white background.
PNG has no native animation in its original specification, though APNG extends it with frames and is supported by current browsers. For photographs, PNG is usually the wrong choice: because nothing is thrown away, a photo can be several times the size of a comparable JPG with no visible quality gain. Use it for screenshots, interface graphics, line art, text and anything that will be edited again. Use JPG or WebP for photographic delivery.
One practical detail helps when troubleshooting. Some tools call an image a PNG based only on its file extension, while others inspect the actual bytes. Renaming a JPG to .png does not convert it, and browsers will usually still decode it as JPG. Conversely, a genuinely transparent PNG opened in an editor that flattens alpha will look like it has a white background even though the file itself is unchanged. Check the file in a browser or a dedicated image viewer before assuming the transparency is gone.
PNG at a glance
| Extension | .png |
|---|---|
| Standard | ISO/IEC 15948, published 2004 |
| Colour depth | 8 or 16 bits per channel |
| Colour types | Greyscale, RGB, palette, grey+alpha, RGBA |
| Compression | Lossless DEFLATE with row filters |
| Transparency | Full 8/16-bit alpha channel |
| Interlacing | Optional Adam7 pass structure |
| Animation | APNG extension only |
Where it works
Support changes between releases. The practical answer is always to convert when a tool refuses the file.
| Web browsers | Universal, all current versions |
|---|---|
| Design and photo editors | Read and write everywhere |
| Email and chat apps | Widely accepted, larger files may be downscaled |
| Print workflows | Accepted, though TIFF is preferred |
| Photographic delivery | Works but produces unnecessarily large files |
| Transparent cut-outs | The safest choice across tools |
When to use PNG
- 01
Graphics and text
Flat colours and sharp edges benefit most from lossless compression.
- 02
Transparent backgrounds
Use PNG when the image must sit on top of another colour or photo.
- 03
Before editing
Keep a PNG master and export to JPG or WebP only when publishing.
Common questions
What is a transparent PNG?+
A PNG whose pixels carry alpha values, so part of the image lets the background show through.
Why is my PNG so large?+
PNG does not discard pixel data. Converting to WebP or JPG will make it smaller, at a cost.
Can I crop a PNG without losing transparency?+
Yes. The crop tool on this site keeps the alpha channel when exporting a transparent PNG.
Should I use PNG for photos?+
Usually no. JPG or WebP will be far smaller with little visible difference.
What is a PNG file used for?+
Logos, screenshots, icons and cut-outs: images with sharp edges or transparency that need to survive repeated editing without further quality loss.