Conversion from 25 CSS pixels to CSS millimeters

=

Invert

Formula to convert CSS pixels (px) to CSS millimeters (mm CSS)

More information

CSS pixels to CSS millimeters conversion table

CSS pixels (px)CSS millimeters (mm CSS)
1 CSS pixel0.264583333333 mm CSS
2 CSS pixels0.529166666667 mm CSS
3 CSS pixels0.79375 mm CSS
4 CSS pixels1.05833333333 mm CSS
5 CSS pixels1.32291666667 mm CSS
10 CSS pixels2.64583333333 mm CSS
20 CSS pixels5.29166666667 mm CSS
25 CSS pixels6.61458333333 mm CSS
50 CSS pixels13.2291666667 mm CSS
100 CSS pixels26.4583333333 mm CSS

Typography reference points

ReferenceCSS pixels (px)CSS millimeters (mm CSS)
Standard printed book body text14.6667 px3.88056 mm CSS
Default browser root font size16 px4.23333 mm CSS
Minimum accessible mobile tap target48 px12.7 mm CSS
One CSS reference inch96 px25.4 mm CSS

Information about the CSS pixel (px)

The CSS pixel is the canonical length unit of Cascading Style Sheets and modern web interface layout. Its symbol is px. Belonging to the W3C CSS layout system rather than describing a single hardware dot, it is defined simultaneously as an optical reference angle and as exactly 1/96 of a CSS inch.

That dual definition solves a problem physical pixels alone could never handle. The W3C defines the reference pixel as the visual angle of one pixel on a 96-dots-per-inch screen held at an arm's length of 28 inches (about 71 centimetres) — roughly 0.0213 degrees. Anchoring layouts to angular size lets a 16-pixel typeface appear broadly comparable on a smartphone held close, a laptop on a desk and a television across a room.

The 96-pixel-per-inch baseline is a piece of computing history. Early Macintosh monitors ran at 72 dots per inch so one screen dot matched one typographical point, whereas Microsoft chose 96 logical dots per inch for Windows in the 1980s to give small letters extra vertical strokes on coarse displays. When CSS 2.1 locked absolute units together, the Windows figure became the universal web constant.

On modern Retina, 4K and smartphone displays, the gap between CSS pixels and physical device pixels is decisive. A screen with a device pixel ratio of two or three paints each CSS pixel across a 2-by-2 or 3-by-3 grid of hardware subpixels, preserving comfortable layout proportions while giving letterforms and icons print-like sharpness.

Everyday web conventions centre on familiar pixel benchmarks. Browsers default body copy to 16 px; accessibility guidelines recommend tap targets of 44 to 48 px; interface icons step through 16, 24, 32 and 48 px; and responsive breakpoints commonly cluster around 768, 1024 and 1280 px.

Because browsers tie every absolute CSS length back to the pixel grid on screen, px remains the shared currency between design tools, front-end code and bitmap imagery.

One CSS pixel equals 0.75 points, 15 twips, 0.0625 picas, 0.0625 CSS rems or ems at the standard 16-pixel browser default, about 0.2646 CSS millimetres, or about 0.01042 CSS inches.


Information about the CSS millimeter (mm CSS)

The CSS millimetre is an SI-derived absolute length unit in the W3C CSS specification, defined as 1/25.4 of a CSS inch, or 96/25.4 (about 3.7795) CSS pixels. Written mm in stylesheets and designated mm CSS in conversion tables, it brings metric paper geometry into web layout and HTML-to-PDF publishing.

In physical metrology, one millimetre is one thousandth of a metre and the international inch is fixed at exactly 25.4 millimetres. CSS preserves that exact 25.4 ratio between its inch and millimetre, locking 1 mm CSS permanently to 96/25.4 CSS pixels and 72/25.4 (about 2.8346) points so conversions among absolute CSS units stay identical across every browser.

That fixed anchor followed a messy early debate. Initial CSS 2 drafts expected browsers to read each monitor's true dot pitch so a 50 mm element measured five centimetres against a plastic ruler on screen. Because displays frequently misreported their dimensions and layouts mixing px and mm fractured whenever ratios drifted, W3C CSS 2.1 tied screens to the reference pixel grid while preserving true physical scale for print media.

CSS millimetres therefore shine wherever web code drives physical paper. Print stylesheets, paged-media engines such as WeasyPrint and Prince, shipping labels and invoice generators specify ISO 216 sizes directly: an A4 page is 210 by 297 mm, an A5 booklet 148 by 210 mm, a European business card 85 by 55 mm, and commercial bleed margins 3 mm.

For designers bridging metric grids and point-sized type, the ratio of roughly 2.8346 points per millimetre — or 37.8 CSS pixels per centimetre — links stationery dimensions directly to editorial scales: a 10 mm margin renders at about 37.8 px on screen and an exact 10 millimetres off a laser printer.

While screen interfaces rely on px and rem for pixel-crisp rendering and accessibility, mm CSS remains the clearest choice for metric print output.

One CSS millimetre equals about 3.7795 CSS pixels, about 2.8346 points, about 0.2362 picas, about 56.6929 twips, or 1/25.4 of a CSS inch (about 0.03937 CSS inches).

Try our other unit converters

LengthMassTemperatureEnergyVolumeSpeedTimeDataPressureFrequencyData-transfer rateVolumetric flow rateAngleAreaPowerTorqueForceFuel economyDensityElectric chargeTypographyIlluminanceLuminanceAccelerationAngular velocityRadioactivityRadiation doseShoe & clothing sizes