CM to Pixels Converter

Turn a print size into pixels at any DPI, or pixels back into cm, mm and inches.

Runs in your browser. Your files never leave your device.

How do I convert cm to pixels?

Pixels depend on resolution (DPI, dots per inch). Divide the size in cm by 2.54 to get inches, then multiply by the DPI: pixels = cm ÷ 2.54 × DPI. A 3.5 cm wide passport photo at 300 DPI is 3.5 ÷ 2.54 × 300 = 413 pixels. FixDoks's CM to Pixels converter does this for cm, mm and inches, and also converts pixels back to cm.

CM to Pixels at a glance

Unitscm, mm, inches, pixels
DPI72, 96, 150, 200, 300, 600 or any custom value
Formulapixels = cm ÷ 2.54 × DPI
ProcessingIn your browser; your files are not uploaded
PriceFree
Works onChrome, Edge, Safari and Firefox on Windows, Mac, Android and iPhone

How to use CM to Pixels Converter

  1. Tap a preset such as Passport photo 3.5 × 4.5 cm, or enter your own width and height.
  2. Choose the unit (cm, mm or inches) and the DPI: 300 is standard for print, 200 is used by many Indian forms.
  3. Read the size in pixels, with the same size at other DPI values in the table.
  4. To go the other way, switch to Pixels to size and enter the width and height in pixels.

Why cm to pixels needs a DPI

A centimetre is a physical length, but a pixel has no fixed size. How many pixels fit in a centimetre depends on the resolution, measured in DPI (dots per inch) or PPI (pixels per inch). At 300 DPI, one inch of print holds 300 pixels; at 72 DPI it holds only 72. So the same 3.5 cm photo can be 99 pixels wide or 827 pixels wide, depending on the DPI you choose.

The formulas

  • cm to pixels: pixels = cm ÷ 2.54 × DPI
  • mm to pixels: pixels = mm ÷ 25.4 × DPI
  • inches to pixels: pixels = inches × DPI
  • pixels to cm: cm = pixels ÷ DPI × 2.54

One inch is exactly 2.54 cm, so these conversions are exact. The only rounding is to whole pixels at the end, because an image cannot have part of a pixel.

Common photo and signature sizes

SizeDPIPixels
Passport photo 3.5 × 4.5 cm300413 × 531 px
Passport photo 3.5 × 4.5 cm200276 × 354 px
US photo 2 × 2 inch (51 × 51 mm)300600 × 600 px
Signature 6 × 2 cm (SSC style)200472 × 157 px
Signature 4.5 × 2 cm (PAN, Protean)200354 × 157 px

These are the same figures our form tools use. SSC asks for a signature of about 6.0 × 2.0 cm and gives no pixel size; at 200 DPI that is 472 × 157 pixels, which is what the SSC photo and signature resizer makes. Forms also set a file size limit in KB, which depends on the image content, not just the pixel count, so always check the current notification for your form.

Which DPI should I use?

DPITypical use
72 and 96Screen layouts. 96 is the CSS reference: one CSS inch is 96 px.
150Draft prints and documents where file size matters
200Many Indian application forms and scanned documents
300Standard photo and print quality
600High quality scans of signatures, line art and small text

From pixels to a print size

Switch to Pixels to size to see how large an image will print. A 1200 × 1800 px photo prints at 10.16 × 15.24 cm (a 4 × 6 inch print) at 300 DPI, or twice that size at 150 DPI with less detail. If an upload form asks for a size in cm, work out the pixels here first, then make the file with the image resizer.

Next steps

Frequently asked questions

How many pixels is 1 cm?
It depends on the DPI. At 96 DPI, 1 cm is about 37.8 pixels. At 300 DPI it is about 118.1 pixels, and at 200 DPI about 78.7 pixels.
How many pixels is a 3.5 × 4.5 cm passport photo?
413 × 531 pixels at 300 DPI, or 276 × 354 pixels at 200 DPI. Some forms set their own pixel size, so check the form's instructions first.
What is 2 × 2 inches in pixels?
600 × 600 pixels at 300 DPI. At 200 DPI it is 400 × 400 pixels.
Does DPI change the file size in KB?
Not directly. File size depends on the pixel count and the compression. A higher DPI for the same print size means more pixels, which usually means a bigger file.
Is DPI the same as PPI?
Strictly, DPI describes printer dots and PPI describes image pixels, but most software and forms use DPI for both. For this conversion they mean the same thing: pixels per inch.