5 PX to REM

Result

5 px = 0.3125 rem


Explanation

  • REM — 0.3125
  • Pixel base — 16

To convert 5 pixels to REM with pixel's base 16 you need to divide pixels value by base value, in our case: 5 / 16. In result we'll receive that 5 pixels with base 16 is equal to 0.3125 rem

5 / 16 = 0.3125 rem

CSS code for 5 PX to REM

p { font-size: 0.3125em }

HTML (inline CSS):

<p style="font-size: 0.3125em">Hello World<p>
Open PX to REM converter