1 PX to REM

Result

1 px = 0.0625 rem


Explanation

  • REM — 0.0625
  • Pixel base — 16

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

1 / 16 = 0.0625 rem

CSS code for 1 PX to REM

p { font-size: 0.0625em }

HTML (inline CSS):

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