How to resize a photo to exact pixels
Get the width and height a form or website asks for, turn millimetres into pixels, and keep the picture from looking stretched
By Metin Ersoy · Updated November 5, 2026
Pixels, millimetres and kilobytes
Upload forms describe photos in three different ways, and it helps to know which one you are dealing with:
- Pixels — the width and height of the picture, such as 600 × 600 or 1,200 × 800. This is what this guide changes.
- Millimetres or inches — the printed size, used for passport and ID photos, such as 35 × 45 mm. You turn it into pixels with a simple calculation (see below).
- Kilobytes (KB) — how much space the file takes. That is a separate step; see how to reduce photo size in KB.
A phone photo is usually 3,000–8,000 pixels wide, so most forms need it to be made smaller. When a form says "at least 600 pixels", a larger photo is fine; when it says "exactly 600 × 600", the size must match.
In the browser (any device, many photos at once)
Resize image works in Chrome, Edge, Firefox and Safari, on computers and phones:
- Open the page and choose one or more photos. JPG, PNG, WebP, GIF and iPhone HEIC photos all work.
- Choose By pixels and type the width. Leave the height empty and it is worked out for you, so the photo keeps its shape. For an exact size such as 600 × 600, fill in both boxes.
- The first photo's old and new size appear below the boxes. Download; several photos arrive as one ZIP.
The photos are resized on your own device and never uploaded, which matters for ID photos and personal documents. Location and camera details are left out of the new file.
Turning millimetres into pixels
Printed sizes become pixels with one formula: pixels = millimetres ÷ 25.4 × DPI. Most photo services print at 300 DPI. Some common sizes:
| Photo | Printed size | Pixels at 300 DPI |
|---|---|---|
| EU / Schengen passport and visa | 35 × 45 mm | about 413 × 531 |
| Larger ID photo (used in some countries) | 50 × 60 mm | about 591 × 709 |
| US passport | 2 × 2 inches | 600 × 600 |
| Small profile or badge photo | 30 × 40 mm | about 354 × 472 |
Rules differ from country to country and change over time. If the office or website gives its own pixel size, file size or background colour, follow that.
On Windows
Photos app. Open the photo, select the menu (…) and choose Resize image. Choose a custom size in pixels, keep the aspect ratio locked, enter the width and save a copy. The menu wording differs a little between Windows versions.
Paint. Open the photo, choose Resize, switch from Percentage to Pixels, untick Maintain aspect ratio only if you need an exact shape, and enter the size. Save with File → Save as.
On a Mac
Preview. Open the photo and choose Tools → Adjust Size. Set the unit to pixels, keep Scale proportionally ticked and type the width. To set a print size instead, choose millimetres and 300 pixels per inch; Preview then shows the resulting pixel size. Save or export the copy.
On the iPhone and Android
iPhone. The Photos app can crop to a square or other shape, but it cannot set an exact pixel size. Open Resize image in Safari, pick the photo from your library, type the size and download; the file is saved to Downloads in the Files app. The Shortcuts app also has a Resize Image action if you do this often.
Android. The same browser method works in Chrome. Some gallery apps offer Resize in the edit menu with a few preset sizes; the name and place depend on the phone maker.
Which method to choose
| Situation | Best way |
|---|---|
| Form asks for exact pixels, e.g. 600 × 600 | Crop to the shape, then Resize image → By pixels, both boxes |
| Form asks for a printed size, e.g. 35 × 45 mm | Work out pixels with the table above, then resize |
| Form has both a pixel size and a KB limit | Resize first, then Compress JPG with a target size |
| Many photos for a website or slide deck | Resize image, width only (e.g. 1,600), ZIP |
| The photo has to be a PDF | JPG to PDF after resizing |
Common problems
The face looks wider or thinner than before. The photo was forced into a different shape. Crop it to the target shape first (square for 600 × 600, portrait for 35 × 45 mm) and then resize with the aspect ratio kept.
The form still says the size is wrong. Check whether it wants the size before or after cropping, and whether it counts width × height or height × width. Also make sure you uploaded the new copy and not the original.
The photo is too small and the form asks for more pixels. Enlarging works, but it does not add detail, so the photo looks soft. If you can, use the original from the camera rather than a copy sent through a messaging app, which usually shrinks photos.
The file is an iPhone HEIC photo. Resize image reads HEIC and saves it as JPG. If your browser cannot open it, convert it first with HEIC to JPG.
Ready to try it? It is free and your file stays on your device.
Open Resize image