SizeReduce

Home › Guides › Pixels, cm, inches and DPI: how to convert photo sizes

Pixels, cm, inches and DPI: how to convert photo sizes

Updated 11 October 2026

Photo resizer for exam forms →

Some application notices give photo size in pixels ("200 × 230 pixels"), some in centimetres ("3.5 cm × 4.5 cm") and a few in inches ("2 × 2 inches"). A digital image only really has pixels, so you need a way to translate physical sizes into pixel sizes. That bridge is DPI.

What each unit means

A pixel has no fixed physical size on its own. A 600 × 600 px image prints as 2 × 2 inches at 300 DPI, but as 6 × 6 inches at 100 DPI.

The formula

pixels = centimetres ÷ 2.54 × DPI

And for inches: pixels = inches × DPI. Round the result to the nearest whole pixel.

Going the other way: centimetres = pixels ÷ DPI × 2.54.

Worked example

A 3.5 cm wide photo at 300 DPI: 3.5 ÷ 2.54 = 1.378 inches. 1.378 × 300 = 413.4, which rounds to 413 pixels. The 4.5 cm height: 4.5 ÷ 2.54 × 300 = 531.5, which rounds to 531 pixels (the exact value is 531.496, just under the halfway point).

Ready-reckoner table

Physical size96 DPI200 DPI300 DPI
Passport photo 3.5 × 4.5 cm132 × 170 px276 × 354 px413 × 531 px
Square photo 2 × 2 inch (5.08 × 5.08 cm)192 × 192 px400 × 400 px600 × 600 px
Signature 3.5 × 1.5 cm132 × 57 px276 × 118 px413 × 177 px

Notice that the shape (aspect ratio) stays the same at every DPI. Only the number of pixels changes.

Which DPI should you use?

Our photo resizer and signature resizer accept cm, inches or pixels and do this arithmetic for you.

Does the DPI value inside the file matter?

JPEG files can store a DPI number in their header (the JFIF or EXIF data). This number does not change the pixels at all; it is just a label telling printers what size to print at. A 413 × 531 px photo is the same image whether its header says 72 DPI or 300 DPI, and its file size is practically the same.

Most recruitment and exam portals check only the pixel dimensions, the format and the file size. A few forms, however, state a required DPI, and some document-upload systems read the header value. If your notice mentions DPI, it costs nothing to set the header to match. Our tools write the DPI you choose into the file, so a 3.5 × 4.5 cm photo at 200 DPI is saved as 276 × 354 px with a 200 DPI label.

Common mistakes

For specific exam requirements, see the exam-wise photo and signature sizes page and cross-check with the official notice.

Questions people ask

How many pixels is 3.5 x 4.5 cm?
It depends on DPI: about 132 x 170 px at 96 DPI, 276 x 354 px at 200 DPI and 413 x 531 px at 300 DPI.
How many pixels is a 2 x 2 inch photo?
Multiply inches by DPI: 600 x 600 px at 300 DPI, 400 x 400 px at 200 DPI and 192 x 192 px at 96 DPI.
What is the formula to convert cm to pixels?
Pixels = cm divided by 2.54, multiplied by DPI. Round the answer to the nearest whole number.
Does changing DPI reduce file size?
Changing only the DPI label in the file header does not change the pixels, so the file size stays almost the same. Changing the pixel dimensions is what reduces size.
Is DPI the same as PPI?
Strictly, DPI refers to printer ink dots and PPI to image pixels, but in everyday use and in most form notices they mean the same thing.

Sources

Related