CSS millimeter (mm CSS)

Typography unit · SI system

All units Typography converter

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).

CSS millimeter conversion table

UnitSymbol1 CSS millimeter equals1 of these equalsConverter
CSS pixelpx3.77952755906 px0.264583333333 mm CSSCSS millimeters to CSS pixels
Pointpt2.83464566929 pt0.352777777778 mm CSSCSS millimeters to Points
Picapc0.236220472441 pc4.23333333333 mm CSSCSS millimeters to Picas
CSS remrem0.236220472441 rem4.23333333333 mm CSSCSS millimeters to CSS rems
CSS emem0.236220472441 em4.23333333333 mm CSSCSS millimeters to CSS ems
Twiptwip56.6929133858 twip0.0176388888889 mm CSSCSS millimeters to Twips
CSS inchin CSS0.0393700787402 in CSS25.4 mm CSSCSS millimeters to CSS inches