100% in your browser · No uploads

Resize, crop & compress images
privately, beautifully

Drop a photo, pick a preset or target size, download. Files never leave your device.

Drop a photo or click to choose

JPG, PNG, WEBP, HEIC. Files never leave your browser.

Sponsored
Presets

Pick a ready-made preset

Each preset opens the editor pre-configured for that exact use case.

Sponsored

What PhotoFileSize does

PhotoFileSize is a free browser-based tool for preparing document photos and shrinking image files for online forms. It crops, resizes, and compresses your image to exact pixel dimensions and an exact file size — useful when a government portal, university application, or job site demands a passport-style photo under 100KB.

Everything happens locally using the HTML5 Canvas API. There's no server upload, no account, and no tracking of the contents of your photo.

How to use it

  1. Drop a JPG, PNG, WEBP, or HEIC image into the editor at the top of the page.
  2. Pick a preset (passport 35×45 mm, US 2×2 in, visa 50×50 mm, ID 30×40 mm) or set a custom size in pixels or millimeters with DPI.
  3. Drag and zoom to position your face inside the crop box.
  4. Choose a target file size (20KB, 50KB, 100KB, 200KB, or custom).
  5. Click Generate photo, then download as JPG, PNG, or a printable PDF sheet.

Common document photo sizes

DocumentSizePixels @ 300 DPI
Passport (most countries)35 × 45 mm413 × 531
US Passport / Visa2 × 2 in600 × 600
Schengen visa35 × 45 mm413 × 531
Indian visa50 × 50 mm591 × 591
National ID card30 × 40 mm354 × 472

See the full list in our passport photo size guide.

FAQ

Is my photo really private?

Yes. The photo is processed in your browser using JavaScript. It is never sent to a server.

Can I resize an image to under 100KB without losing too much quality?

For most passport photos at 413×531 px, 100KB is plenty. The tool binary-searches the JPEG quality to fit your target while keeping the image as sharp as possible.

Why is my output above the target size?

Some images cannot reach a tiny target without becoming unusable. We progressively scale and reduce quality, but if the warning appears, try a smaller target or a smaller pixel size.

Does it support HEIC photos from iPhone?

Yes. HEIC files are converted to JPEG inside your browser before processing.

Why no automatic face detection?

To stay fully private and avoid sending data to any AI service, we don't run face detection. You position your face manually in the crop window — it takes about three seconds.

Sponsored