Conversion from 20 CSS pixels to CSS inches

=

Invert

Formula to convert CSS pixels (px) to CSS inches (in CSS)

More information

CSS pixels to CSS inches conversion table

CSS pixels (px)CSS inches (in CSS)
1 CSS pixel0.0104166666667 in CSS
2 CSS pixels0.0208333333333 in CSS
3 CSS pixels0.03125 in CSS
4 CSS pixels0.0416666666667 in CSS
5 CSS pixels0.0520833333333 in CSS
10 CSS pixels0.104166666667 in CSS
20 CSS pixels0.208333333333 in CSS
25 CSS pixels0.260416666667 in CSS
50 CSS pixels0.520833333333 in CSS
100 CSS pixels1.04166666667 in CSS

Typography reference points

ReferenceCSS pixels (px)CSS inches (in CSS)
Standard printed book body text14.6667 px0.152778 in CSS
Default browser root font size16 px0.166667 in CSS
Minimum accessible mobile tap target48 px0.5 in CSS
One CSS reference inch96 px1 in CSS

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.


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.

Try our other unit converters

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