How to use it
- Enter the base font size, 16 by default.
- Type pixels to see rem, or type rem to see pixels.
- Use the table for common sizes.
How it works
The formula is simple: rem equals pixels divided by the base size, and pixels equal rem times the base size. The table recalculates for whatever base you enter.
Frequently asked questions
What is rem?
One rem equals the font size of the root html element. Browsers default to 16 pixels, so 1rem is 16px unless you change it.
Why use rem instead of px?
Rem sizes scale when a visitor changes their browser font size, which helps readability and accessibility.
What base size should I use?
Use 16 unless your stylesheet sets a different font size on the html element. Some sites use 62.5 percent so that 1rem is 10px.
Can I convert em as well?
Em works the same way as rem when its parent font size equals the base size you enter, so the numbers match in that case.