Skip to content

How to resize an image in cm or mm

Screens think in pixels; printers and forms think in centimetres. The bridge between them is DPI, and once you understand it, resizing to an exact 3.5 × 4.5 cm or 5 × 5 cm becomes simple arithmetic. This guide gives you the formula, a ready-made conversion table, and the steps to hit any physical size with the resize tool and the DPI tool.

Updated June 23, 20266 min read
Resize to exact pixel dimensionsEnter the pixel size from the table below and resize in your browser — nothing uploaded.

The cm-to-pixel formula

An image has no fixed physical size on its own — only a pixel count. It gains a centimetre size the moment you pair it with a DPI (dots per inch). The conversion is:

  • pixels = centimetres × DPI ÷ 2.54
  • centimetres = pixels × 2.54 ÷ DPI

So a 3.5 × 4.5 cm photo at 300 DPI is (3.5 × 300 ÷ 2.54) × (4.5 × 300 ÷ 2.54) ≈ 413 × 531 pixels. Resize to that pixel size and the physical dimensions are correct. For millimetres, divide by 10 to get centimetres first.

What DPI should you use?

Choosing a DPI for the job
UseDPIWhy
Print (photos, documents, exam forms)300The standard for crisp print; most forms assume it
Large posters viewed from afar150Lower detail is fine at distance; smaller file
Screen / web only72–96DPI is irrelevant on screen; only pixels matter
Choosing a DPI for the job

Set or check the embedded DPI value with the DPI tool. Remember: changing the DPI tag alone does not resample the image — to truly hit a physical size you resize the pixels to the value from the formula above.

Ready conversion table (at 300 DPI)

Common physical sizes in pixels at 300 DPI
Physical sizePixels (300 DPI)Typical use
3.5 × 4.5 cm≈ 413 × 531 pxPassport / exam photo
2 × 2 in (5.08 × 5.08 cm)600 × 600 pxUS visa, square photo
4 × 2 cm≈ 472 × 236 pxSignature box
5 × 5 cm≈ 591 × 591 pxLarger ID photo
10 × 15 cm (4 × 6 in)1200 × 1800 pxStandard print
21 × 29.7 cm (A4)2480 × 3508 pxFull-page document
Common physical sizes in pixels at 300 DPI

Step by step

  1. Decide the physical size you need in cm or mm, and the DPI (300 for print, unless told otherwise).
  2. Convert to pixels with the formula, or read it straight off the table above.
  3. Open the resize tool and enter those pixel dimensions. Crop first with the crop tool if the aspect ratio does not match.
  4. If a printer or form needs the DPI tag set to 300, apply it with the DPI tool.
  5. If a form also caps the file size, compress to the KB limit last, after the dimensions are correct.

Frequently asked questions