Codegrain

Compress image online — free image compressor, no upload

Compress an image online for free — shrink JPG, PNG or WebP by quality or to a target size like under 100 KB, right in your browser. No upload, no registration.

Compression

Files never leave your browserVerify in DevTools

Frequently asked questions

Frequently asked questions

Is my image uploaded to a server?

No. Compression happens entirely in your browser using your device's graphics — your image never leaves your device.

Can you compress a PNG?

Yes, but only a little. PNG is lossless, so re-packing it saves far less than JPEG or WebP — sometimes the result is barely smaller or even larger. For photos, converting to JPEG or WebP compresses much more. A target size set for a PNG may not be reachable; we then give you the smallest version we could make and show its real size.

Why didn't my image reach the target size?

We lower the quality step by step to fit your target, but every image has a floor — at the lowest quality a complex photo can still be larger than a very small target. When that happens we don't fail: we give you the smallest version we could produce and show its actual size, so you can lower the target, allow more compression, or shrink the dimensions.

Which output formats can I choose?

JPEG and PNG work everywhere. WebP is offered when your browser can encode it; if it can't, we tell you instead of silently giving you a different format. "Keep format" re-encodes in the original type when that type supports it. AVIF isn't supported.

Related tools