Compress Image to Target Size
Search for a quality setting that approaches a chosen file-size limit. Your files are never uploaded to our servers. ToolkitPoint processes them on your own computer, so confidential documents stay with you.
Processed in your browser. Your files are not uploaded.
How to use Compress Image to Target Size
- Choose a JPG, PNG or WebP file under "Select Image to Compress to Exact Target Size"; the rules panel appears once the file loads.
- Type a limit into "Target Max Size (KB)" (minimum 5) or click a preset chip such as "50 KB (Govt/Passport)" or "200 KB (Email)".
- Pick JPEG or WebP in "Target Format", since portals that demand a .jpg will not accept the WebP option.
- Leave "Auto-downscale dimensions if quality limit is reached" ticked if the pixel size may shrink, or clear it to keep the original width and height.
- Press "Compress to Target", compare the pill (achieved KB versus target KB) with your limit, then press "Download Target Image".
Worked example
A 2.4 MB phone photo of 4000 x 3000 pixels must fit a 200 KB form limit. Choose the "200 KB (Email)" chip, keep JPEG, leave auto-downscale ticked and press "Compress to Target". The result card lists the original size and the final KB with quality, and the pill reads a figure at or below "Target: 200.0 KB". The download is named with a -target.jpg suffix.
When to use this tool
- Shrinking a scanned signature to 20 KB for a government application form.
- Getting a headshot under an email or job-portal attachment cap without guessing quality values.
- Preparing a product photo that a marketplace rejects for being over 500 KB.
Important limitations
Extremely low targets (under 20 KB) on high-resolution originals require automatic pixel dimension downscaling to prevent severe visual compression artifacts.
Frequently asked questions
Will the file land exactly on my target size?
No, it lands at or below it. The tool tries eight quality values between 5% and 95% and keeps the highest one that fits, so the result is usually a little smaller than the number you typed.
What happens if quality alone cannot reach the target?
If even 5% quality is too big, the tool shrinks the pixel dimensions in steps (never below 50 px) and re-encodes at 60% quality. With the checkbox cleared, it returns the closest result and shows a "Closest Achievable Compression" heading.
Why did my transparent PNG get a white background?
JPEG has no transparency, so the tool paints white behind the picture before encoding. Choose WebP if you need to keep transparent areas, and check that the destination portal accepts WebP.
Can I use this for a size limit given in MB?
Enter the value in kilobytes. One megabyte is 1024 KB here, and the highest allowed target is 50000 KB. The "1 MB (Upload)" chip fills in 1000 KB, which is safely under a 1 MB cap.
How is this different from the plain image compressor on this site?
The plain compressor asks for a quality number and reports the saving. This one works backwards from a byte limit, searching for the quality or dimensions that satisfy it, which suits forms with a hard cap.