Resize a Photo to Passport Size and Reduce KB for Online Forms

"Upload a passport size photograph, JPG, maximum 50 KB." Lines like this appear on job portals, scholarship forms, exam registrations and visa pre-applications. Your phone camera produces photos of several megabytes, thousands of pixels wide, often with a busy background. This guide shows how to resize a photo to passport size and reduce the KB so it matches what the form asks for, in four short steps.
One note first: official passport and ID offices usually take their own photos or have strict printing rules. This guide is about the digital passport-style photos that online forms ask you to upload.
What "passport size" means for an online form
There is no single worldwide passport photo size. A common printed size is 35 x 45 mm, but online forms usually describe what they want in one of these ways:
- A ratio or printed size (for example 35 x 45 mm), meaning the shape of the photo.
- Exact pixels (for example a width and height in px).
- A file size limit in KB, sometimes with a minimum as well.
- A format, nearly always JPG.
Read the form's instructions and write down all four. The steps below handle each one.
Step 1: Take or choose a suitable photo
- Face the camera directly, with your head and the top of your shoulders in frame.
- Stand in front of a plain, light wall in even daylight, with no shadows on your face.
- Use the rear camera if possible; it is usually sharper than the selfie camera.
Step 2: Crop to passport shape
Crop the photo in your phone's gallery editor. Most editors let you choose a ratio; pick one close to the form's shape (35 x 45 mm is a ratio of about 7:9, slightly taller than wide). Leave a little space above your head and centre your face.
Cropping first matters: if you skip it and force exact pixels later, your face gets stretched.
Step 3 (optional): Make the background white
If your background is cluttered, open the Image Background Remover, choose Quick mode (designed for people and portraits) and set Background to White. The result downloads as a PNG. Check the edges around your hair; if they look rough, a photo against a plain wall is the better option. Some forms ask for an unedited photo, so follow their rules.
Step 4: Resize to the exact pixels
Open the Image Resizer:
- Keep Mode on By pixels.
- Enter the Width and Height the form asks for. If it only gives a width, leave height empty.
- Keep aspect ratio: leave it ticked if your crop already has the right shape; the photo will fit inside the size without distortion. Untick it only when the form needs exact width and height and your crop is already very close in shape.
- Set Output to JPG. This is important if your photo is a PNG from the background remover.
- Press Resize and download. The new file name includes the size, such as photo-300x400.jpg.
Step 5: Reduce KB to the limit
Now open the Image Compressor:
- Set Resize to Original size so your exact pixels are kept.
- Start with Strength: Balanced and compress.
- Check the size shown after compression. If it is still above the limit, try Strong.
A small passport-size JPG usually drops well below typical limits at these settings, because most of the file size came from the original millions of pixels. If you are still over, resize to slightly fewer pixels, if the form allows it, and compress again.
Keep the image JPG all the way. The compressor keeps JPG as JPG, but it turns PNG files into WebP, a format many government and exam portals reject.
Common problems and fixes
The face looks stretched. You forced exact width and height on an image with a different shape. Crop to the right ratio first, then resize.
The photo looks blurry after compression. Use Light strength instead, or start from a sharper original. Do not enlarge small photos; take a new one.
The form says "invalid format". Your file is probably PNG or WebP. Run it through the Image Resizer with Output set to JPG.
The form needs at least a minimum KB. Use Light strength, or skip compression; a resized JPG at the right pixels is often already within range.
Dark shadows behind the head. Move a step away from the wall and face a window.
Privacy
Your face is personal data. The Background Remover's AI model runs inside your browser, and the Image Resizer and Image Compressor work on your device too, so your photo is not uploaded to our server. The first time you use the background remover, the browser downloads the AI model once, which can take a moment on slow connections.
FAQ
How do I resize a passport photo to 20 KB or 50 KB? Crop, resize to the required pixels with Output set to JPG, then compress with Balanced or Strong until the size is under the limit.
Can I make a passport size photo on my phone? Yes. Crop in your gallery app, then use the DoraPDF tools in your mobile browser. Nothing needs to be installed.
How do I get a white background for my passport photo? Use the Background Remover with Background set to White, then convert to JPG with the Image Resizer.
Will the same photo work for every form? Not always. Keep your cropped original and create a new resized copy for each form's requirements.
Try the tools from this guide — free
Keep reading
Product Photos With a White Background for Your Online Store (Free, From Your Phone)
Make clean white-background product photos for Shopify, Etsy, Daraz or Amazon: shoot, remove the background, resize and compress, all free in your browser.
GuideRemove Background from Image Free: Clean PNG Cutouts Without Uploading Your Photo
Remove the background from any image for free. Get a transparent PNG or a white background in seconds, processed privately in your browser.
GuideHow to Compress an Image to 20 KB, 50 KB or 100 KB (Without Making It Unreadable)
Need a photo under 20 KB, 50 KB or 100 KB for a form? Learn the resize-then-compress method that hits small size limits while keeping the image clear.