32 PX to EM

Open PX to EM converter

Result

32 px = 2 em


Explanation

  • Base — 16
  • EM — 2

To convert 32 pixels to EM with base 16 you need to divide pixels value by base value, in our case: 32 / 16. In result we'll receive that 32 pixels with base 16 is equal to 2 em

CSS code for 32 PX to EM

p { font-size: 2em }

HTML (inline CSS):

<p style="font-size: 2em">Hello World<p>