Conversion from 20 Twips to CSS pixels

=

Invert

Formula to convert Twips (twip) to CSS pixels (px)

More information

Twips to CSS pixels conversion table

Twips (twip)CSS pixels (px)
1 Twip0.0666666666667 px
2 Twips0.133333333333 px
3 Twips0.2 px
4 Twips0.266666666667 px
5 Twips0.333333333333 px
10 Twips0.666666666667 px
20 Twips1.33333333333 px
25 Twips1.66666666667 px
50 Twips3.33333333333 px
100 Twips6.66666666667 px

Typography reference points

ReferenceTwips (twip)CSS pixels (px)
Standard printed book body text220 twip14.6667 px
Default browser root font size240 twip16 px
Minimum accessible mobile tap target720 twip48 px
One CSS reference inch1440 twip96 px

Information about the Twip (twip)

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.


Information about the CSS pixel (px)

The CSS pixel is the canonical length unit of Cascading Style Sheets and modern web interface layout. Its symbol is px. Belonging to the W3C CSS layout system rather than describing a single hardware dot, it is defined simultaneously as an optical reference angle and as exactly 1/96 of a CSS inch.

That dual definition solves a problem physical pixels alone could never handle. The W3C defines the reference pixel as the visual angle of one pixel on a 96-dots-per-inch screen held at an arm's length of 28 inches (about 71 centimetres) — roughly 0.0213 degrees. Anchoring layouts to angular size lets a 16-pixel typeface appear broadly comparable on a smartphone held close, a laptop on a desk and a television across a room.

The 96-pixel-per-inch baseline is a piece of computing history. Early Macintosh monitors ran at 72 dots per inch so one screen dot matched one typographical point, whereas Microsoft chose 96 logical dots per inch for Windows in the 1980s to give small letters extra vertical strokes on coarse displays. When CSS 2.1 locked absolute units together, the Windows figure became the universal web constant.

On modern Retina, 4K and smartphone displays, the gap between CSS pixels and physical device pixels is decisive. A screen with a device pixel ratio of two or three paints each CSS pixel across a 2-by-2 or 3-by-3 grid of hardware subpixels, preserving comfortable layout proportions while giving letterforms and icons print-like sharpness.

Everyday web conventions centre on familiar pixel benchmarks. Browsers default body copy to 16 px; accessibility guidelines recommend tap targets of 44 to 48 px; interface icons step through 16, 24, 32 and 48 px; and responsive breakpoints commonly cluster around 768, 1024 and 1280 px.

Because browsers tie every absolute CSS length back to the pixel grid on screen, px remains the shared currency between design tools, front-end code and bitmap imagery.

One CSS pixel equals 0.75 points, 15 twips, 0.0625 picas, 0.0625 CSS rems or ems at the standard 16-pixel browser default, about 0.2646 CSS millimetres, or about 0.01042 CSS inches.

Try our other unit converters

LengthMassTemperatureEnergyVolumeSpeedTimeDataPressureFrequencyData-transfer rateVolumetric flow rateAngleAreaPowerTorqueForceFuel economyDensityElectric chargeTypographyIlluminanceLuminanceAccelerationAngular velocityRadioactivityRadiation doseShoe & clothing sizes