PX to REM Converter
Convert pixels to rem from a root font size.
rem
1
Worked example
16 pixels at a root size of 16 is 1 rem. 24 pixels at that root is 1.5 rem. If the root is 10 pixels, 16 pixels is 1.6 rem.
FAQ
- What is a rem?
- A rem is the root font size, usually the font-size on the html element. The default in most browsers is 16 pixels.
- Should I change the root?
- Only if your stylesheet sets a different root font size. The converter divides pixels by the root you enter.
- Is this the same as em?
- No. rem is always relative to the root. em is relative to the font size of the parent element.