50 PX to EM

Open PX to EM converter

Result

50 px = 3.125 em


Explanation

  • Base — 16
  • EM — 3.125

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

CSS code for 50 PX to EM

p { font-size: 3.125em }

HTML (inline CSS):

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