About this tool
A passport, visa or exam form never asks for "a photo" — it asks for an exact one: a precise pixel size, a file kept under a stated number of kilobytes, and a specific format, usually JPG. Miss any one of the three and the upload box rejects it. This tool sets all three at once: pick your document above, crop to the shape it needs, and press Apply to get a file that fits.
Every size is taken from the issuing body's own instructions. If you only need a file under a KB limit, the image compressor does that for any size; if you want free control of the dimensions, use resize & crop.
Pixels, kilobytes and format — reading the requirement
The three numbers a form gives you are separate things, and they are set in separate ways. Pixels are how many dots wide and tall the picture is — 200 × 230, say — and they come from resizing and cropping. Kilobytes are how much room the file takes up once saved, and they come from how hard the image is compressed. The format is the file type, almost always JPG. A form can demand a value for all three at once, which is why a photo that is the right shape still gets rejected for being a few KB too large, or the right size but saved as PNG.
So read the requirement as a list, not a single figure. "200 × 230 px, 20–50 KB, JPG" is three conditions, and the preset for your document holds all three and meets them in one pass. If your form quotes the size in centimetres or inches, it is describing the print, not the upload — a 3.5 × 4.5 cm photo at the usual 300 DPI works out to about 413 × 531 px, and the preset already carries the pixel figure so you do not have to do that sum yourself. When your own form's numbers differ from a preset's, your form wins: pick the closest preset, then use resize & crop and the compressor to match the exact figures it prints.
Nothing is uploaded
There is no server to upload to. Your photo is cropped, resized and compressed by this browser with the Canvas API, and the Download button points at the result sitting in your own device's memory. Turn your Wi-Fi off once this page has loaded and it still works — the privacy policy walks through the same check. As a side effect of re-encoding, the file carries no camera, date or GPS metadata.