A rem (root em) is a CSS length relative to the root (html) font size. To see what a rem value resolves to in pixels, this converter multiplies it by that root size — useful for debugging layouts, matching design specs, and sanity-checking a spacing scale.
How it works
The formula is simply:
px = rem × root font size
The root font size is the font-size set on the html element. Browsers default it to 16px, so 1rem = 16px unless a stylesheet changes it. You enter the rem value and the root size; the tool multiplies them and shows the pixel result along with the multiplication so you can see exactly how it was derived.
Example
With the default 16px root:
- 1.5rem × 16 = 24px
- 0.875rem × 16 = 14px
- 2rem × 16 = 32px
If your stylesheet sets the root to 10px (the 62.5% trick), then 1.5rem × 10 = 15px instead.
| rem | Root 16px | Root 10px |
|---|---|---|
| 0.5 | 8px | 5px |
| 1 | 16px | 10px |
| 1.5 | 24px | 15px |
| 2 | 32px | 20px |
The conversion runs entirely in your browser and nothing is sent anywhere.