Compress Image to Target KB
Compress a JPG, PNG or WebP image toward a target file size such as 20KB, 50KB, 100KB or a custom size.
Choose an image or drop it here
Compress photos for upload limits
Many job, school, government and application portals set a maximum photo size. This tool repeatedly adjusts JPEG quality and, when needed, image dimensions to get close to the target size you enter.
Because image compression works with encoded data, an output cannot always be exactly the same number of bytes as your target. FileFit aims for a practical result close to the requested size.
Frequently asked questions
Are my images uploaded to FileFit?
The image tools in this build process selected files inside your browser. Some pages load JavaScript libraries from third-party CDNs, but FileFit does not run an image-upload server for these tools.
Does it work on mobile?
Yes. Modern mobile browsers can use these tools, although very large files may use a lot of device memory.
Is it free?
Yes. The tools in this build can be used without creating an account.
Continue with a related check
More questions about this tool
What does target KB mean?
It is the requested approximate output file size, not a pixel count or an image quality percentage.
Why is my output smaller than the target?
JPEG sizes depend on image content. Some images have fewer useful bytes at the tested quality settings.
Can I compress multiple images at once?
Use this tool one image at a time and review each output independently.
Choose a custom target without guessing
Different upload portals use different maximums. Rather than starting with the smallest number, set the target close to the actual requirement to preserve as much useful detail as possible.
A file-size requirement is independent from the pixel dimensions and format requirements. Use the other FileFit tools when you need to control all three.
Step-by-step workflow
- Write down the portal's accepted type, maximum file size and any exact width/height.
- Crop and resize to the permitted shape when necessary. Select the image here and enter the target KB.
- Process, examine the preview, then download the output. If it is close to a strict cap, leave several KB of headroom.
- Open Upload Readiness Checker and enter the same portal rules to catch mismatches before submitting.
Common problems and what to check
| What you notice | What to check |
|---|---|
| A tiny target makes text illegible | Choose a larger allowance if permitted, or scan/capture a better original. |
| JPEG is not accepted | This size compressor produces JPEG; use an appropriate format converter or another workflow when PNG/WebP is mandatory. |
| Dimensions must be exact | Use Image Resizer and check the output pixels again after compression. |
Important limitation
The algorithm searches for a close JPEG size using quality changes and sometimes resizing. There is no guarantee of exact bytes and no guarantee of acceptance by outside websites.