Use this free tool to compress image files to the exact size an online form, website or email asks for. Choose a photo, type the maximum size in KB, add a minimum if your form has one, and press the button. The tool finds the highest quality that fits your range and shows a before and after preview. It runs completely in your browser, so your photo is never uploaded anywhere.
How to reduce image size in KB
- Tap Choose a photo or drag the file into the box. JPG, PNG, WebP, GIF and BMP are supported, up to 25 MB.
- Enter the maximum size in KB. If the form says "between 20 KB and 50 KB", enter 20 as the minimum and 50 as the maximum.
- Optional: open Exact dimensions and enter a width and height in pixels, centimetres or inches.
- Press Compress image, check the preview and press Download.
How this image compressor works
The photo is drawn onto an HTML canvas and saved again as a JPG (or WebP). JPG lets us choose a quality level from 0 to 100. Instead of guessing, the tool runs a binary search: it tries a middle quality, checks the file size, then moves up or down and repeats about eight times. This finds the best quality that stays under your limit in a fraction of a second. If even the lowest sensible quality is still too large, the tool reduces the pixel dimensions step by step until the file fits. If the result is smaller than your minimum, it raises the quality or the dimensions again.
Very large photos from modern phones, sometimes 8000 pixels wide, are first scaled down to 4000 pixels on the long side. This keeps the browser from running out of memory on budget Android phones and does not affect forms, which always need much smaller images.
Worked example
A phone photo is 3.4 MB and 4000 × 3000 pixels. A scholarship form wants a JPG between 20 KB and 50 KB. With 20 and 50 entered, the tool first tries quality 95, which gives about 1.9 MB, far too big. The quality search alone cannot reach 50 KB at full size, so the dimensions shrink gradually. The final file is about 48 KB at roughly 1000 × 750 pixels, which is still sharp on any screen and comfortably inside the range.
Photo size reducer tips
- Crop first. Removing empty background lets every kilobyte go to the face or document.
- Use the original file. Compressing a file that was already compressed several times adds blockiness.
- PNG becomes JPG. PNG cannot be squeezed to a target size, so the output is JPG with transparent areas filled in white.
- WebP is smaller for the same quality, but many government portals accept only JPG. Choose JPG for forms.
Common uses
People use this page to shrink photos for job and exam applications, scholarship and passport portals, college admission forms, email attachments with size limits and product photos for online shops. For the most common limits there are ready-made pages: signatures at 20KB, passport photos at 50KB, documents at 100KB and marksheets at 200KB. If your form also gives dimensions, resize the image first.
Read the guide: How to Reduce Image Size for an Online Form
Last updated: