Conversion Form

CM
VH

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: cmvh

Use cm for precise print dimensions, vh for fluid height designs.

Quick Reference: Unit Conversion by Tens

CMVH
10cm34.995626vh
20cm69.991251vh
30cm104.986877vh
40cm139.982502vh
50cm174.978128vh
60cm209.973753vh
70cm244.969379vh
80cm279.965004vh
90cm314.96063vh
100cm349.956255vh
110cm384.951881vh
120cm419.947507vh
130cm454.943132vh
140cm489.938758vh
150cm524.934383vh
160cm559.930009vh
170cm594.925634vh
180cm629.92126vh
190cm664.916885vh
200cm699.912511vh
210cm734.908136vh
220cm769.903762vh
230cm804.899388vh
240cm839.895013vh
250cm874.890639vh

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 vh without testing on different screen sizes.

Real Code Example

/* Mobile-first card with cm → vh */
.card {
  padding: 0cm;     /* undefinedvh */
  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