Toolman

64px to em

64px = 4em

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

How it is calculated

One px is 0.0625em, so:

64px × 0.0625 = 4em

Reversing it, 4em × 16 returns 64px.

64px at other font sizes

em is measured against the element's own font size, inherited from its parent unless it sets one, so the answer above holds only while that is 16 px. Nested elements each compound on their parent, so this is the value for one level, not for the whole tree.

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

Nearby values

pxem
32px2em
36px2.25em
40px2.5em
48px3em
56px3.5em
64px4em
72px4.5em
80px5em
96px6em

Frequently asked questions

What is 64px in em?

4em at the default 16 px font size.

How is 64px converted to em?

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

Is 4em always the answer?

No. em is relative to the element's own font size, inherited from its parent unless it sets one, so 64px is 4em 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 EM converter → · All CSS unit converters