CSS Units
- Free forever
- No sign-up
- Instant results
PX to REM Converter
Translate pixel values from your design files into CSS REM units instantly. Enter your pixel value and root font size and the REM equivalent appears straight away, ready to copy into your stylesheet.
REM value
—
When would you use this?
If you've ever stared at a design file showing '24px' and wondered what that is in REM, this is the tool for you. REM units scale relative to the root font size of your HTML document, usually 16px by default, which makes them brilliant for accessible, scalable layouts. Divide your pixel value by the root font size and you've got your REM. This calculator does that maths instantly.
Common PX → REM values (16px root)
| Pixels | REM | Common use |
|---|---|---|
| 10px | 0.625rem | Small labels |
| 12px | 0.75rem | Caption / meta text |
| 14px | 0.875rem | Secondary text |
| 16px | 1rem | Body text (browser default) |
| 18px | 1.125rem | Large body / small heading |
| 20px | 1.25rem | Lead text |
| 24px | 1.5rem | H3 / subheadings |
| 32px | 2rem | H2 |
| 40px | 2.5rem | H1 / display |
| 48px | 3rem | Hero headings |
| 64px | 4rem | Large display type |