Convert mm to in
At the browser default root font size of 16 px, 1mm = 0.03937in. Change the base below if your project uses a different root size.
Formula
in = mm × 0.03937
mm = in × 25.4
Both units are absolute in CSS, so this ratio never changes regardless of font size or user settings.
MM to IN conversion table
| mm | in |
|---|---|
| 8mm | 0.314961in |
| 10mm | 0.393701in |
| 12mm | 0.472441in |
| 14mm | 0.551181in |
| 16mm | 0.629921in |
| 18mm | 0.708661in |
| 20mm | 0.787402in |
| 24mm | 0.944882in |
| 28mm | 1.1024in |
| 32mm | 1.2598in |
| 36mm | 1.4173in |
| 40mm | 1.5748in |
| 48mm | 1.8898in |
| 56mm | 2.2047in |
| 64mm | 2.5197in |
| 72mm | 2.8346in |
| 80mm | 3.1496in |
| 96mm | 3.7795in |
| 128mm | 5.0394in |
About mm
One millimetre is about 3.78 CSS pixels. Like centimetres it is a print unit that CSS accepts everywhere.
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?
| Property | Recommended unit | Why |
|---|---|---|
| Font size | rem | Scales with the user's browser font-size preference, which px ignores — an accessibility requirement. |
| Padding and margin | rem or em | rem for a consistent global rhythm; em when the spacing should track the component's own text size. |
| Borders and hairlines | px | You almost always want exactly one crisp pixel, not a value that scales. |
| Media query breakpoints | em | Historically the most reliable across browsers when the user zooms. |
| Print stylesheets | pt, cm, mm | These map to real physical measurements on paper. |
Frequently asked questions
What is 16mm in in?
16mm equals 0.629921in at a 16 px root font size.
How do I convert mm to in?
Multiply the mm value by 0.03937. Going the other way, multiply the in value by 25.4.
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.