Conversion from 4 CSS rems to CSS pixels

=

Invert

Formula to convert CSS rems (rem) to CSS pixels (px)

More information

CSS rems to CSS pixels conversion table

CSS rems (rem)CSS pixels (px)
1 CSS rem16 px
2 CSS rems32 px
3 CSS rems48 px
4 CSS rems64 px
5 CSS rems80 px
10 CSS rems160 px
20 CSS rems320 px
25 CSS rems400 px
50 CSS rems800 px
100 CSS rems1600 px

Typography reference points

ReferenceCSS rems (rem)CSS pixels (px)
Standard printed book body text0.916667 rem14.6667 px
Default browser root font size1 rem16 px
Minimum accessible mobile tap target3 rem48 px
One CSS reference inch6 rem96 px

Information about the CSS rem (rem)

The CSS rem is a font-relative length unit in the W3C CSS layout system, equal to the computed font size of a document's root html element. Its symbol is rem, short for root em. Under the universal 16-pixel default font size shipped by desktop and mobile browsers, 1 rem equals 16 CSS pixels, or 12 points.

Introduced in CSS Values and Units Level 3 and supported across mainstream browsers since the early 2010s, rem solved a notorious maintenance headache of the older em unit. Because em scales relative to an element's parent, nested components multiplied silently: a 0.9 em caption inside a 0.9 em card shrank to 0.81 em, and a third layer fell to 0.729 em. Anchoring every calculation to the single root element eliminated cascading drift.

The unit's greatest practical virtue is accessibility. Hard-coded px font sizes can override a reader's chosen browser text preference, whereas sizing headings, paragraphs and spacing in rem lets low-vision users raise their browser default from 16 px to 24 px and watch the entire interface scale harmoniously with its visual hierarchy intact.

Design systems routinely define modular type and spacing scales in rem: 0.875 rem (14 px) for captions, 1 rem (16 px) for body prose, 1.5 rem (24 px) for subheadings and 2.5 rem (40 px) for display titles, paired with 0.25 rem (4 px) spacing steps. An older habit set the root size to 62.5 per cent (10 px) for easy mental maths, though modern teams keep the 16-pixel root intact so third-party widgets do not shrink unexpectedly.

Because rem has no fixed physical magnitude outside a stylesheet, adjusting the root font size rescales an entire page at once — a clean lever for global density controls.

Conversion tables evaluate 1 rem at the standard 16-pixel browser default, where it aligns directly with one pica and twelve points.

One CSS rem equals 16 CSS pixels (at the standard 16-pixel browser default), 12 points, 1 pica, 1 CSS em, 240 twips, about 4.2333 CSS millimetres, or about 0.1667 CSS inches.


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