PX to REM Converter

24px = 1.5rem

PX to REM table

Based on a root font size of 16px.

PixelsREM
1px0.0625rem
2px0.125rem
4px0.25rem
6px0.375rem
8px0.5rem
10px0.625rem
12px0.75rem
14px0.875rem
15px0.9375rem
16px1rem
18px1.125rem
20px1.25rem
22px1.375rem
24px1.5rem
28px1.75rem
32px2rem
36px2.25rem
40px2.5rem
48px3rem
56px3.5rem
64px4rem
72px4.5rem
80px5rem
96px6rem
128px8rem

How to convert px to rem

Enter a pixel value to get rem, or a rem value to get pixels. Browsers use a root font size of 16px by default; change it if your site sets a different size on the html element.

FAQ

How do you convert px to rem?

Divide the pixel value by the root font size. With the default root size of 16px, 24px ÷ 16 = 1.5rem.

How do you convert rem to px?

Multiply the rem value by the root font size. With a 16px root, 2rem × 16 = 32px.

Why use rem instead of px?

Rem units scale with the user’s browser font size setting, so layouts built with rem respect accessibility preferences. Pixels stay fixed.