Typography / cm → in
Convert Centimeters to CSS inches
Convert absolute CSS lengths and desktop-publishing points. Convert Centimeters (cm) to CSS inches (in). Find the formula, worked examples, unit definitions, and practical guidance below.
Reverse: CSS inches to Centimeters →
How to convert centimeters to CSS inches
These use CSS definitions: 1 inch = 96 CSS pixels = 72 points = 6 picas. A CSS pixel is not a physical screen pixel. Relative em, rem, and viewport units need a rendering context and are excluded.
Use x for the value in cm, b for the intermediate value in in, and y for the result in in.
in = cm × 0.39370078740157477
Worked examples
10 cm ≈ 3.93700787402 in
Step 1: (10 × 0.393700787402) ≈ 3.93700787402 in.
Step 2: 3.93700787402 ÷ 1 ≈ 3.93700787402 in.20 cm ≈ 7.87401574803 in
Step 1: (20 × 0.393700787402) ≈ 7.87401574803 in.
Step 2: 7.87401574803 ÷ 1 ≈ 7.87401574803 in.
Results are rounded to 12 significant digits. Converting units does not increase the precision of the original measurement. Very large or small values outside JavaScript’s finite numeric range are rejected.
About Centimeters
Centimeters (cm) measures typography under the conventions above. The base value in in is (x × 0.393700787402), where x is the numerical value in cm. Factors shown here are rounded for display; calculations use the stored factor.
About CSS inches
CSS inches (in) measures typography under the conventions above. The base value in in is (x × 1), where x is the numerical value in in. Factors shown here are rounded for display; calculations use the stored factor.
Definitions and sources
Keep these unit conventions consistent when using measurements in construction calculations.
Centimeters to CSS inches reference table
| Centimeters (cm) | CSS inches (in) |
|---|---|
| 1 | 0.393700787402 |
| 5 | 1.96850393701 |
| 10 | 3.93700787402 |
| 25 | 9.84251968504 |
| 50 | 19.6850393701 |
| 100 | 39.3700787402 |
| 1000 | 393.700787402 |
Browse every typography conversion →