sqwartHome

Resize Image in CM, MM or Inches

Set a physical size, such as 3.5×4.5 cm, pick the DPI, and get a photo with exactly the right pixels for print.

  • Free
  • No upload
  • No watermark
  • No sign-up
How it works

How to resize Image in CM, MM or Inches

  1. 1

    Choose your photo.

  2. 2

    Pick centimeters, millimeters or inches, and type the width and height.

  3. 3

    Pick the DPI: 300 for photo prints, or what your form asks.

  4. 4

    Press Resize and download. The DPI is saved in the file.

In detail

Centimeters, pixels and DPI

A digital image has pixels, not centimeters. The link is DPI (dots per inch): pixels = inches × DPI, and an inch is 2.54 cm. So 3.5 cm at 300 DPI is 3.5 ÷ 2.54 × 300 = 413 pixels, and 4.5 cm is 531 pixels.

This tool does that math, resizes the picture to those pixels, and writes the DPI into the file (in the JPG's JFIF header or the PNG's pHYs chunk). Photoshop, Word and print shops then open it at the right physical size.

Common sizes

  • 3.5×4.5 cm (35×45 mm): the printed passport photo size in India, the UK, Schengen countries and many others. 413×531 pixels at 300 DPI.
  • 2×2 inches (51×51 mm): US passport and visa photos. 600×600 pixels at 300 DPI.
  • 10×15 cm (4×6 inches): the standard photo print. 1200×1800 pixels at 300 DPI.
  • A4 (21×29.7 cm): 2480×3508 pixels at 300 DPI.

When the shape doesn't match

If your photo's proportions differ from the size you typed, choose Crop to fill (the default, trims the edges evenly), Pad (adds a border in a color you pick) or Stretch. For passport photos, where the face must be placed carefully, the passport size photo tool lets you drag the crop.

How it works, and why nothing is uploaded

Your browser already knows how to open JPG, PNG, WEBP, GIF, BMP and SVG files, and recent browsers open AVIF too. This tool asks the browser to decode your picture, draws it on an HTML canvas, and has the browser write the new file. iPhone HEIC photos and TIFF scans, which Chrome and Edge can't open, are decoded by small open-source decoders (libheif compiled to WebAssembly, and UTIF.js) that load only when you add such a file.

Because everything happens on your device there is no upload wait, no queue and no file-size cap other than your device's memory. A browser canvas tops out around 16,000 pixels on a side (less on older iPhones), which is far beyond any phone or camera photo.

FAQ

Questions, answered.

What DPI should I use?

300 DPI for photo prints and most forms that mention print size. 150–200 is fine for documents. Screens ignore DPI; only pixels matter there.

How many pixels is 3.5×4.5 cm?

At 300 DPI it's 413×531 pixels. At 200 DPI, 276×354. At 600 DPI, 827×1063.

Does changing the DPI change the picture?

Here the pixels are resized to match the physical size at that DPI. To change only the DPI number without touching pixels, use change image DPI.

Will it print at the right size?

Yes, when printed at 100% (actual size) rather than fit to page. The DPI saved in the file tells the printer the size.

Are my images uploaded anywhere?

No. The page does all the work inside your browser, so your pictures never leave your phone or computer. Once the page has loaded you can even turn off Wi-Fi and it keeps working.

Is it really free? Is there a limit?

Yes, it is free with no sign-up and no watermark. There is no daily limit or file cap, because your own device does the work rather than a paid server.

Keep going

More free image tools