Utinzo

Pixels to REM (px to rem)

Convert pixels to rem with a calculator and a lookup table. The ratio is 0.0625, so 1 px = 0.0625 rem; examples and the reverse direction included.

Did this tool work for you?

How pixels convert to rem

One pixel corresponds to 0.0625 rem here. That single figure is the whole conversion: take the number of pixels, multiply by 0.0625, and the product is the number of rem.

rem = px × 0.0625

Because the relationship is a plain ratio, doubling the pixels doubles the rem, and 0 px stays 0 rem. The inverse ratio is 16, meaning 1 rem = 16 px.

Pixels and their value in rem

Each of the 12 rows pairs an amount in pixels with its equivalent in rem. Scale up or down by powers of ten, since the ratio 0.0625 does not change.

px to rem, 12 values
Pixels (px)Rem (rem)
100.625
251.5625
503.125
1006.25
25015.625
50031.25
1,00062.5
2,500156.25
5,000312.5
10,000625
25,0001,562.5
100,0006,250

These figures are generated, not typed in by hand, and follow the widget's rounding rules described in the questions further down.

Three sample conversions from pixels to rem

With 7,500 px, the multiplication by 0.0625 produces 468.75 rem once rounded the way the widget rounds.

Take 12,000 pixels as the second case. The widget returns 750 rem, and that figure divided by 0.0625 returns to about 12,000.

Going the opposite way, 9.5 rem comes to 152 pixels using the inverse ratio 16.

Converting rem back to pixels

The mirror-image page is REM to Pixels (rem to px), where 1 rem = 16 px. Its table and examples use rem as the starting unit.

The full Typography Unit Converter lets you choose any two units from the same list, not only px and rem.

Related conversions for pixels and rem

Other pairs that use the same unit table are listed here.

Frequently asked questions

What is 1 px in rem?

One pixel equals 0.0625 rem. The relationship is linear, so 10 px is 0.625 rem and 100 px is 6.25 rem.

How many px make up 1 rem?

1 rem = 16 px. The reverse ratio is the reciprocal of 0.0625, so 10 rem comes to 160 px.

What is 1,500 pixels in rem?

1,500 px converts to 93.75 rem, using the ratio 0.0625 between the two units.

How many decimal places does the px to rem converter show?

Rounding happens only when a result is displayed. Between 1 and 1,000 the display has 10 significant digits, under 1 it has 8, and from 1,000 up it allows 6 decimals with comma separators; very large or very small results switch to scientific notation. Entering 0.123456789 px shows 0.0077160493 rem, and 1,234.5678 px shows 77.1604875 rem.

Which formula does the px-to-rem converter use?

Conversion goes through a shared reference unit: px is scaled into it, and the result is scaled out into rem. The two steps combine into one multiplication by 0.0625.

How do I turn rem into pixels?

The page titled "REM to Pixels (rem to px)" covers it, or you can press the swap button in the widget above. In the reverse direction multiply by 16, or equivalently divide by 0.0625, giving 400 px for an input of 25 rem.

Pixels to REM (px to rem) – Utinzo

Learn more from an authoritative source:

NIST
Related tools

Results are estimates for informational purposes only and do not constitute professional financial, medical, legal, or technical advice. Read full disclaimer →