All tools / Developer and web / PX to REM converter
PX to REM converter
Convert CSS pixels to rem and em.
Loading interactive tool…
Open the full tool for saved settings, clipboard access, or more space.
About this tool
Convert CSS pixels to rem or em, and back, for any base font size. The default base is 16 pixels, the browser default.
How to use it
- Set your base font size.
- Enter pixels or rem.
- Read the converted value.
Questions
- How many rem is 24px?
- With a 16px base, 24px is 1.5rem.
- rem or em?
- rem scales from the root font size. em scales from the parent element's size.