PX to REM Converter
Convert CSS pixels to rem and em based on a root font size.
Result
Result (rem)
1.5000
Result (em)
1.5000
How it works
rem = pixels ÷ root font size
rem and em scale with the font size, which keeps layouts accessible. With the default 16 px root, 24 px equals 1.5 rem.
Advertisement
Frequently asked questions
Why use rem instead of px?
rem respects the user’s font-size setting, so text and spacing scale for accessibility.
What is the default base?
Browsers default to 16 px for the root font size unless you change it.
Advertisement