| CSS millimeters (mm CSS) | Twips (twip) |
|---|---|
| 1 CSS millimeter | 56.6929133858 twip |
| 2 CSS millimeters | 113.385826772 twip |
| 3 CSS millimeters | 170.078740157 twip |
| 4 CSS millimeters | 226.771653543 twip |
| 5 CSS millimeters | 283.464566929 twip |
| 10 CSS millimeters | 566.929133858 twip |
| 20 CSS millimeters | 1133.85826772 twip |
| 25 CSS millimeters | 1417.32283465 twip |
| 50 CSS millimeters | 2834.64566929 twip |
| 100 CSS millimeters | 5669.29133858 twip |
| Reference | CSS millimeters (mm CSS) | Twips (twip) |
|---|---|---|
| Standard printed book body text | 3.88056 mm CSS | 220 twip |
| Default browser root font size | 4.23333 mm CSS | 240 twip |
| Minimum accessible mobile tap target | 12.7 mm CSS | 720 twip |
| One CSS reference inch | 25.4 mm CSS | 1440 twip |
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).
The twip is a device-independent typographic unit used inside document formats and operating-system graphics layers, defined as one twentieth of a point, or exactly 1/1,440 of an inch. Its symbol is twip, a portmanteau of twentieth of an imperial point. At roughly 0.01764 millimetres — about a quarter of a human hair's width — it gives sub-pixel positioning using plain integers.
Choosing 1,440 divisions per inch was shrewd engineering arithmetic. Early desktop hardware ran at incompatible densities — 72 dpi on Macintosh screens, 96 and 120 dpi on Windows monitors, and 180, 240, 360 or 720 dpi on dot-matrix and inkjet printers — while floating-point maths was slow. Because 1,440 divides evenly by every one of those resolutions, layout engines could store coordinates as fast whole numbers without accumulating rounding drift.
Microsoft embedded twips deeply across its platform stack. Windows GDI provides a dedicated MM_TWIPS mapping mode, Visual Basic and Microsoft Access sized forms and reports in twips by default, and the Rich Text Format (RTF) specification still writes page margins, indents and tab stops in twips — a one-inch margin appears literally as 1,440. Modern Word Open XML (.docx) files likewise store page dimensions, table widths and spacing in twips under the attribute name dxa.
The unit also reached vector animation and publishing pipelines: Adobe Flash (SWF) stored curves and glyph outlines on an integer twip grid for compact files, and PDF converters still translate through twips behind the scenes.
At this resolution, a US Letter sheet (8.5 by 11 inches) spans 12,240 by 15,840 twips and an A4 sheet about 11,906 by 16,838 twips. Standard 12-point text stands 240 twips tall, one 96-dpi CSS pixel equals exactly 15 twips, and a half-point table rule measures 10 twips.
One twip equals 0.05 points (1/20 of a point), 1/1,440 of a CSS inch (about 0.0006944 CSS inches), 1/15 of a CSS pixel (about 0.06667 CSS pixels), 1/240 of a pica (about 0.004167 picas), or about 0.01764 CSS millimetres.