How to use it
- Enter a value and its unit.
- Set the root and parent font sizes if they are not 16 px.
- Read px, rem, em and pt.
How it works
rem is relative to the root element’s font size, em to the parent element’s font size. px = rem × root size = em × parent size. A CSS inch is 96 px and 72 pt, so 1 pt = 96 ÷ 72 px ≈ 1.3333 px.
Examples
- 24 px at a 16 px root is 1.5 rem.
- 12 pt = 16 px.
Limitations
- Browsers default to a 16 px root size, but users can change it in settings, which is a reason to prefer rem for text.
- Physical sizes of CSS pixels vary by device.
References
Last verified . See our Accuracy & Editorial Policy. Found a problem? Email contact@tools.gift.