Unit-To-Unit Pixels conversion

PX to MM

1 CSS pixel = 0.264583333 millimetres

At the CSS reference resolution of 96 DPI, one pixel is 0.264583 mm. This is a fixed ratio inside CSS and not a statement about your monitor.

Formula mm = px × 0.264583333333

=

Type in either field — the other updates on every keystroke. Need other units? Open the full pixels converter.

PX to MM — quick reference
CSS pixelMillimetre
1 px0.264583 mm
2 px0.529167 mm
3 px0.79375 mm
4 px1.058333 mm
5 px1.322917 mm
10 px2.645833 mm
15 px3.96875 mm
20 px5.291667 mm
25 px6.614583 mm
50 px13.229167 mm
100 px26.458333 mm
500 px132.291667 mm
1000 px264.583333 mm
MM to PX — reverse
MillimetreCSS pixel
1 mm3.779528 px
2 mm7.559055 px
3 mm11.338583 px
4 mm15.11811 px
5 mm18.897638 px
10 mm37.795276 px
15 mm56.692913 px
20 mm75.590551 px
25 mm94.488189 px
50 mm188.976378 px
100 mm377.952756 px
500 mm1889.76378 px
1000 mm3779.527559 px

Worked examples

Common values
SituationFromTo
Hairline border1 px0.2646 mm
Icon24 px6.35 mm
Button height48 px12.7 mm
Phone width390 px103.2 mm
Tablet width768 px203.2 mm
A4 paper width794 px210.1 mm

Mental-math shortcut

Multiply by 0.265, or divide by 3.78. 100 px is about 26.5 mm.

Where this conversion comes up

Design hand-offs for print, signage or laser cutting need millimetres. A4 paper (210 × 297 mm) is about 794 × 1123 px at 96 PPI.

Common mistakes

The 0.2646 factor only holds at 96 PPI. At 300 PPI one pixel is 0.0847 mm, so the same file prints much smaller.

Background

An inch is exactly 25.4 mm and a CSS pixel is 1/96 inch, so one pixel is 25.4 ÷ 96 mm.

Learn more

One CSS pixel is 1/96 of an inch, which is about 0.2646 mm. In print at 300 PPI, one image pixel covers only about 0.0847 mm.

Related guides: Digital and print layout units: px, rem, em, points and DPI

Frequently asked

How many millimetres are in a CSS pixel?
1 CSS pixel = 0.264583333 millimetres. In the other direction, 1 millimetre = 3.779527559 CSS pixels.
What is a CSS pixel?
A CSS pixel is a reference unit of 1/96 inch, not a physical device pixel. Browsers scale it by the device pixel ratio, so one CSS pixel may cover four hardware pixels on a 2× display.
What is a millimetre?
One millimetre is 3.7795275590551 CSS pixels at the CSS reference resolution of 96 DPI. Real print output should be computed against the actual device DPI instead.
How many millimetres is 100 px?
At 96 px per inch, 100 px is 26.46 mm.