Application forms reject files that are too large, often without saying by how much. Drop your photo or scan below, bring it under the stated limit while watching the live size, and upload it again. Because nothing is sent to a server, this is safe for ID documents.
Forms usually state three things: a file type, a maximum weight, and sometimes pixel dimensions. Limits vary widely. A US visa photo must be a square JPEG between 600 and 1200 px and no more than 240 KB; a UK passport photo must be at least 600×750 px and between 50 KB and 10 MB. Others simply cap attachments at 1 or 2 MB.
Check whether there is a minimum as well as a maximum. Systems that verify identity photos reject files that are too small, because the face would not have enough detail to be checked.
For a diploma, a bill or a signed form, legibility is what counts. Keep the width at 1200–1600 px so small print stays readable, and lower the quality instead: text on white paper tolerates 50–60% well.
For a portrait, do the opposite. The dimensions required are usually small, so resize to them first and keep quality at 80% or higher, since faces show compression artefacts quickly.
Find the limit in the form's instructions, then reduce the dimensions and quality here until the live size is below it. Start with dimensions: halving them cuts the file to about a quarter.
With this tool, yes, because there is no upload. The compression runs inside your browser and the document stays on your device. You can check by turning off your connection after the page loads: it still works.
Almost all accept JPEG, and most also accept PNG or PDF. HEIC from iPhones and WebP are frequently rejected, so convert to JPEG if the form refuses your file for no clear reason.
You can set the longer side exactly; the other follows in proportion. If the form needs a specific shape, such as a square, crop the photo to that ratio first and then resize.