Skip to content

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

  1. Choose your image. The browser decodes it on your device.
  2. 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.
  3. 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

TargetTypical useRealistic result for a photo
20 KBPhoto-ID and exam-form uploadsSmall dimensions, visible softening
50 KBOnline form photo and signature capsUsable at small sizes
100 KBMost web and form uploadsGood quality for on-screen use
200 KBWeb pages and blog imagesNear-original on screen
500 KB to 1 MBEmail and high-detail web imagesHard 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

Tips for the smallest file at the best quality

Common questions

How do I compress an image to exactly 100 KB?
Drop the image in, click the 100 KB preset, and download. The tool lowers the quality setting step by step, shrinking dimensions only if needed, until the file is at or just under 100 KB.
Can I compress an image without losing any quality?
Not to a small target. JPG and WebP compression is lossy, so reaching a smaller size means discarding some detail. The loss is usually invisible at 100 KB and up for a normal photo; at 20 to 50 KB it becomes noticeable. PNG is lossless but produces much larger photo files.
Are my images uploaded to a server?
No. Compression runs entirely in your browser using the Canvas API. The file never leaves your device, and nothing is stored.
Which formats can I compress?
JPG/JPEG, PNG and WebP. You can keep the original format or output JPG or WebP, which usually give the smallest files for photos.
Why is my PNG barely getting smaller?
PNG is lossless and best for graphics, logos and screenshots, not photos. For a photo, switch the output to JPG or WebP to get a much smaller file at the same target.
What is the difference between KB and dimensions (pixels)?
KB is the file size on disk; dimensions are the width and height in pixels. A form may limit both. To hit a very small KB cap you often have to reduce dimensions too; use the Resize tool for an exact pixel size.
Can I compress several images at once?
Yes. Drop in multiple files, set one target, and download them together as one zip file. All of them are processed locally in your browser.
Does compressing reduce the image dimensions?
Only if the KB target cannot be met by lowering quality alone. For looser targets the pixel dimensions stay the same.
Is this free, and do I need an account?
Yes, it is free, and there is no sign-up. There is no watermark and no file-count paywall.
Will it work on my phone?
Yes. It runs in any modern mobile or desktop browser, and works offline once the page has loaded.
What is the best size for an email attachment?
Aim for under 1 MB per image so a message with a few photos stays small. Use the 500 KB or 1 MB preset.
Does compression change the image format or strip metadata?
If you choose a different output format it is re-encoded to that format. Re-encoding on canvas also drops most metadata (such as EXIF and GPS), which is usually what you want for privacy.