Compress an image to any KB size, in your browser
Drop in a JPG, PNG or WebP and get it back under the file size you need: 50 KB, 100 KB or any target. Everything happens on your device.
Drop an image, or click to choose
JPG, PNG or WebP. Add several to compress them together.
Need several changes to one photo? The Photo editor does crop, text, filters and blur together.
How it works
- Choose your image. The browser decodes it on your device.
- Pick a target size, or a quality level. The tool re-encodes the image on an offscreen canvas, stepping the JPG or WebP quality down until the result fits your target, and reducing the dimensions only if quality alone cannot reach it.
- Download the compressed file. You see the before and after sizes first, so you know exactly what you are saving.
Why hitting an exact KB size takes a search
Two levers decide a photo's file size: its quality (how much detail the encoder keeps) and its dimensions (how many pixels there are). For a fixed set of pixels, lowering the JPG or WebP quality is what brings the size down, but the relationship is not linear, so there is no single quality number that lands on “exactly 50 KB”. This tool runs an automatic search: it encodes the image, measures the result, and narrows in on the highest quality that still fits under your cap, so the file looks as good as a given size allows.
JPG and WebP are lossy, so shrinking them means discarding some detail. PNG is lossless and ignores quality entirely, which is why a PNG photo barely moves. Converting it to JPG or WebP shrinks it far more. Be honest with very small targets: 20 KB forces visible quality loss and is really for strict form caps, while 100 KB usually keeps a normal photo looking clean on screen.
Common size targets
| Target | Typical use | Realistic result for a photo |
|---|---|---|
| 20 KB | Photo-ID and exam-form uploads | Small dimensions, visible softening |
| 50 KB | Online form photo and signature caps | Usable at small sizes |
| 100 KB | Most web and form uploads | Good quality for on-screen use |
| 200 KB | Web pages and blog images | Near-original on screen |
| 500 KB to 1 MB | Email and high-detail web images | Hard to tell from the original |
It runs in your browser, nothing is uploaded
Most popular compressors send your file to their servers to process it, then send the smaller file back. This tool does the whole job in your browser with the Canvas API, so the image never leaves your device. That matters for ID photos, signatures, contracts and anything you would not email to a stranger. It is also faster, with no upload-and-download round trip, and it keeps working offline once the page has loaded.
This tool
Compresses on your device. No upload, no account, no watermark, no file-count limit.
Most online compressors
Upload your file to a server to process it, and often gate batches or quality behind a sign-up.
Popular uses
- Compress image to 20 KB: Get a photo or signature under 20 KB for an upload form.
- Compress image to 50 KB: Get a photo under 50 KB while keeping it clear.
Tips for the smallest file at the best quality
- Convert PNG photos to JPG or WebP before compressing; they shrink far more.
- Crop out dead space first; fewer pixels means less to compress.
- If a target is very small, resize the image to smaller dimensions too, rather than forcing quality to zero.
- Prefer WebP wherever the destination accepts it; it is usually the smallest at a given quality.