How to Convert PX to REM?
To convert px to rem, you need to know the size of 1 REM, which is typically 16px by default. Then, simply use the formula:
px ÷ 16 = rem
For example, with 1rem being 16px, 32px would convert to:
32 ÷ 16 = 2rem
A tool that converts PX to REM for a specific breakpoint, helping to measure pixels accurately.
This table shows common px to rem values with a 16px base font size. Use the converter above for more conversions.
| Pixels (px) | Rem |
|---|---|
| 1px | 0.0625rem |
| 2px | 0.125rem |
| 3px | 0.1875rem |
| 5px | 0.3125rem |
| 8px | 0.5rem |
| 10px | 0.625rem |
| 12px | 0.75rem |
| 14px | 0.875rem |
| 15px | 0.9375rem |
| 16px | 1rem |
| 18px | 1.125rem |
| 20px | 1.25rem |
| 22px | 1.375rem |
| 24px | 1.5rem |
| 30px | 1.875rem |
| 32px | 2rem |
| 34px | 2.125rem |
| 35px | 2.1875rem |
| 38px | 2.375rem |
| 40px | 2.5rem |
| 42px | 2.625rem |
| 45px | 2.8125rem |
| 48px | 3rem |
| 50px | 3.125rem |
| 52px | 3.25rem |
| 55px | 3.4375rem |
| 60px | 3.75rem |
| 64px | 4rem |
| 70px | 4.375rem |
| 72px | 4.5rem |
| 75px | 4.6875rem |
| 78px | 4.875rem |
| 80px | 5rem |
| 82px | 5.125rem |
| 85px | 5.3125rem |
| 88px | 5.5rem |
| 90px | 5.625rem |
| 92px | 5.75rem |
| 95px | 5.9375rem |
| 100px | 6.25rem |
To convert px to rem, you need to know the size of 1 REM, which is typically 16px by default. Then, simply use the formula:
px ÷ 16 = rem
For example, with 1rem being 16px, 32px would convert to:
32 ÷ 16 = 2rem
The formula for converting PX to REM is:
REM = PX / Base Font Size
Typically, the base font size is 16px, so the formula becomes:
REM = PX / 16
REM is relative to the root font size, making it easier to scale elements proportionally, ensuring responsive and accessible designs.