Convert centimeters to pixels or pixels to centimeters using 96 PPI for CSS or a custom resolution, and solve image PPI from physical size and pixel dimensions.

96 CSS px per inch is a fixed layout ratio. Image PPI describes pixel density; it does not guarantee the physical size shown on a screen.

96 is the CSS reference. Enter the target image or print density when known.

cm To Pixel Formula

The following formula is used to calculate the conversion from centimeters to pixels.

PX = CM ร— PPI / 2.54

Variables:

  • PX is the size in pixels
  • CM is the size in centimeters
  • PPI is the pixel density of the image or target output (pixels per inch)

To calculate the size in pixels, multiply the size in centimeters by the resolution of the screen or image (PPI), then divide the result by 2.54 (the number of centimeters in an inch).

Centimeters to Pixels Conversion Table (PPI Mode)
Centimeters (cm) Pixels at 72 PPI Pixels at 96 PPI Pixels at 150 PPI Pixels at 300 PPI Pixels at 600 PPI
0.514193059118
1283859118236
25776118236472
2.547296150300600
385113177354709
3.599132207413827
4113151236472945
51421892955911181
61702273547091417
7.52132834438861772
82273024729451890
1028337859111812362
1234045470914172835
1542556788617723543
20567756118123624724
21595794124024804961
25709945147629535906
287941058165433076614
308501134177235437087
4011341512236247249449
Pixels are calculated as px = cm ร— PPI รท 2.54. Values rounded to the nearest pixel. Note: 2.54 cm = 1 inch.

What is cm To Pixel?

cm to Pixel is a conversion method used to change the measurement of a digital image from centimeters to pixels. This is often necessary because while physical sizes (like centimeters) are used in the real world, digital images are measured in pixels on screens. The conversion rate can vary based on the resolution or PPI (dots per inch) of the screen or image. For example, an image that is 1 cm on a 300 PPI screen would be approximately 118 pixels.

How to Calculate cm To Pixel?

The following steps outline how to calculate the cm To Pixel using the formula: PX = CM * PPI / 2.54.


  1. First, determine the size in centimeters (CM).
  2. Next, determine the resolution of the screen or image (PPI).
  3. Next, use the formula PX = CM * PPI / 2.54 to calculate the size in pixels (PX).
  4. Finally, calculate the cm To Pixel.
  5. After inserting the variables and calculating the result, check your answer with the calculator above.

Example Problem : 

Use the following variables as an example problem to test your knowledge.

size in centimeters (CM) = 10

resolution of the screen or image (PPI) = 300

Calculator Change Log:

  • Current calculator: choose pixels, centimetres or pixel density; enter the target PPI, with 96 as the CSS reference.