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

    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.