PX to EM Converter

Convert pixels to em relative to the parent font size.

Enter your values

Browser default is 16px

Result

em

1.5em

24px = 1.5em

CSS
font-size: 1.5em;

em = px ÷ parent font size. 24px ÷ 16px = 1.5em.

PX to EM chart (16px parent)

PXEM
1px0.0625em
2px0.125em
4px0.25em
8px0.5em
10px0.625em
12px0.75em
14px0.875em
16px1em
18px1.125em
20px1.25em
24px1.5em
28px1.75em
32px2em
36px2.25em
40px2.5em
48px3em
64px4em

How to use PX to EM Converter

  1. Enter pixels and parent font size.
  2. The result updates instantly as you type, with no button to press.
  3. Read the formula box to see how it was calculated, then copy the result.

Features

Instant results
Results update as you type, with no Calculate button and no page reload.
Formula explained
See exactly how the answer is worked out, so you can check it or learn the method.
Private & free
Everything runs in your browser. Nothing you enter is uploaded or stored.

Frequently asked questions

How do I convert em to px?

Multiply the em value by the parent element's font size. With a 16px parent, 1.5em = 24px; with a 20px parent, 1.5em = 30px.

Is em the same as rem?

Only when the parent font size equals the root font size. em is relative to the parent, rem to the root html element.

How does the PX to EM Converter work?

It uses this method: em = px ÷ parent font size. 24px ÷ 16px = 1.5em.

Is this PX to EM Converter free?

Yes. It is 100% free, needs no sign-up and works on mobile and desktop. Your numbers never leave your device.

Free, no sign-up. Your files and numbers are processed in your browser and are not uploaded.

Related tools

View all

Share this Tool

Did PX to EM Converter work well for you?