Toolman

Convert cm to in

At the browser default root font size of 16 px, 1cm = 0.393701in. Change the base below if your project uses a different root size.

Formula

in = cm × 0.393701
cm = in × 2.54

Both units are absolute in CSS, so this ratio never changes regardless of font size or user settings.

CM to IN conversion table

cmin
8cm3.1496in
10cm3.937in
12cm4.7244in
14cm5.5118in
16cm6.2992in
18cm7.0866in
20cm7.874in
24cm9.4488in
28cm11.0236in
32cm12.5984in
36cm14.1732in
40cm15.748in
48cm18.8976in
56cm22.0472in
64cm25.1969in
72cm28.3465in
80cm31.4961in
96cm37.7953in
128cm50.3937in

About cm

One centimetre is 96/2.54 ≈ 37.795 CSS pixels. Useful in print stylesheets, misleading on screen.

About in

CSS defines one inch as exactly 96 pixels. On screen this is a nominal measure, not a guarantee of physical size; in print stylesheets it maps to a real inch.

Which unit should you use?

PropertyRecommended unitWhy
Font sizeremScales with the user's browser font-size preference, which px ignores — an accessibility requirement.
Padding and marginrem or emrem for a consistent global rhythm; em when the spacing should track the component's own text size.
Borders and hairlinespxYou almost always want exactly one crisp pixel, not a value that scales.
Media query breakpointsemHistorically the most reliable across browsers when the user zooms.
Print stylesheetspt, cm, mmThese map to real physical measurements on paper.

Frequently asked questions

What is 16cm in in?

16cm equals 6.2992in at a 16 px root font size.

How do I convert cm to in?

Multiply the cm value by 0.393701. Going the other way, multiply the in value by 2.54.

Does browser zoom change the result?

No. Both units are absolute in CSS and keep the same ratio at any zoom level, though the rendered size on screen changes.

Why does CSS use 96 pixels per inch?

It is a historical convention from early desktop displays that became the fixed CSS reference. It has nothing to do with your monitor's real pixel density — the browser scales CSS pixels to physical ones for you.

Related CSS unit conversions

All CSS unit converters · All converters