MM to PX for CSS

Convert CSS millimeters to CSS reference pixels using the fixed 96 PPI relationship.

CSS dimensions

mm
mm
PPI

CSS output

—
Width
—
Height
—
Points
—
Megapixels
—

CSS output

CSS defines 1in as 96px and 1in as 25.4mm, so 1mm equals about 3.7795px.

How MM to PX for CSS Works

📐

Enter the mm value

Type the millimeter value you want to convert to CSS pixels.

🔒

Fixed CSS ratio

The CSS specification defines 1in = 96px = 25.4mm. This ratio is always constant.

💻

Get the CSS output

The calculator shows the pixel value and generates a ready-to-use CSS declaration.

The CSS specification defines absolute length units with a fixed relationship: 1 inch equals exactly 96 CSS pixels and 25.4 millimeters. This means 1 mm is always 96 ÷ 25.4 ≈ 3.7795275591 CSS pixels. This ratio never changes regardless of the physical display — CSS pixels are logical units that the browser maps to device pixels using the device pixel ratio.

MM to PX for CSS Formula

px = mm × 3.7795275591 Conversion Formula

The CSS specification defines this exact relationship: 1in = 96px = 25.4mm. The conversion factor 96 ÷ 25.4 = 3.7795275591 is a fixed constant in all browsers.

1 mm
1 × 3.7795
= 3.7795 px
10 mm (1 cm)
10 × 3.7795
= 37.7953 px
25.4 mm (1 in)
25.4 × 3.7795
= 96 px
Reverse Formula
mm = px ÷ 3.7795275591

MM to PX for CSS Conversion Chart

CSS mm-to-px conversions at the fixed 96 PPI reference. These values are identical across all modern browsers.

mm 72 PPI96 PPI150 PPI300 PPI
1 mm 2.83463.77955.905511.8110
2 mm 5.66937.559111.811023.6220
3 mm 8.503911.338617.716535.4331
5 mm 14.173218.897629.527659.0551
10 mm 28.346537.795359.0551118.1102
15 mm 42.519756.692988.5827177.1654
20 mm 56.692975.5906118.1102236.2205
25 mm 70.866194.4882147.6378295.2756
50 mm 141.7323188.9764295.2756590.5512
100 mm 283.4646377.9528590.55121181.1024