Check the portal’s file-size and pixel limits before selecting a photo.
Exact size image compressor
Compress image to 40KB
Compress a photo to a 40KB file-size limit directly in your browser. JPG is selected by default. Process up to 10 images at once.
No sign-up. Your image stays on your device.
If a form requires 140 × 60 pixels, for example, set the resize options before selecting the image and verify the downloaded dimensions.
The selected size limit applies separately to each image.
How to compress an image to 40KB
The default 40KB limit is 40,960 bytes. If your form requires less than 40,000 bytes, use the 39KB suggestion, which caps the result at 39,936 bytes.
- The compressor on this page starts with 40KB selected. Change it only if your upload requires another limit.
- Upload one image or up to 10 images at once.
- Download the optimized image and check its dimensions and file size before uploading.
Why use an exact-size compressor?
Many upload forms reject files for being only slightly too large. TargetKB works backwards from your requested limit, automatically balancing image dimensions and JPEG quality instead of asking you to guess a quality percentage.
Check byte limits, output quality and format limitations if your upload is still rejected.
Why is my compressed image still rejected?
Check the downloaded file's exact byte size, pixel dimensions and accepted format separately. Some portals use 1KB = 1,000 bytes rather than 1,024. Meeting a size limit does not guarantee required dimensions or passport, visa or application approval.
Set size and resize options before selecting files: processing starts when files are selected. Keep the original rather than repeatedly compressing a lossy copy.
Convert an image to JPG with a size limit if your portal requires JPEG. Renaming an extension does not convert the image; JPG output replaces transparency with white.
Frequently asked questions
Will my photo be exactly 40KB?
No. The limit is a maximum, and the result may be smaller. The tool reports an error if it cannot meet the selected size limit.
Can I keep the required pixel dimensions?
Compression may reduce pixel dimensions. Check the downloaded width and height and compare them with the form requirements before uploading.