What Is a PNG File?
PNG is a lossless image format that keeps every pixel and supports transparency. Learn what it is, how it works, and when to use it for graphics.
PNG is the dependable lossless format for logos, screenshots and anything with transparency, storing every pixel exactly. Its quality never degrades, but files are larger than lossy alternatives.
How it works
The short answer
PNG is a lossless image format that keeps every pixel exactly as it was. It supports transparency and sharp edges, which makes it the go to for logos, screenshots and graphics. Its one drawback is file size, since it stores full quality data.
How PNG works
PNG compresses an image without discarding any information, using techniques that shrink files while preserving every pixel. Reopen and resave a PNG as many times as you like and the image never degrades. That makes it a safe working format for editing.
Why PNG is the graphics standard
PNG handles flat colors, sharp text and transparency cleanly, which is why it is ideal for logos, icons, screenshots and interface graphics. JPG struggles with these and has no transparency. For any image with crisp edges or a transparent background, PNG is the default.
When to choose PNG
Choose PNG for logos, screenshots, illustrations and any image that needs transparency or exact detail. Avoid it for large photographs, where the lossless approach creates files much bigger than JPG and the extra size buys nothing visible.
PNG vs JPG
JPG discards detail to shrink photos, so it is far smaller for photographs but unsuitable for text and transparency. PNG keeps every pixel, so it is the right format for graphics. For a photo you only share once, JPG wins on size.
PNG on the web
On the web, WebP lossless offers the same quality and transparency as PNG in a smaller file. If your audience supports it, WebP is the lighter upgrade for PNG graphics, while PNG remains the safe universal fallback.
Format comparison
| Format | Compression | Transparency | Browser support | Best for |
|---|---|---|---|---|
| PNG.png | Lossless (keeps every pixel) | Yes | All browsers and devices | Screenshots, logos, illustrations with sharp edges and transparency |
| JPG.jpg | Lossy (discards some detail) | No | All browsers and devices | Photographs and images with smooth color gradients |
Frequently asked questions
Is PNG lossless?
Yes. PNG preserves every pixel exactly, so it never loses quality when saved, which is why it is a safe format for editing masters.
Does PNG support transparency?
Yes. PNG supports a full alpha channel, which is why it is ideal for logos and icons that sit on any background.
Why is my PNG file so large?
PNG stores every pixel losslessly. Photos and complex images therefore create large files, which is why PNG suits graphics better than big photos.
Is PNG or JPG better for screenshots?
PNG. Screenshots contain sharp text and flat colors that PNG compresses well, while JPG blurs edges and adds artifacts.