EM to PX converter

To convert em to px, multiply the em value by the parent element's font size: px = em × parent font size. At the browser default of 16px, 1em = 16px, 1.5em = 24px and 0.875em = 14px. Enter any value and parent size below.

em is relative to the parent element's font size; use 16 if the parent inherits the browser default.

24px at a 16px parent

font-size: 24px;

Conversion table (parent 16px)

EMPixels
0.125em2px
0.25em4px
0.5em8px
0.625em10px
0.75em12px
0.875em14px
1em16px
1.125em18px
1.25em20px
1.5em24px
1.75em28px
2em32px
2.5em40px
3em48px
4em64px
5em80px
6em96px
8em128px

EM to PX conversion table (16px parent)

EMPixels
0.125em2px
0.25em4px
0.5em8px
0.625em10px
0.75em12px
0.875em14px
1em16px
1.125em18px
1.25em20px
1.5em24px
1.75em28px
2em32px
2.5em40px
3em48px
4em64px
5em80px
6em96px
8em128px

How to convert em to px

Multiply the em value by the font size of the parent element:

px = em × parent font size
em = px ÷ parent font size

1.5em at a 16px parent → 1.5 × 16 = 24px
24px at a 16px parent → 24 ÷ 16 = 1.5em

The parent matters: 1.5em is 24px inside a 16px card but 30px inside a 20px card. If the parent inherits the browser default without another font-size declaration, use 16px.

EM vs REM: what is the difference?

PropertyEMREM
Relative toParent element font sizeRoot html font size
Compounds when nestedYesNo
Best forPadding and margins that scale with a component's own text, media queriesGlobal type and spacing

Related typography tools

Convert in the other direction or pair relative units with fluid type.

Frequently asked questions

How many pixels is 1em?

1em is 16px when the parent font size is the browser default of 16px. If the parent font size is 20px, 1em is 20px: always multiply the em value by the parent font size.

What is 1.5em in pixels?

1.5em is 24px at a 16px parent font size because 1.5 × 16 = 24. At a 20px parent, 1.5em is 30px. The converter lets you change the parent size to match your CSS.

How do I convert px to em?

Divide the pixel value by the parent font size. For example, 24px ÷ 16px = 1.5em and 14px ÷ 16px = 0.875em. Use the PX → EM tab above to convert in that direction.

Why do em sizes change in nested elements?

em is relative to the parent element's font size, so nested em values multiply. Two nested elements set to 1.5em produce 2.25 times the outer font size. Use rem instead when sizes should always reference the root html font size.

More typography & unit tools

Color tools

Image tools

CSS generators

Image & SVG tools

More free tools

All free tools