PX to REM Converter
Instant, two-way conversion. No button, no reload — just type.
px · 1rem = 16px
CSS output
font-size: 1rem; /* 16px */Common px to rem conversions
Based on a root font size of 16px.
| px | rem |
|---|---|
| 4px | 0.25rem |
| 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 |
| 36px | 2.25rem |
| 40px | 2.5rem |
| 48px | 3rem |
| 56px | 3.5rem |
| 64px | 4rem |
| 72px | 4.5rem |
| 80px | 5rem |
| 96px | 6rem |
| 120px | 7.5rem |
How it works
px → rem: rem = px / base. rem → px: px = rem * base. With the browser default base of 16px, 24px = 1.5rem and 2rem = 32px.
FAQ
Divide the pixel value by the root font size. With the default 16px root size: rem = px / 16. So 24px = 1.5rem.
More converters
- REM to PX ConverterConvert rem to px and px to rem instantly. Zero lag, one-click CSS copy, custom base size.
- PX to EM ConverterConvert px to em and em to px instantly. Custom parent font size, zero lag, one-click CSS copy.
- EM to PX ConverterConvert em to px and px to em instantly. Custom parent font size, zero lag, one-click CSS copy.
- PX to PT ConverterConvert px to pt and pt to px instantly. Zero lag, one-click CSS copy, print-friendly reference table.
- PX to VW ConverterConvert px to vw and vw to px instantly at any viewport width. Zero lag, one-click CSS copy.