PX to REM converter
Convert CSS units with your own base font size.
Ad space
How to convert px to rem
rem = px ÷ base font size. Browsers use 16px by default, so 24px is 1.5rem. To go back, px = rem × base. Using rem lets text scale when a user changes their browser font size, which helps accessibility.
Reference at 16px base
| px | rem |
|---|---|
| 8px | 0.5rem |
| 10px | 0.625rem |
| 12px | 0.75rem |
| 14px | 0.875rem |
| 16px | 1rem |
| 18px | 1.125rem |
| 20px | 1.25rem |
| 24px | 1.5rem |
| 28px | 1.75rem |
| 32px | 2rem |
| 40px | 2.5rem |
| 48px | 3rem |
FAQ
What is rem?
It means root em: a size relative to the font size of the html element.
What is the default base size?
16px in all major browsers.
Rem or em?
Rem refers to the root, so it stays predictable. Em depends on the parent element and can compound.