Conversion Form

CM
PX

About the Unit

Centimeter (cm): The centimeter (cm) is a metric physical unit, equivalent to 1/100 of a meter. In CSS, the cm unit is primarily used for print design, as it allows specifying exact physical dimensions for layouts that will be printed or exported to physical formats, like PDF. Using cm ensures that the layout elements will have the exact desired size when printed, regardless of screen resolution or device size. 1cm is approximately equal to 37.795px on a 96 DPI screen, making it useful when precise print measurements are needed, but less practical for digital web design, where relative units like px or em are more flexible.

Pro Tip: cmpx

1cm = 37.795px. Convert cm to pixels for screen designs.

Quick Reference: Unit Conversion by Tens

CMPX
10cm377.952756px
20cm755.905512px
30cm1133.858268px
40cm1511.811024px
50cm1889.76378px
60cm2267.716535px
70cm2645.669291px
80cm3023.622047px
90cm3401.574803px
100cm3779.527559px
110cm4157.480315px
120cm4535.433071px
130cm4913.385827px
140cm5291.338583px
150cm5669.291339px
160cm6047.244094px
170cm6425.19685px
180cm6803.149606px
190cm7181.102362px
200cm7559.055118px
210cm7937.007874px
220cm8314.96063px
230cm8692.913386px
240cm9070.866142px
250cm9448.818898px

Live Unit Preview

See how different CSS units affect the size of the box below:

10px

10rem

10em

10%

10vw

10vh

Common Mistake

Be cautious when mixing cm and px without testing on different screen sizes.

Real Code Example

/* Mobile-first card with cm → px */
.card {
  padding: 0cm;     /* undefinedpx */
  font-size: 1.5rem;
  width: min(90vw, 40ch);
}

Frequently Asked Questions About CM

When should I use cm instead of cm?

Use cm for print layouts or physical dimensions.

How many cm is 1cm?

1cm = 37.8px approximately.

Is cm affected by screen size?

No, it's a fixed physical measurement.

Is cm good for web design?

Not typically, better for print styles.

Keyboard Shortcuts

  • Ctrl + C: Convert
  • Ctrl + I: Invert units
  • Esc: Reset values

More popular conversions