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.
| Unit | Symbol | 1 Twip equals | 1 of these equals | Converter |
|---|---|---|---|---|
| CSS pixel | px | 0.0666666666667 px | 15 twip | Twips to CSS pixels |
| Point | pt | 0.05 pt | 20 twip | Twips to Points |
| Pica | pc | 0.00416666666667 pc | 240 twip | Twips to Picas |
| CSS rem | rem | 0.00416666666667 rem | 240 twip | Twips to CSS rems |
| CSS em | em | 0.00416666666667 em | 240 twip | Twips to CSS ems |
| CSS millimeter | mm CSS | 0.0176388888889 mm CSS | 56.6929133858 twip | Twips to CSS millimeters |
| CSS inch | in CSS | 0.000694444444444 in CSS | 1440 twip | Twips to CSS inches |