PX to REM Converter
Convert pixels to rem and rem to pixels for CSS
| Pixels | rem | em |
|---|---|---|
| 8px | 0.5rem | 0.5em |
| 10px | 0.625rem | 0.625em |
| 12px | 0.75rem | 0.75em |
| 14px | 0.875rem | 0.875em |
| 16px | 1rem | 1em |
| 18px | 1.125rem | 1.125em |
| 20px | 1.25rem | 1.25em |
| 24px | 1.5rem | 1.5em |
| 28px | 1.75rem | 1.75em |
| 32px | 2rem | 2em |
| 36px | 2.25rem | 2.25em |
| 40px | 2.5rem | 2.5em |
| 48px | 3rem | 3em |
| 56px | 3.5rem | 3.5em |
| 64px | 4rem | 4em |
About the PX to REM Converter
The PX to REM Converter translates CSS lengths using the root font size. It helps when a design is measured in pixels but the stylesheet should scale with the user's browser settings.
Designers usually hand over pixel measurements while the codebase uses rem. Converting at the start avoids mixed units, and keeping the root size explicit makes the maths obvious to the next developer.
- ✓Both px to rem and rem to px
- ✓Custom root font size
- ✓Reference table for common sizes
How to use the PX to REM Converter
- 1
Enter the value and choose the direction.
- 2
Adjust the root font size if it is not 16px.
- 3
Copy the rem, em, or pixel result.
Frequently asked questions
Why convert pixels to rem at all?+
rem values follow the root font size, so text and spacing grow for visitors who increase their browser font size, which pixels do not do.
What if my project uses a 62.5% root size?+
That sets the root to 10px. Enter 10 as the root font size and the conversion matches a 1rem = 10px setup.
Save PX to REM Converter to your favorites, or keep browsing converters.
Browse all 45 converters →