Toolman

8em to px

8em = 128px

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

How it is calculated

One em is 16px, so:

8em × 16 = 128px

Reversing it, 128px × 0.0625 returns 8em.

8em 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 size8em equals
14 px112px
16 px (default)128px
18 px144px
20 px160px
24 px192px

Nearby values

empx
8em128px
10em160px
12em192px
14em224px
16em256px

Frequently asked questions

What is 8em in px?

128px at the default 16 px font size.

How is 8em converted to px?

Multiply by 16: 8 × 16 = 128. To go back, multiply 128 by 0.0625.

Is 128px always the answer?

No. em is relative to the element's own font size, inherited from its parent unless it sets one, so 8em is 128px only while that is 16 px. The table above gives the value at the sizes you are most likely to meet.

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