How Resize Image in Inches, CM or MM works
A 2 x 2 inch photo at 300 DPI is 600 x 600 pixels, and that is what this tool produces by default. Enter a width and height in inches, centimetres or millimetres, set the resolution, and the pixel size appears before you choose a file. Add an image and it is resized to those pixels: cropped from the centre to fill the shape, fitted inside with a background colour, or stretched, whichever you pick. The chosen DPI is then written into the JPEG or PNG header, so print software and photo kiosks size it correctly. The work is done in your browser and the image is not uploaded.
Print sizes in inches, cm and mm converted to pixels at 300 DPI
Each row is the pixel size this tool outputs for that width, height and unit at 300 DPI.
| Print size | Pixels at 300 DPI | Typical use |
|---|---|---|
| 1 x 1 in | 300 x 300 | Small ID and stamp-size photos |
| 1.5 x 1.5 in | 450 x 450 | Square ID photos |
| 2 x 2 in | 600 x 600 | US passport and visa photo size |
| 2 x 3 in | 600 x 900 | Wallet print |
| 2.5 x 3.5 in | 750 x 1050 | Wallet print, trading card |
| 4 x 6 in | 1200 x 1800 | Standard photo print |
| 5 x 7 in | 1500 x 2100 | Framed photo print |
| 8 x 10 in | 2400 x 3000 | Large photo print |
| 8.5 x 11 in | 2550 x 3300 | US Letter page |
| 2.5 x 3.5 cm (25 x 35 mm) | 295 x 413 | Small ID photo |
| 3 x 4 cm | 354 x 472 | ID photo |
| 3.5 x 4.5 cm (35 x 45 mm) | 413 x 531 | UK and Schengen passport photo size |
| 33 x 48 mm | 390 x 567 | China passport photo size |
| 40 x 50 mm | 472 x 591 | ID photo |
| 50 x 70 mm | 591 x 827 | Canada passport photo size |
| 51 x 51 mm | 602 x 602 | 2 x 2 in quoted in millimetres |
| 10 x 15 cm | 1181 x 1772 | Standard photo print (metric) |
| 210 x 297 mm | 2480 x 3508 | A4 page |
Photo rules change and many also set head size, background and file size. Check the current official requirements for the document you are applying for.
Inches to pixels formula
pixels = size in inches x DPI, where inches = cm / 2.54 = mm / 25.4
DPI means dots per inch, so the pixel count along a side is the length of that side in inches times the resolution. Metric sizes are converted first, using the exact definitions 1 inch = 2.54 cm = 25.4 mm. The answer is rounded to the nearest whole pixel, because an image cannot contain part of a pixel: 3.5 cm at 300 DPI is 413.39, which becomes 413.
2x2 inch photo size in pixels at different DPI
The same 2 x 2 inch print needs more pixels as the resolution rises.
| Resolution | Pixel size of 2 x 2 in | Where it is used |
|---|---|---|
| 72 DPI | 144 x 144 | Legacy screen resolution |
| 96 DPI | 192 x 192 | Standard screen resolution |
| 150 DPI | 300 x 300 | Draft print |
| 200 DPI | 400 x 400 | Acceptable print |
| 300 DPI | 600 x 600 | Photo-quality print |
| 600 DPI | 1200 x 1200 | High-resolution print |
Crop, fit or stretch: what happens when the shape does not match
Most photos are 4:3 or 3:2 and most target sizes are not, so one of three things has to give.
- Crop to fill (default): the image is scaled until it covers the whole target, then the overflow is trimmed equally from both sides. Proportions are kept and nothing is left blank. The crop is always centred.
- Fit inside: the whole image is scaled to sit inside the target and centred. The leftover strips are filled with the Background colour. Proportions are kept and nothing is cut off.
- Stretch: the whole image is mapped onto the whole target. Nothing is cut and nothing is blank, but faces and circles are distorted unless the original already had the same shape. A warning appears when that happens.
- Transparent areas of a PNG are filled with the Background colour when the output is JPEG, which has no transparency.
Worked examples with the pixel positions used
Phone photo to a 2 x 2 inch square
A 4000 x 3000 pixel photo, Width 2, Height 2, Inches, 300 DPI, Crop to fill
600 x 600 pixels, made from the centre 3000 x 3000 pixels of the original, saved with 300 DPI
500 pixels are trimmed from the left and from the right.
Portrait photo to 3.5 x 4.5 cm without cutting anything
A 3000 x 4000 pixel photo, Width 3.5, Height 4.5, Centimetres, 300 DPI, Fit inside
413 x 531 pixels, with the image occupying 398 x 531 and a background strip about 7 pixels wide on each side
A photo that is too small for the print size
A 300 x 200 pixel image, Width 4, Height 6, Inches, 300 DPI, Crop to fill
1200 x 1800 pixels, enlarged 9 times, with a warning that the real resolution is about 33 DPI
The file has the right pixel size but will print soft. Start from a larger original if you can.
What this tool does not do
It resizes one image to one physical size. It does not arrange several copies on a 4 x 6 inch sheet for printing, detect a face, remove or replace a background, or check a photo against a country's passport rules.
The crop is always taken from the centre. If the subject is off to one side, crop the photo first with the Image Cropper so the subject is centred, then resize it here.
Resizing cannot add detail. When the original has fewer pixels than the target, the tool enlarges it and tells you the real resolution you ended up with. Output is capped at 10,000 pixels per side and the resolution at 2,400 DPI.
If you only need pixel dimensions or a percentage, the Image Resizer is the simpler tool. If the pixels are already right and only the DPI value is wrong, the Image DPI Converter changes that value without re-encoding the picture.
Step by step
- 1
Enter the Width and Height you need, for example 2 and 2.
- 2
Choose the Unit: Inches, Centimetres or Millimetres.
- 3
Set Resolution (DPI). 300 is standard for prints and ID photos. The pixel size updates straight away.
- 4
Choose your photo under Image.
- 5
Under If the shape does not match, pick Crop to fill, Fit inside or Stretch, and set a Background colour if you chose Fit inside.
- 6
Pick the Output format and download the result. The file name includes the size and DPI.