Conversion from 5 CSS inches to CSS millimeters

=

Invert

Formula to convert CSS inches (in CSS) to CSS millimeters (mm CSS)

More information

CSS inches to CSS millimeters conversion table

CSS inches (in CSS)CSS millimeters (mm CSS)
1 CSS inch25.4 mm CSS
2 CSS inches50.8 mm CSS
3 CSS inches76.2 mm CSS
4 CSS inches101.6 mm CSS
5 CSS inches127 mm CSS
10 CSS inches254 mm CSS
20 CSS inches508 mm CSS
25 CSS inches635 mm CSS
50 CSS inches1270 mm CSS
100 CSS inches2540 mm CSS

Typography reference points

ReferenceCSS inches (in CSS)CSS millimeters (mm CSS)
Standard printed book body text0.152778 in CSS3.88056 mm CSS
Default browser root font size0.166667 in CSS4.23333 mm CSS
Minimum accessible mobile tap target0.5 in CSS12.7 mm CSS
One CSS reference inch1 in CSS25.4 mm CSS

Information about the CSS inch (in CSS)

The CSS inch is the US Customary-derived master absolute length anchor of the W3C CSS layout specification, defined as exactly 96 CSS pixels, 72 points, 6 picas and 25.4 CSS millimetres. Written in inside stylesheets and labelled in CSS in conversion tables, it binds traditional print measurements and web coordinates into one exact set of rational ratios.

Every absolute length in modern CSS traces its value back to this single equation: 1 CSS inch = 96 px = 72 pt = 6 pc = 25.4 mm. The 96-pixel figure came from early Microsoft Windows assuming 96 logical dots per inch so small fonts rendered more legibly than on 72-dpi monitors. After years of browser inconsistency, W3C CSS 2.1 ratified the 96-pixel inch so text, borders and graphics aligned identically everywhere.

Like the CSS millimetre, a CSS inch guarantees a true 25.4-millimetre physical span only in print media and vector PDFs, where printer drivers control exact dot placement. On monitors, tablets and projectors, browsers prioritise crisp integer CSS pixels and comfortable viewing angles over ruler fidelity, so a 1-inch square on screen often differs noticeably from a wooden ruler depending on screen density and display scaling.

In North American HTML-to-PDF workflows, CSS inches remain the natural language. Academic templates, browser print sheets and automated reports declare US Letter paper at 8.5 by 11 in (816 by 1,056 px), standard margins at 1 in (96 px), thermal shipping labels at 4 by 6 in, and business cards at 3.5 by 2 in without messy decimals.

The CSS inch also serves as a clean hub across digital typography: dividing by 72 recovers the PostScript point, dividing by 6 yields the pica, dividing by 96 gives the CSS pixel, and dividing by 1,440 produces the twip still embedded in Word and RTF files.

One CSS inch equals exactly 96 CSS pixels, 72 points, 6 picas, 1,440 twips, 25.4 CSS millimetres, or 6 CSS rems at the standard 16-pixel browser default.


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