Toolman

Convert mm to px

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

Formula

px = mm × 3.7795
mm = px × 0.264583

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

MM to PX conversion table

mmpx
8mm30.2362px
10mm37.7953px
12mm45.3543px
14mm52.9134px
16mm60.4724px
18mm68.0315px
20mm75.5906px
24mm90.7087px
28mm105.83px
32mm120.94px
36mm136.06px
40mm151.18px
48mm181.42px
56mm211.65px
64mm241.89px
72mm272.13px
80mm302.36px
96mm362.83px
128mm483.78px

About mm

One millimetre is about 3.78 CSS pixels. Like centimetres it is a print unit that CSS accepts everywhere.

About px

The CSS pixel is the reference unit of the web. It is not a physical device pixel — it is an angular measure standardised at 1/96th of an inch, which the browser scales for device pixel ratio and zoom.

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 16mm in px?

16mm equals 60.4724px at a 16 px root font size.

How do I convert mm to px?

Multiply the mm value by 3.7795. Going the other way, multiply the px value by 0.264583.

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