4px to rem

In rem0.25rem

4px is equal to 0.25rem (with a base font size of 16px).

How to convert

4px ÷ 16px = 0.25 rem

This conversion assumes the root font-size (`html { font-size: 16px; }`) which is the browser default.

Common px → rem conversions (base 16px)

pxrem
8px0.5rem
12px0.75rem
16px1rem
20px1.25rem
24px1.5rem
32px2rem
40px2.5rem
48px3rem
64px4rem

Try the converter

e.g. "4px to rem"

Loading tool...