Formula.rem = pixels ÷ 16.
Relationship.1 rem = 16 px.
Worked example. 24 px = 1.5 rem.
1 rem = 16 px, so 24 px = 1.5 rem. Type any value below to convert px to rem instantly.
Reference Table
| px | rem | em | pt | % |
|---|---|---|---|---|
| 0.024 | 0.0015 | 0.0015 | 0.0180000045 | 0.15 |
| 0.24 | 0.015 | 0.015 | 0.180000045 | 1.5 |
| 2.4 | 0.15 | 0.15 | 1.8 | 15 |
| 24 | 1.5 | 1.5 | 18.000005 | 150 |
| 240 | 15 | 15 | 180.000045 | 1500 |
| 2400 | 150 | 150 | 1800.0005 | 15000 |
| 24000 | 1500 | 1500 | 18000.0045 | 150000 |
Formula.rem = pixels ÷ 16.
Relationship.1 rem = 16 px.
Worked example. 24 px = 1.5 rem.
| px | rem |
|---|---|
| 1 | 0.0625 |
| 2 | 0.125 |
| 4 | 0.25 |
| 6 | 0.375 |
| 8 | 0.5 |
| 10 | 0.625 |
| 12 | 0.75 |
| 13 | 0.8125 |
| 14 | 0.875 |
| 15 | 0.9375 |
| 16 | 1 |
| 18 | 1.125 |
| 20 | 1.25 |
| 22 | 1.375 |
| 24 | 1.5 |
| 28 | 1.75 |
| 30 | 1.875 |
| 32 | 2 |
| 36 | 2.25 |
| 40 | 2.5 |
| 48 | 3 |
| 56 | 3.5 |
| 64 | 4 |
| 72 | 4.5 |
| 96 | 6 |
html { font-size: 62.5% }, which makes the root 10 px, so 24 px becomes 2.4 rem. This converter assumes the 16 px default.html) font size, so 1.5 rem is the same everywhere on the page. em is relative to the font size of the element itself, so it compounds: a 1.5 em element inside another 1.5 em element renders at 2.25 times the root size.