PNG Compressor
A PNG compressor reduces a PNG's file size mainly through colour quantisation, reducing millions of possible colours to a small, carefully chosen palette while keeping the alpha channel so transparency survives. PNG is lossless by nature, which makes it perfect for logos, icons, screenshots and text but heavy, and quantisation is what delivers large savings on those flat-colour graphics. Photographs saved as PNG compress poorly and almost always belong in JPG instead.
Drop your PNGs here or click to upload
Compress many at once · Transparency preserved · Max ~20 MB each
What Is a PNG Compressor?
A PNG compressor is a tool that reduces the file size of a PNG image while keeping its sharp edges, flat colours and, crucially, its transparency intact. PNG is the format of choice for logos, icons, screenshots, user-interface graphics and anything that needs a transparent background, but those files can be surprisingly large. A PNG compressor shrinks them, often by 60 to 80 per cent, so your graphics load faster and fit within upload limits without the white box or fuzzy edges you would get from saving them as JPG instead.
PNG, which stands for Portable Network Graphics, is fundamentally different from JPG. As described in the W3C PNG specification, it is a lossless format: a standard PNG stores every pixel exactly, with no data thrown away, which is why it keeps text crisp and edges clean where JPG would smear them. That fidelity is also why PNG files are big. A full-colour PNG records up to sixteen million possible colours per pixel even when the image only actually uses a few dozen, which is common for logos and flat graphics.
The key to compressing a PNG is colour quantisation. Instead of storing millions of possible colours, the compressor intelligently reduces the image to a smaller palette, often 256 carefully chosen colours, grouping similar shades together. For graphics, logos and interface elements this produces a file 60 to 80 per cent smaller with no difference most people can see, and the all-important alpha channel that controls transparency is preserved throughout. This tool runs the quantisation entirely in your browser, so your images are never uploaded, and it is used by designers, developers, marketers and anyone shipping graphics to the web who needs them light without losing their transparent backgrounds.
It helps to know that PNG comes in two broad flavours, because compression essentially moves an image from one to the other. A PNG-24, sometimes called truecolour, stores each pixel with full red, green and blue precision plus transparency, which is what makes it heavy. A PNG-8 stores each pixel as a reference to a palette of up to 256 colours, which is far more compact. Quantisation is the process of intelligently converting a bulky PNG-24 into a lean PNG-8 by choosing the palette that best represents the original. For the flat colours and limited palettes of logos, icons and screenshots, that conversion is close to invisible, which is exactly why those images shrink so dramatically. For a photograph, where every pixel really is a slightly different colour, squeezing into 256 shades shows as banding, which is the format telling you the image was never suited to PNG in the first place.
How to Use the PNG Compressor
- Upload your PNG. Drag a .png file onto the tool or click to browse. The image, including its transparent areas, loads entirely within your browser with nothing sent to a server.
- Adjust the quality slider. Move the slider and the file recompresses live. At the top setting the compression is lossless, keeping every colour; lower it and the tool quantises the palette to fewer colours, shrinking the file further. The current colour count is shown as you drag.
- Watch the transparency preview. Both the original and compressed previews sit on a checkerboard so you can confirm transparent areas stay transparent. Quantisation keeps the alpha channel, so backgrounds remain see-through.
- Compare the sizes. Check the before-and-after figures. For logos and flat graphics you will often see a large saving; for photographic PNGs the saving is smaller, which is a sign the image would be better as JPG.
- Download the compressed PNG. Save the smaller file. It is still a standard PNG that opens everywhere and keeps its transparency, and your original on your device is untouched.
Because the slider recompresses live, you can lower the colour count just until the image starts to show banding, then ease back, finding the smallest file that still looks right. For most logos and icons you will be able to go a long way down the palette before any change is visible at all, which is where the largest savings come from.
Why Use This Tool
The first reason is that PNGs are often the quiet weight on a fast-looking site. Designers export logos, icons and UI graphics as PNG for their crisp edges and transparency, but a single full-colour PNG logo can weigh hundreds of kilobytes when a quantised version would be a fraction of that. Across a whole interface, compressing PNGs can strip a large share of page weight, improving the loading time and Core Web Vitals that Google's PageSpeed Insights rewards, without changing how anything looks.
The second reason is keeping transparency that JPG would destroy. The whole point of a PNG logo or icon is that it sits cleanly on any background. Compress it as JPG to save size and the transparent areas turn solid white, ruining it the moment it is placed on a coloured panel. A proper PNG compressor solves the size problem while protecting the alpha channel, so you get a light file that still drops neatly onto any background. This is the single most important difference between compressing a PNG correctly and simply converting it to the wrong format.
The third reason is meeting limits and tidying up exports. Screenshots, design exports and app assets are frequently larger than they need to be, and upload forms, app stores and email systems all impose caps. Quantising a PNG brings it under the limit while keeping it sharp, and the process also strips unnecessary metadata that bloats the file. For photographs that happen to have been saved as PNG, the honest answer is usually to use the JPG compressor instead, since JPG is built for photos, while PNG remains the right home for graphics, text and transparency. Everything here runs in your browser with no account, no watermark and no upload.
Real-World Use Cases
A designer shipping a lighter logo set
A brand designer hands over a logo pack where each transparent PNG is around 400 KB at full colour depth, far heavier than the simple flat-colour marks need to be. She runs them through the compressor, quantising to a palette that covers the brand colours exactly, and each logo drops to under 60 KB with no visible change and its transparency intact. The client's site header loads noticeably faster and the logos still sit cleanly on every coloured section.
A developer trimming a UI icon set
A front-end developer is auditing an app whose interface ships dozens of PNG icons totalling several megabytes. Because icons are flat graphics with few colours, they quantise beautifully: he compresses the whole set and cuts the icon payload by roughly 70 per cent while every icon keeps its crisp edges and transparent background. The app feels snappier on first load, and the change needed no redesign, just smaller files.
A marketer fixing a heavy screenshot
A product marketer is adding annotated screenshots to a help article, but the raw PNG exports are 2 to 3 MB each and the page has become sluggish. Screenshots are mostly flat interface colour, so quantisation shrinks them dramatically; she compresses each to a few hundred kilobytes with the text still perfectly readable. The article loads quickly again, and the screenshots stay sharp where a JPG version would have blurred the text.
A seller meeting a transparent-image requirement
An online seller must upload product images on a transparent background under a strict file-size cap. Their cut-out PNGs are too large, but converting to JPG is not an option because it would fill the transparency with white. Using the PNG compressor, they quantise each image under the cap while the transparent background survives, so the listings show the product cleanly floating on the marketplace's own page colour, exactly as required.
A game developer packing lighter sprite assets
An indie game developer has a folder of PNG sprites and interface elements that bloat the download size of her browser game. Sprites are flat, limited-colour artwork with transparency, which is the ideal case for quantisation. She compresses the set, cutting each sprite by around three quarters while the crisp pixel edges and transparent surrounds stay exact, which matters enormously for game art where a single smudged edge is obvious. The game now downloads faster for players on slow connections, and the visuals are pixel-for-pixel what she drew.
Common Mistakes and Troubleshooting
Saving a photograph as PNG
Problem: The most common and costly mistake is keeping photographs as PNG. Photos contain millions of subtly different colours, which PNG stores faithfully and at great expense, producing files several times larger than an equivalent JPG, and which quantisation cannot shrink much without visible banding. Fix: Use PNG for graphics, logos, screenshots, text and transparency, and use the JPG compressor for photographs. If a PNG barely compresses here, that is a strong signal it is really a photo and belongs in JPG.
Converting to JPG to save size and losing transparency
Problem: People try to shrink a transparent PNG by saving it as JPG, and the transparent areas silently turn solid white, which only becomes obvious once the image is placed on a coloured background. Fix: To keep transparency, stay in PNG and quantise the colours, or convert to WebP, which also supports transparency. Only move to JPG when the image will always sit on a solid background and transparency is genuinely not needed.
Expecting big savings from lossless compression alone
Problem: Lossless PNG optimisation, which keeps every colour, typically only trims 10 to 30 per cent, so people are disappointed when a fully lossless pass barely shrinks the file. Fix: For real reductions, allow colour quantisation by lowering the quality slider below the lossless setting. Reducing a 24-bit image to a well-chosen 256-colour palette is what delivers the 60 to 80 per cent savings, and for flat graphics the result is usually indistinguishable.
Quantising a subtle gradient too far
Problem: Images with smooth gradients, such as a soft drop shadow or a colour fade, can show visible banding if the palette is reduced too aggressively, because there are no longer enough colours to render the gradient smoothly. Fix: For graphics with gradients, keep the quality higher or stay lossless, and watch the preview as you lower the slider. Ease back the moment you see bands appear in the smooth areas.
Forgetting to resize oversized graphics
Problem: Exporting a logo or icon at far higher resolution than it will ever display wastes file size that no amount of compression fully recovers. Fix: Export or resize PNG graphics to the largest size they will actually appear at on screen before compressing. For interface assets, matching the real display dimensions is often a bigger saving than the quantisation itself.
S. Siddiqui
Founder & Editor-in-Chief, YourToolsBase
How a 1.2 MB logo taught me PNG compression is nothing like JPG
When I first optimised the YourToolsBase header, I treated the logo like any other image and ran it through a JPG-style compressor. It came out smaller, but with an ugly white rectangle where the transparent background used to be. I had destroyed the one thing that made it a PNG. My second attempt kept it as PNG but only did lossless optimisation, and a 1.2 MB logo barely dropped to 1.1 MB. Neither approach actually worked.
The thing that finally clicked was colour quantisation. Our logo only used a handful of real colours, yet it was stored as a full 24-bit image capable of millions. Reducing it to a tight palette that covered exactly those colours took it from 1.2 MB to under 80 KB, with no visible change and the transparency completely intact. The difference was not subtle, it was more than a ninety per cent saving from a setting I had not understood mattered.
That is why I built this PNG compressor around quantisation rather than the lossy quality slider used for photos, and why it keeps the alpha channel front and centre. PNG and JPG look similar to a beginner, but compressing them well means doing two completely different things, and getting that wrong either bloats the file or ruins the transparency.
Frequently Asked Questions
How do I compress a PNG without losing quality?
Does compressing a PNG keep transparency?
Why is my PNG file so large?
Is PNG compression lossy or lossless?
When should I use PNG instead of JPG?
How much can a PNG be compressed?
What is colour quantisation?
Does this tool remove metadata from my PNG?
Is this PNG compressor free and private?
Rate This Tool
Was this tool helpful?
Be the first to rate this tool
About the Author
S. Siddiqui is the founder and editor-in-chief of YourToolsBase, overseeing all content, tool accuracy, and editorial standards.
View full profileRelated Tools
Authoritative Sources
Formulas and data in this tool are based on guidelines from the above sources.