Pixels to REM

Convert pixels to rem instantly, with a table for the values people look up most.

100% private — everything runs in your browser

Pixels to REM Conversion Table

1 px = 0.0625 rem · 1 rem = 16 px

The conversion uses a factor of 0.0625. Values are rounded to 4 decimals so they match the converter above.

rem = px ÷ 16  ·  px = rem × 16

Pixels to rem
Pixels (px)REM (rem)
10.0625
20.125
40.25
80.5
100.625
120.75
140.875
161
181.125
201.25
241.5
322
483
644
REM to pixels
REM (rem)Pixels (px)
0.254
0.58
0.7512
116
1.2520
1.524
232
2.540
348
464

Based on the browser default root size of 16px: 16px is 1rem, 24px is 1.5rem and 12px is 0.75rem. If your project sets a different root size, divide by that number instead.

How to Use

  1. 1

    Enter a value in pixels.

  2. 2

    The rem equivalent appears instantly.

  3. 3

    Check the table below for common values.

Examples

16 pixels

Input

16

Output

1 rem

24 pixels

Input

24

Output

1.5 rem

FAQ

How many rem is one pixel?

1 px = 0.0625 rem.

How precise is the conversion?

Results are rounded to 4 decimals and the table uses the same rounding, so both always agree.

What if my root font size is not 16px?

Divide the pixel value by your own root size. With a 10px root, 20px equals 2rem; this page assumes 16px.

Related Tools