How to use the PX to REM Converter
- Choose px → rem or rem → px.
- Enter the value and the root font size (16px by default).
- Copy the result or use the reference table.
How it works
rem = px ÷ root font size; px = rem × root font size.
Worked examples
24px
With a 16px root, 24px = 1.5rem.
Limitations and assumptions
- Users can change their browser's default font size — one reason to prefer rem for accessible typography.
Frequently asked questions
What's the difference between rem and em?
rem is relative to the root (html) font size; em is relative to the parent element's font size.
G
Built and reviewed by Guru G
Calculation logic is covered by automated tests against known values. Last reviewed Nov 6, 2026. Found a problem? Let us know — see our editorial policy.