Toolman

64px to rem

64px = 4rem

At the browser default root font size of 16 px. Change it and this number changes — see below.

How it is calculated

One px is 0.0625rem, so:

64px × 0.0625 = 4rem

Reversing it, 4rem × 16 returns 64px.

64px at other root font sizes

rem is measured against the root element, so the answer above holds only while that is 16 px. A visitor who has raised their browser's default — the accessibility setting rem exists to respect — is reading your page at one of the larger rows.

Root font size64px equals
14 px4.5714rem
16 px (default)4rem
18 px3.5556rem
20 px3.2rem
24 px2.6667rem

Nearby values

pxrem
32px2rem
36px2.25rem
40px2.5rem
48px3rem
56px3.5rem
64px4rem
72px4.5rem
80px5rem
96px6rem

Frequently asked questions

What is 64px in rem?

4rem at the default 16 px root font size.

How is 64px converted to rem?

Multiply by 0.0625: 64 × 0.0625 = 4. To go back, multiply 4 by 16.

Is 4rem always the answer?

No. rem is relative to the root element, so 64px is 4rem only while that is 16 px. The table above gives the value at the sizes you are most likely to meet.

The full PX to REM converter → · All CSS unit converters