PNG Compression to a Target Size

PNG is the format you reach for when every pixel must survive: screenshots that need lettering to stay razor-sharp, logos that need their transparency, diagrams where a single blurred edge ruins the point. It is lossless by design — compression rearranges the data, but the decoded image is bit-for-bit identical to what went in. This page compresses PNG output toward the target you set, 500 KB by default, which accommodates the great majority of screenshots and graphics at full resolution. The sections below also cover the format’s hard boundary, because it has one: lossless cannot trade quality for bytes, and knowing when to switch formats is half of using PNG well.

Drop images here, click to browse, or paste from clipboard (Ctrl+V)

JPEG, PNG or WebP · up to 30 MB per file · up to 5 images at a time · processed locally

What lossless actually promises — and delivers

Lossless compression is a rearrangement, not a reinterpretation. The encoder finds patterns — repeated rows, flat runs, repeated colour values — and stores them more economically, and the decoder reconstructs every pixel exactly as it was. Open the result in any editor and you will find no artifacts, no fringing, no generation of loss. For evidence you care about pinning down — captures of errors, documents, chat logs, anything that may need to be read closely later — that guarantee is worth real bytes.

The trade-off is that the format has no quality dial to turn. File size is dictated by the content’s redundancy: a flat, clean screenshot compresses to almost nothing, while a noisy photograph resists stubbornly because nearly every pixel differs from its neighbours. That is why this page’s approach to PNG is honest about limits rather than pretending every target is reachable — when the best possible lossless encoding still exceeds your budget, the tool says so instead of quietly degrading the image.

The files that belong in PNG

Screenshots are the classic case: text on flat backgrounds compresses beautifully, and the format keeps every character edge crisp no matter how small the lettering. Logos, icons, UI captures, flowcharts, QR codes and anything with a transparent background all belong here too — the alpha channel is preserved exactly, so a logo dropped onto any background later behaves as designed. If an image contains hard edges or text that must be readable, PNG or its modern equivalent is the right family.

Five hundred kilobytes is generous territory for this kind of content. A full-HD screenshot of a document or an application window typically lands well under the default target; only captures of photographs, wallpaper-style imagery or gradient-heavy interfaces push past it. When a file does exceed the budget, the first lever is dimensions — a screenshot cropped to the relevant region, or captured at a smaller window size, shrinks proportionally — because lossless size follows pixel count closely for noisy content.

When PNG cannot get small enough — the honest exit

The moment you point the format at a photograph, its lossless contract becomes a liability. Photographic noise is essentially incompressible, so a camera photo saved as PNG weighs several megabytes, and no amount of searching will fit it under 500 KB — the tool will tell you plainly rather than deliver a broken promise. This is not a defect; it is the price of the guarantee, and it is the same in every lossless encoder ever built.

The exit is a format switch, and the choice is easy once you know what the image needs. If it must keep transparency — a photographic texture behind a logo, say — WebP takes the alpha channel and compresses dramatically better. If it is an ordinary photograph, JPEG fits any reasonable budget with visually transparent quality. The format buttons above make the switch a single click, and the page’s guidance elsewhere covers what each rival format sacrifices. The skill is not loyalty to a format; it is matching the format to the file.

Frequently asked questions

Does PNG compression ever reduce image quality?

Never. The format is lossless by specification: whatever the encoder produces decodes to exactly the original pixels. That also means the tool cannot "try harder" on your behalf — when a PNG cannot fit the target, the honest outcome is a clear failure message, not a slightly worse image. If you need the file smaller, the available levers are reducing dimensions, cleaning up noise, or switching to a lossy format that can trade quality deliberately.

Why is a PNG photo ten times bigger than the JPEG of the same picture?

Because photographs are full of near-random variation — sensor noise, film grain, subtle texture — and lossless encoding must describe every one of those variations exactly, with no rounding allowed. JPEG simply approximates the variation away, and the eye never notices the difference at sensible quality levels. The size gap is the entire reason lossy formats exist for photography, and PNG remains the specialist for graphics, text and transparency instead.

Will my transparent logo stay transparent after compression?

Yes, completely. Transparency in PNG is stored as an alpha channel — actual pixel data — and lossless compression preserves it bit-for-bit along with the colours. Edges between opaque and transparent areas come out exactly as they went in, with none of the haloing a lossy format can introduce around cutouts. Drop the result onto any background and it will composite exactly as the original did.

My screenshot must stay lossless but exceeds 500 KB — what are my options?

Three, in order of preference. Reduce the captured area or resolution — lossless size tracks pixel count closely, so halving dimensions roughly halves the file. Allow a larger target, if the destination accepts it; 500 KB is a default, not a law. Or accept a tiny quality concession with WebP, which handles screenshots and text very well and can fit far tighter budgets. What you cannot do is force a lossless format below its natural size — no tool can, honestly or otherwise.

Should a screenshot with text be PNG or JPEG?

PNG, without hesitation. JPEG’s block-based model blurs hard edges, and text is nothing but hard edges — lettering develops visible ringing and colour fringing at JPEG sizes small enough to matter. PNG keeps glyphs crisp and compresses flat backgrounds efficiently besides. WebP is the strong modern alternative if the destination accepts it; the one case for JPEG is a screenshot of a photograph, which is really a photograph and should be treated as one.