Convert Pixels to Rem
Enter a pixel value to convert it to rem units. The conversion divides your pixel value by the root font size (default 16px). This is the most common CSS unit conversion for modern web development.
Common Pixel to Rem Values
| Pixels | Rem (16px base) | Rem (14px base) | Use Case |
|---|---|---|---|
| 12px | 0.75rem | 0.857rem | Small text |
| 14px | 0.875rem | 1rem | Body text |
| 16px | 1rem | 1.143rem | Base font size |
| 18px | 1.125rem | 1.286rem | Heading text |
| 24px | 1.5rem | 1.714rem | H3 headings |
| 32px | 2rem | 2.286rem | H2 headings |
| 48px | 3rem | 3.429rem | H1 headings |
How to Use
- The tool opens with 16px pre-filled, converting to 1rem
- Type any pixel value in the input field
- Adjust the base font size if your project uses something other than 16px
- Copy the rem value from the results table
Real-World Example
A design spec calls for 24px padding with a 16px root font size. Divide 24 by 16 to get 1.5rem. If your root font size is 14px, divide 24 by 14 to get approximately 1.714rem.
For more conversions, see the full CSS Units Converter or try Rem to Px.