How compressing to a target size works
Most compressors only let you pick a quality and hope the file is small enough. This one works backward from the size you need:
- It saves the image at high quality. If that is already under your target, you get the best-looking version.
- If not, it searches between high and low quality, halving the gap each time, and keeps the highest quality that fits.
- If the image still does not fit at a reasonable quality, it shrinks the width and height in small steps, then searches quality again.
- It never shrinks below the minimum a setting needs, such as 600 pixels for a US visa photo. If the target cannot be reached, the tool tells you the smallest size it managed and what to change.
If an image is already under the target and needs no other change, the original file is kept as it is.
Common size limits
| Where it is going | Limit to aim for | Good format |
|---|---|---|
| US visa photo (DS-160) | Under 240 KB, 600 to 1200 px square | JPG |
| Job or school application portals | Often 100 KB to 2 MB; check the form | JPG |
| Email attachments | About 1 MB per photo keeps a message small | JPG |
| Discord (free) | Under 10 MB per file | Same as original |
| Website images | 100 to 200 KB at up to 1920 px wide | WebP |
PNG compression
PNG is lossless, so the slider cannot lower its quality the way it does for JPG. Instead, below 100% the tool reduces the number of colors to a palette of up to 256, the same idea TinyPNG describes. Screenshots, logos and flat graphics often shrink by half or more with no visible change. Photos saved as PNG are better converted to JPG or WebP.