Twip (twip)

Typography unit · Non-system units

All units Typography converter

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.

Twip conversion table

UnitSymbol1 Twip equals1 of these equalsConverter
CSS pixelpx0.0666666666667 px15 twipTwips to CSS pixels
Pointpt0.05 pt20 twipTwips to Points
Picapc0.00416666666667 pc240 twipTwips to Picas
CSS remrem0.00416666666667 rem240 twipTwips to CSS rems
CSS emem0.00416666666667 em240 twipTwips to CSS ems
CSS millimetermm CSS0.0176388888889 mm CSS56.6929133858 twipTwips to CSS millimeters
CSS inchin CSS0.000694444444444 in CSS1440 twipTwips to CSS inches