Skip to content

Resize Image to 2x2 Inches, or Any Size in Inches, CM or MM

Enter a print size and a resolution and the image is resized to the matching pixel dimensions, with that DPI written into the file. 2 x 2 inches at 300 DPI is 600 x 600 pixels.

Runs in your browserFree, no sign-upLast reviewed

Settings

300 is the standard for photo prints and ID photos.

Results update automatically as you type.

Fill in the settings to see your result here.

Your result appears here instantly — nothing is uploaded.

Quick answers

How many pixels is a 2x2 inch photo?
600 x 600 pixels at 300 DPI. Multiply each side in inches by the DPI: 2 x 300 = 600. At 150 DPI the same print is 300 x 300 pixels, and at 600 DPI it is 1,200 x 1,200.
What is 3.5 x 4.5 cm in pixels?
413 x 531 pixels at 300 DPI. 3.5 cm is 1.378 inches and 4.5 cm is 1.772 inches. 35 x 45 mm is the same size and gives the same result. At 600 DPI it is 827 x 1,063 pixels.
Is 2x2 inches the same as 51x51 mm?
Almost. 2 inches is exactly 50.8 mm, which is 600 pixels at 300 DPI. 51 mm is slightly larger and comes to 602 pixels. Forms that quote both sizes treat them as the same photo; use 2 inches if a 600 x 600 pixel file is specified.
What DPI should I use for a 2x2 photo?
300 DPI unless you are told otherwise. It is the usual resolution for printed photos and gives 600 x 600 pixels. If an upload form gives a pixel size instead, set the DPI so the pixel size shown matches it.
Will my photo be distorted when I resize it to 2x2 inches?
Not with the default setting. Crop to fill keeps the proportions and trims the excess equally from two sides, so a 4000 x 3000 photo keeps its centre 3000 x 3000 pixels. Only the Stretch option changes proportions.
Does resizing in inches change the DPI saved in the image?
Yes. The resolution you enter is written into the JPEG or PNG header after resizing, so the file reports 300 DPI and opens at 2 x 2 inches in print and layout software.

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 sizePixels at 300 DPITypical use
1 x 1 in300 x 300Small ID and stamp-size photos
1.5 x 1.5 in450 x 450Square ID photos
2 x 2 in600 x 600US passport and visa photo size
2 x 3 in600 x 900Wallet print
2.5 x 3.5 in750 x 1050Wallet print, trading card
4 x 6 in1200 x 1800Standard photo print
5 x 7 in1500 x 2100Framed photo print
8 x 10 in2400 x 3000Large photo print
8.5 x 11 in2550 x 3300US Letter page
2.5 x 3.5 cm (25 x 35 mm)295 x 413Small ID photo
3 x 4 cm354 x 472ID photo
3.5 x 4.5 cm (35 x 45 mm)413 x 531UK and Schengen passport photo size
33 x 48 mm390 x 567China passport photo size
40 x 50 mm472 x 591ID photo
50 x 70 mm591 x 827Canada passport photo size
51 x 51 mm602 x 6022 x 2 in quoted in millimetres
10 x 15 cm1181 x 1772Standard photo print (metric)
210 x 297 mm2480 x 3508A4 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.

ResolutionPixel size of 2 x 2 inWhere it is used
72 DPI144 x 144Legacy screen resolution
96 DPI192 x 192Standard screen resolution
150 DPI300 x 300Draft print
200 DPI400 x 400Acceptable print
300 DPI600 x 600Photo-quality print
600 DPI1200 x 1200High-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. 1

    Enter the Width and Height you need, for example 2 and 2.

  2. 2

    Choose the Unit: Inches, Centimetres or Millimetres.

  3. 3

    Set Resolution (DPI). 300 is standard for prints and ID photos. The pixel size updates straight away.

  4. 4

    Choose your photo under Image.

  5. 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. 6

    Pick the Output format and download the result. The file name includes the size and DPI.

Answers to common questions

How do I resize a photo to 2x2 inches for a US passport or visa?
Leave Width and Height at 2, Unit on Inches and Resolution on 300, then choose your photo. You get a 600 x 600 pixel image. Centre your head in the frame first, because the crop is taken from the middle. The tool does not check head size or background, so compare the result with the official requirements.
How do I resize an image to 35x45 mm?
Enter 35 and 45, choose Millimetres and keep 300 DPI. The output is 413 x 531 pixels. Entering 3.5 and 4.5 with Centimetres gives exactly the same file.
Is my photo uploaded to resize it?
No. The image is decoded, drawn to a canvas and re-encoded by your browser. The image is not sent to a server.
Can I see the pixel size without choosing an image?
Yes. The Pixel size line updates as soon as you change the width, height, unit or DPI, along with the same size expressed in inches, centimetres and millimetres. The image is only needed for the resize itself.
Should I save the result as JPEG or PNG?
JPEG for photographs, which is also what most photo upload forms ask for. PNG is lossless and keeps transparency but makes much larger files for photos. JPEG quality defaults to 92%, which you can change with the JPEG quality slider.
Why does 51 mm give 602 pixels when 2 inches gives 600?
Because 2 inches is 50.8 mm, not 51. At 300 DPI the extra 0.2 mm is about 2.4 pixels, which rounds to 602. Use the inch setting when a form asks for exactly 600 x 600 pixels.
How do I resize an image to 4x6 inches for printing?
Enter 4 and 6 for a portrait print or 6 and 4 for landscape, at 300 DPI. The result is 1200 x 1800 pixels. A photo straight from a phone has more than enough pixels, so nothing is enlarged.
The file is the right size in inches but too large in KB. What now?
Resize it here first, then use Compress Image to KB with Keep the original pixel dimensions ticked. That lowers the JPEG quality until the file fits the limit without changing the pixel size you just set.

Looking for something else? Browse all image tools or see every tool.