Conversion Form

CH
CM

About the Unit

CH: The ch unit is a relative typographic unit based on the width of the '0' character of the current font. This unit is especially useful when you want the width of an element to be proportional to the text content, particularly for input fields or text areas. Using ch ensures that the element size adjusts based on the average character width of the current font, providing precise control over text layout. For example, if you set the width of a text input field to 10ch, it will be wide enough to accommodate 10 '0' characters of the font, making it useful for password fields or numeric inputs. The ch unit is less commonly used than other relative units like em or rem, but it is an excellent choice when precise width based on textual content is needed.

Pro Tip: chcm

Use ch for text width, cm for physical print-based measurements.

Quick Reference: Unit Conversion by Tens

CHCM
10ch2.116667cm
20ch4.233333cm
30ch6.35cm
40ch8.466667cm
50ch10.583333cm
60ch12.7cm
70ch14.816667cm
80ch16.933333cm
90ch19.05cm
100ch21.166667cm
110ch23.283333cm
120ch25.4cm
130ch27.516667cm
140ch29.633333cm
150ch31.75cm
160ch33.866667cm
170ch35.983333cm
180ch38.1cm
190ch40.216667cm
200ch42.333333cm
210ch44.45cm
220ch46.566667cm
230ch48.683333cm
240ch50.8cm
250ch52.916667cm

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 ch and cm without testing on different screen sizes.

Real Code Example

/* Mobile-first card with ch → cm */
.card {
  padding: 0ch;     /* undefinedcm */
  font-size: 1.5rem;
  width: min(90vw, 40ch);
}
Unidade não encontrada.

Keyboard Shortcuts

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

More popular conversions