Skip to content
Calculator Tools
Web Development Calculators

EM to PX Converter

Convert em units to pixels relative to the parent element’s font size.

Enter values

Results update as you type.

Result

In pixels

20 px

CSS value
20px
Rounded
20 px
As rem at a 16px root
1.25 rem
As a percentage
125%

About the EM to PX Converter

Convert em units to pixels relative to the parent element’s font size.

Also known as: em to pixel, em px converter, css em to px.

How to use this calculator

  1. Enter em, parent font size.
  2. The result updates instantly as you type — press Calculate (or Enter) at any time.
  3. Review the breakdown shown under the main result.
  4. Use Copy result or Share to save the answer or send a link with your inputs.

Formula

pixels = em × parent font size

Worked example

Using the values pre-filled in the calculator above:

  • EM = 1.25 em
  • Parent font size = 16 px

the calculator returns:

  • In pixels: 20 px
  • CSS value: 20px
  • Rounded: 20 px
  • As rem at a 16px root: 1.25 rem