PNG is the go-to format for logos, icons, screenshots, and any image with a transparent background. It's also famous for producing large files. A single transparent product cutout or full-screen screenshot can easily weigh 2–5MB, which slows down websites, bloats email attachments, and trips upload limits.
The usual advice for shrinking images is "convert it to JPG," but that's exactly the wrong move for a PNG with transparency, because JPG can't store transparent pixels. This guide explains why PNG files get so large, how to compress PNG files while keeping transparency intact, and which method gives you the biggest size reduction for each type of image.
Why PNG Files Are So Large
PNG uses lossless compression. Every pixel is stored exactly as it was, with nothing thrown away. That's why PNGs keep text and sharp edges perfectly crisp, and it's also why they're large. A photo-like image with millions of subtly different colors gives lossless compression very little to work with.
Several factors push PNG file size up:
- Full color depth. A standard 24-bit PNG (32-bit with transparency) can hold over 16 million colors, even if the image only uses a few hundred.
- The alpha channel. Transparency adds a fourth data channel to every pixel.
- Photographic content. PNG compresses flat colors and repeated patterns well, and photographs badly.
- Oversized dimensions. A 4000-pixel-wide PNG displayed at 800 pixels carries roughly 25 times more pixels than needed.
- Embedded metadata. Color profiles, editing software data, and text chunks add weight without affecting how the image looks.
Method 1: Resize the PNG to the Size You Actually Need
Resizing is the most overlooked PNG compression technique and often the most effective. File size scales with pixel count, so halving both the width and height cuts the pixel count to a quarter and reduces the file size dramatically.
Decide the largest size the image will ever be displayed at, then resize to that, or to double that if you want it sharp on high-density Retina screens. A logo shown at 200 pixels wide only needs to be 400 pixels wide. Use the Image Resizer, which keeps the aspect ratio locked by default, or the "Longest Edge" mode to cap the larger dimension in one step. Check the transparent areas after resizing, using the steps near the end of this guide.
Method 2: Reduce Colors (Lossy PNG Compression)
This is where the biggest PNG savings come from. Color quantization reduces the number of unique colors in the image, usually down to 256 or fewer, and stores the image as an indexed-color PNG. Modern quantization keeps the alpha channel, so transparency and soft anti-aliased edges survive.
For logos, icons, illustrations, UI screenshots, and flat graphics, color reduction typically shrinks a PNG by 50–80% with no visible difference. Most of these images only use a small number of colors to begin with.
Color reduction is less suitable for photographs and images with smooth gradients. With only 256 colors available, a gradient sky or soft shadow can show banding, visible steps between shades. Dithering, which scatters pixels of neighboring colors to simulate in-between shades, reduces banding at the cost of slightly larger files.
Color reduction requires a dedicated PNG quantization tool. Whichever one you use, compare the result against the original at 100% zoom and pay attention to gradients, shadows, and the soft edges around a transparent cutout.
Method 3: Re-Encode with Lossless Compression
If you need the PNG to stay pixel-perfect, lossless re-encoding is the safe option. The Image Compressor applies lossless compression to PNG files, so nothing visible changes. Savings are usually more modest than with color reduction, and they depend on how efficiently the original was saved.
Re-encoding also helps with a hidden source of bloat. PNG files can carry embedded color profiles, editing-software tags, timestamps, and text comments. Because the Image Compressor writes a fresh file from the pixel data in your browser, that extra baggage generally isn't carried over. On small graphics like icons, metadata can be a meaningful share of the total file size.
For a folder of icons, screenshots, or product cutouts, the Bulk Compressor processes the whole set at once and packages the results as a ZIP.
Method 4: Convert to WebP and Keep the Transparency
If the image is going on a website, converting PNG to WebP is often the single biggest win. WebP supports full alpha transparency just like PNG, and it compresses far more efficiently. A transparent PNG converted to lossless WebP is commonly around a quarter smaller. Converted to lossy WebP with transparency, it can be dramatically smaller while still looking clean.
All modern browsers support WebP, so it's a safe choice for websites, online stores, and web apps. Use the WebP Converter, or set the Image Compressor's output format to WebP. Either way, keep the original PNG as a master copy for any app or platform that doesn't accept WebP. The full process is in the guide on how to convert images to WebP, and the WebP vs. JPG vs. PNG comparison explains when each format is the right fit.
When to Convert PNG to JPG Instead
Sometimes a PNG simply shouldn't be a PNG. If the image is a photograph with no transparency, such as a product shot on a white background or a screenshot of a photo, JPG will be far smaller at the same visual quality. A 3MB photographic PNG often becomes a 300–500KB JPG with no visible change.
Just remember that converting to JPG fills transparent areas with a solid color and that JPG adds soft artifacts around sharp text. Keep PNG for anything with transparency, text, or crisp edges. The guide on how to convert PNG to JPG covers when it makes sense and what quality setting to use, and the PNG to JPG tool handles the conversion.
Which PNG Compression Method to Use, by Image Type
- Logo or icon with transparency: Resize to display size (or 2×), then reduce colors. Expect 60–80% savings.
- Transparent product cutout: Resize, then convert to WebP for web use. Keep a PNG master. If you need a PNG, use color reduction carefully and check the edges.
- Screenshot of an app or website: Color reduction works very well because screenshots contain lots of flat color. Resize if the screenshot is larger than it will be displayed.
- Illustration or infographic: Reduce colors and check gradients for banding. Add dithering if needed.
- Photograph with no transparency: Convert to JPG or WebP. PNG is the wrong format.
- Image for print: Don't apply lossy compression. Keep the full-quality PNG and only remove metadata if the print shop doesn't need the color profile.
How to Check That Transparency Survived
After compressing, always verify the transparent areas before using the file:
- Open the compressed PNG on a dark background as well as a light one. Problems with soft edges, halos, and fringing show up most clearly against contrasting colors.
- Look closely at anti-aliased edges, such as curved lettering and hair or fur on cutouts. Over-aggressive color reduction can make these edges look jagged or leave a faint colored outline.
- Check drop shadows and glows. Semi-transparent effects use many alpha levels and are the first thing to break.
If you see fringing, go back to the original and use a gentler compression setting. The guide on creating a transparent background PNG explains how transparency works and how to spot common problems.
Why PNG Compression Matters for Your Website
Oversized PNGs are one of the most common reasons websites load slowly. Large hero graphics, uncompressed logos, and full-resolution screenshots all add weight that hurts your Largest Contentful Paint score and your search rankings. The article on why your website is slow explains how images affect Core Web Vitals, and the guide to optimizing images for SEO covers file names, alt text, and the rest of the image SEO checklist.
Compress PNG Files Without Losing Transparency: Summary
Resize first, then choose your compression: color reduction for the biggest savings on graphics, lossless re-encoding when the PNG must stay pixel-perfect, and WebP conversion for anything going on a website. Switch to JPG only for photographs that don't need transparency. Resizing plus the right compression method often cuts PNG file size by more than half while keeping edges crisp and backgrounds transparent. Start with the free Image Compressor, right in your browser with nothing uploaded.