Centimeters to Pixels Converter

On the web, 1 inch = 96 pixels. For digital or print designs, adjust the PPI value accordingly. Learn more about PPI and DPI below..

CM

0 PX

What is Cm to PX Converter?

Centimeters to Pixels converter is a free online tool that helps you convert the centimeter values into pixels. With the help of this tool, you can enhance your productivity in print media, web designing, and overall website development.

centimeters to pixels

How to use a Centimeter to Pixel converter

Before using this tool, you must have explicit knowledge about PPI and DPI and how they differ. So, you can read the previous article, Pixels to Centimeter Converter, in which detailed information about using PPI values in different fields is provided.

So, after understanding these terms, you can follow the below steps to use this calculator:

Step 1: Set the PPI value; the default standard value for the Web is 96 PPI.

Step 2: Now input the cm value you want to convert into pixels.

Step 3: Click the convert button to get your results in px.

You can also do the reverse conversion by using pixels to centimeters for free.

Cm to Px Conversion Table

For convenience, you can also use the table below, which shows some common centimeters to pixels conversions. Moreover, you can confirm the results by using the above tool.

CM PX
0.7528.35
137.8
1.556.7
275.6
2.594.5
3113.4
3.5132.3
4151.2
4.5170.1
5189
5.5207.9
6226.8
6.5245.7
7264.6
7.5283.5
8302.4
8.5321.3
9340.2
9.5359.1
10378
12.5472.5
15567
17.5661.5
20756
22.5850.5
25945
27.51039.5
301134
32.51228.5
351323
37.51417.5
401512
501890
602268
752835
1003780

Cm to Px Conversion Formula

If you use the previous tool to convert pixels into centimeters, you will understand how the formula originated. As for Px to cm, the formula is:

1Cm = 96Px / 2.54

So for px to cm, it will be:

Pixels = centimeters * (96px/2.54)
px = cm * (96px/2.54)

Important Note: Make sure that the value of Pixels Per Inch is 96px on the Web. However, if you are working with print media, it may change according to your targeted DPI or PPI. For example,  a standard printer has 300 dpi.

You can try feet to pixels for more conversions.

Examples Of Centimeters

Below are some of the few centimeters examples, that can give clear idea to use centimeters:

Example 1: Setting Print Styles

Scenario: You’re creating print-specific styles for a webpage, and you need precise control over dimensions in centimeters.

CSS:

@media print {
  .page {
    width: 21cm;
    height: 29.7cm; /* Standard A4 size */
    margin: 2cm;
  }
}

Explanation: Within a @media print rule, centimeters can be useful for defining page size, margins, and other physical dimensions. This is the most common (and arguably most appropriate) use case for centimeters in CSS.

Example 2: Setting Image Dimension

Scenario: You want an image to be a specific physical size in centimeters.

CSS:

img {
  width: 5cm;
  height: 5cm;
}

Explanation: This sets the image dimensions to 5 centimeters by 5 centimeters. However, this will only be accurate in print. On screen, the image size will depend on the screen’s DPI (dots per inch), which varies significantly.