Compress PNG to an exact size
PNG is honest but stubborn: it is a lossless format, so there is no quality slider to turn. The only way a PNG gets smaller is by having fewer pixels. This tool is set to PNG output and shrinks dimensions precisely until the file fits your target — and tells you the final size in pixels, up front.
Drop images here, or
JPG, PNG or WebP · add as many as you like · everything runs locally in your browser, nothing is uploaded
Add an image to begin.
Why PNG files are big
PNG (Portable Network Graphics, standardised as ISO/IEC 15948) stores every pixel's exact value, compressed with the lossless DEFLATE algorithm. That is exactly right for screenshots, logos, diagrams and anything with crisp edges or text — and exactly wrong for photographs, where a 4000×3000 PNG can run past 15 MB because natural detail refuses to compress losslessly. No tool can make a photographic PNG small at full size without throwing information away; any that claims otherwise is quietly converting your file or deleting detail. Here, the trade is explicit: same pixels' values, fewer pixels.
When to stay PNG, when to switch
- Stay PNG for screenshots with text, logos, line art, and images with transparency — and resize to the dimensions the image will actually be shown at.
- Switch to JPG for photographs when a portal demands a small file: at 50 KB, a JPG photo looks like a photo, while a PNG shrunk to fit can end up tiny in pixels.
- Switch to WebP for web graphics: it supports transparency like PNG but also has a lossy mode, so it can meet a KB target without shrinking as far.
The dimension math, in the open
PNG size grows roughly with pixel count. Halving the width and height quarters the pixels and usually cuts the file to about a quarter. The compressor binary-searches the scale factor — 100%, 50%, 75%… — until the encoded PNG lands at or just under your target. That is the whole trick, and for interface screenshots and graphics it works beautifully.