Pixels, DPI, cm and Inches: How to Convert Photo Sizes

Last updated: November 6, 2026

A form says "photo size 35 x 45 mm", but your upload box asks for pixels. This guide shows how the units connect, so you can convert any size yourself.

What is a pixel?

A pixel is one tiny dot of a picture. A photo that is 600 x 600 pixels has 600 dots across and 600 dots down. Pixels do not have a physical size until you decide how closely they are packed.

What is DPI?

DPI means dots per inch, how many pixels fit in one inch when the picture is printed. 300 DPI is a common print setting. 72 DPI and 96 DPI are older screen values. A form that gives only a size in cm or inches usually means a print size, so 300 DPI is the usual starting point. If your form states a DPI, use that.

The formulas

Example: a 2 x 2 inch photo at 300 DPI is 2 x 300 = 600 pixels each way. A 35 x 45 mm passport photo at 300 DPI is 35 / 25.4 x 300 = about 413 pixels wide and 45 / 25.4 x 300 = about 531 pixels high.

Handy conversions at 300 DPI

Print sizePixels (300 DPI)
1 x 1 inch300 x 300
2 x 2 inch (51 x 51 mm)600 x 600
3 x 4 cm354 x 472
35 x 45 mm413 x 531
4 x 6 inch1200 x 1800
5 x 7 inch1500 x 2100
8 x 10 inch2400 x 3000
50 x 20 mm (signature)591 x 236
4 x 2 cm (signature)472 x 236

Pixels versus KB

Pixel size and file size (KB) are two different limits. A photo of 600 x 600 pixels can be 30KB or 300KB depending on the quality setting. If your form lists both, you must match both. First set the pixels, then the KB limit. KBTrim does both in one step.

Why your photo looks stretched

If the shape of your photo does not match the size you need, forcing it to fit stretches the face. A better method is to crop the photo to the right shape first. In our tools, tick "Crop to fill the exact size (centred)" and the tool does this for you without stretching.

Which tool to open

Browse the all tools list for ready-made sizes in inches, centimetres, millimetres and pixels. If your size is not listed, choose "Custom width / height" in any tool and type your own numbers.

Related tools

More guides