Image compressor
Shrink a photo or signature to an exact limit — 20 KB, 50 KB, 10 KB or any size you set. The compressor keeps the best quality that fits, and the files never leave your device.
Compressed images
How target-size compression works
Most compressors give you a quality slider and leave you to guess. This one works backwards from the limit the form gave you:
- Decode once. The file is read at full resolution in your browser. Phone photos are rotated upright using their EXIF orientation before anything else happens.
- Apply your long-edge limit. If you chose 480 px, the longest side is resized to 480 px. Downscaling in steps keeps edges clean.
- Search for quality. The image is encoded several times between 28% and 95% quality. The tool keeps the highest setting whose file is still at or below your target.
- Shrink only if needed. If even 28% quality is too large, the long edge is reduced by about 18% and the search repeats. It stops at 96 px, which is too small for most uses, and tells you instead of pretending the target was met.
What survives and what is removed
The new file contains only pixels: no EXIF camera data, no GPS location, no thumbnails and no editing history. That is good for privacy, but it also means the date the photo was taken is lost. If a form asks for the original capture date, keep a copy of the original file.
JPG cannot store transparency. A logo or signature with a transparent background is placed on white before encoding. Choose WebP if transparency matters, or use the image converter to keep PNG.
Getting the best result at a small size
- Crop first. A tight crop of the face or signature spends the available bytes on what matters.
- Use a plain background. Texture, shadows and gradients cost bytes; a uniform background compresses almost for free.
- Do not upscale. A small source enlarged to 480 px looks soft and compresses badly. Upload the largest original you have and let the tool shrink it.
- Check the form's wording. “20 KB” may mean at most 20 KB, or approximately 20–50 KB. Stay at or below the hard limit.
For the full method, format differences and country-by-country form limits, read the image tools guide.
Questions people ask
Are my images uploaded?
No. Every file is read and re-encoded inside this page using your browser's canvas. Nothing is uploaded, there is no server endpoint, and the files disappear when you close the tab.
How does the compressor hit an exact size like 20 KB?
It re-encodes the image at different quality levels, then shrinks the long edge in small steps if needed, until the file is at or below your target. It keeps the highest quality that still fits.
Why do government forms ask for 20 KB or 50 KB?
Online forms for passports, identity cards, exams and visas often cap the upload size. A common pattern in Pakistan, India and Bangladesh is a photo of about 20–50 KB and a signature of about 10–20 KB. Always check the exact wording on your form.
What happens to transparent areas?
JPG has no transparency, so transparent pixels are filled with white. Choose WebP to keep transparency with a smaller file than PNG.
Does compression reduce quality?
Yes. A smaller file means fewer pixels or a coarser encoding. The tool searches for the highest quality that still meets the target and warns you when a target cannot be met without heavy loss. Photos usually look fine at 20–50 KB; text and line art can show artefacts.
Can it compress HEIC photos from an iPhone?
Most browsers cannot decode HEIC. Set the iPhone camera to Most Compatible, or export the photo as JPG, then compress it here.
Related tools
Image converter
Convert between JPG, PNG and WebP, resize, rotate and flip without uploading.
Open the converterPDF merge & split
Combine scanned forms or pull out the pages you need, on your device.
Open PDF toolsQR code generator
Turn a link or a line of text into a scannable code.
Create a QR codeInvoice generator
Turn a short description into a clean, printable invoice.
Make an invoice