Photo tool / 01

Resize and compress a photo
for any form.

Exact millimetres, exact pixels, exact KB. Batch mode included. The photo never leaves your browser.

JPG · PNG · WebPBatch readyNo upload
01

Add photos

0 files

No photos yet. Your first photo will appear here.

    02

    Set the output

    One recipe for all
    Dimensions 413 × 531 px
    DPI matters when the form specifies mm or inches.
    How to fit

    Fit keeps the whole photo. Fill crops the edges. Stretch can distort faces — use it only if the form demands it.

    Format
    File size
    KB maximum
    Background
    Keep · White · Blue · Grey · Custom
    Custom colour picker

    A colour fills transparent areas and letterbox padding. Turn on replacement for portrait photos.

    The process

    Three steps, one tab.

    No account, no queue, no upload. The only delay is your own device doing the work.

    01

    Read the form twice

    Forms usually specify three things: physical size, pixel size, and a maximum KB. Enter all three. The preset fills in the common ones.

    02

    Fit, don’t squash

    Use Fit when the whole face and shoulders must remain visible. Use Fill when the form crops to a square and the edges do not matter.

    03

    Check before uploading

    The result shows exact pixels and KB. Open the downloaded file once to confirm it looks right before you send it to a portal.

    Reference

    Common form photo sizes.

    Always confirm with the issuing authority. These are common starting points, not legal advice.

    UsePhysical sizePixels at 300 DPITypical limit
    Passport35 × 45 mm413 × 531≤ 100 KB
    US passport / visa2 × 2 in600 × 600≤ 240 KB
    Schengen visa35 × 45 mm413 × 531≤ 100 KB
    UK passport35 × 45 mm413 × 531≤ 100 KB
    Canada passport50 × 70 mm591 × 827≤ 240 KB
    China visa33 × 48 mm390 × 567≤ 100 KB
    ID card photo25 × 35 mm295 × 413≤ 100 KB

    Need the country-by-country details? Read the passport photo size guide.

    Questions

    Before you upload.

    Does my photo get uploaded anywhere?
    No. The photo is decoded, resized, and compressed inside your browser using JavaScript and WebAssembly. OnDiv has no image-processing server, so the file never leaves your device.
    How do I make a photo exactly 35 × 45 mm?
    Choose the Passport preset, keep the unit on mm, and set 300 DPI. The tool converts millimetres to pixels at that DPI (about 413 × 531 px) and exports the exact physical size. Always check whether your form asks for millimetres, pixels, or centimetres.
    Why is my JPEG still larger than the limit?
    A file-size limit and a pixel-size limit pull in opposite directions. If the form demands 413 × 531 px and under 20 KB, the resolution may be impossible to hit with good quality. The tool will use the lowest quality it can and warn you; reduce the dimensions or use WebP if the form accepts it.
    What does background replacement do?
    For portrait photos, OnDiv can separate the person from the background on your device and fill the background with white, light blue, grey, or a custom colour. The model is downloaded once and cached by your browser. If no person is detected, the colour only fills transparent areas and letterbox padding.
    Can I process several photos at once?
    Yes. Add as many photos as you need, choose one output recipe, and process them together. Download each result individually or grab everything as a ZIP file.
    Which format should I choose?
    JPEG is accepted by almost every government portal and gives the smallest files. PNG is lossless but much larger. WebP is smaller than JPEG but not every portal accepts it, so use it only when the form allows WebP.