2 EM to PX

Open EM to PX converter

Result

2 em = 32 px


Explanation

  • Base — 16
  • Em value — 2

To convert 2 em to pixels with base 16 you need to multiply base value by em value, in our case: 16 × 2. In result we'll receive that 2 em with base 16 is equal to 32 pixels (px)

CSS code for 2 EM to PX

p { font-size: 32px }

HTML (inline CSS):

<p style="font-size: 32px">Hello World<p>