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 (px) | REM (rem) |
|---|---|
| 1 | 0.0625 |
| 2 | 0.125 |
| 4 | 0.25 |
| 8 | 0.5 |
| 10 | 0.625 |
| 12 | 0.75 |
| 14 | 0.875 |
| 16 | 1 |
| 18 | 1.125 |
| 20 | 1.25 |
| 24 | 1.5 |
| 32 | 2 |
| 48 | 3 |
| 64 | 4 |
| REM (rem) | Pixels (px) |
|---|---|
| 0.25 | 4 |
| 0.5 | 8 |
| 0.75 | 12 |
| 1 | 16 |
| 1.25 | 20 |
| 1.5 | 24 |
| 2 | 32 |
| 2.5 | 40 |
| 3 | 48 |
| 4 | 64 |
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
Enter a value in pixels.
- 2
The rem equivalent appears instantly.
- 3
Check the table below for common values.
Examples
16 pixels
Input
16Output
1 rem24 pixels
Input
24Output
1.5 remFAQ
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.