Fit the file size
your form actually checks
Most compressors give you a quality slider and leave you to guess. This one takes a number: the ceiling your upload form enforces. It searches for the highest quality that still fits under it — on your own device, with nothing uploaded.
Start here
Compress to an exact size
Type the limit — 100 KB, 240 KB, whatever the form says — and get the largest, best-quality file that still fits under it.
US visa photo — 240 KB
The DS-160 ceiling, plus the rules that actually trip people up: square, JPEG only, head 50–69% of the image height.
UK passport photo — 50 KB to 10 MB
GOV.UK rejects photos that are too small as well as too large. Work out which side of the window you are on before compressing.
Why an exact size, not a slider
1. Forms check a ceiling
"Must be under 240 KB" is a hard limit, and a quality slider gives you no way to aim at it. You end up either well under — wasting quality you were allowed to keep — or just over, and rejected.
2. So the tool searches
Give it the number and it searches quality first, then dimensions, for the largest file that still passes. You get the most quality the form permits, not the smallest file the tool can make.
3. Watch the format
The result is usually WebP because it is smaller at the same quality — which is how a tight ceiling stays passable. But visa and exam portals often accept JPEG only, so convert and re-check before you submit.
Also on ToolVeil
Three focused tools sit at the front, and 50 more cover images, PDFs, video, text and developer work — all running in your browser.Browse every tool or read theguides.