Quick answer
PNG files are large because they use lossless compression, preserving every pixel without quality loss. A 4000x3000 photo at 24-bit color requires about 36MB of raw pixel data. PNG compresses that to 10-15MB, but that is still 5-10x larger than the same image as a JPG at 85% quality (typically 1-3MB).
Why PNG files get so big
Three factors determine PNG file size:
- Resolution: A 4000x3000 image has 12 million pixels. Each pixel stores 3-4 bytes of color data (24-bit RGB or 32-bit RGBA with transparency, as defined in the W3C PNG specification). That is 36-48MB before any compression.
- Color complexity: Photographs have millions of subtle color variations. PNG's lossless algorithm struggles to compress this randomness. Screenshots with flat colors compress much better, often 80-90% smaller than photos at the same resolution.
- Transparency: PNG files with an alpha channel store 4 bytes per pixel instead of 3, adding roughly 33% to the uncompressed data.
PNG uses DEFLATE compression, the same algorithm as ZIP files. It predicts pixel values from their neighbors and stores the differences. This works well for flat graphics but poorly for photographic detail, where neighboring pixels vary unpredictably.
How to reduce PNG file size
1. Resize the image
The fastest way to shrink a PNG. A 4000x3000 photo displayed at 800x600 on a website wastes 96% of its pixels. Resize to your actual display dimensions and the file drops from 10MB to under 500KB.
2. Convert to JPG
If your image is a photo without transparency, JPG is the right format. A 10MB PNG photo becomes 1-2MB as JPG at 85% quality with no visible difference. The tradeoff: JPG uses lossy compression, so each re-save degrades quality slightly.
3. Compress with an optimizer
Image optimizers reduce file size by adjusting quality intelligently. Set a target file size (say, 500KB) and let the optimizer find the right quality setting. For PNG-to-JPG conversion, 85% quality removes 60-80% of the file size with no visible change.
When PNG size does not matter
Keep PNG when file size is less important than quality:
- Source files and archives: Store originals at full quality. Compress copies for sharing.
- Screenshots with text: JPG compression creates visible artifacts around text and UI elements. PNG keeps them crisp.
- Graphics with transparency: JPG does not support transparency at all. PNG or WebP are your options.
- Images you will edit again: Each JPG save loses more data. PNG preserves everything.
Common questions
Is PNG always bigger than JPG?
For photos, yes. A typical photo is 5-10x larger as PNG than JPG. For simple graphics with flat colors (logos, icons, diagrams), PNG can actually be smaller than JPG because JPG's block-based compression creates unnecessary complexity around hard edges.
Does compressing PNG reduce quality?
PNG compression is always lossless. You can re-save a PNG a thousand times and it stays identical. When you "compress" a PNG using an optimizer, you are typically converting it to JPG or WebP (lossy formats) or reducing its dimensions.
What is a good PNG file size for web?
Under 200KB for most web images. Under 50KB for icons and thumbnails. If a PNG exceeds 500KB on a web page, it is worth checking whether JPG or WebP would work instead.
Sources and references
Shrink your PNG now
Resize and compress images in your browser. Set a target file size and download instantly.
Your files never leave your device