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.
Pick a ready-made preset
Each preset opens the editor pre-configured for that exact use case.
Document photos
Resize
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
- Drop a JPG, PNG, WEBP, or HEIC image into the editor at the top of the page.
- 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.
- Drag and zoom to position your face inside the crop box.
- Choose a target file size (20KB, 50KB, 100KB, 200KB, or custom).
- Click Generate photo, then download as JPG, PNG, or a printable PDF sheet.
Common document photo sizes
| Document | Size | Pixels @ 300 DPI |
|---|---|---|
| Passport (most countries) | 35 × 45 mm | 413 × 531 |
| US Passport / Visa | 2 × 2 in | 600 × 600 |
| Schengen visa | 35 × 45 mm | 413 × 531 |
| Indian visa | 50 × 50 mm | 591 × 591 |
| National ID card | 30 × 40 mm | 354 × 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.