devcalcs

px to rem converter

Enter a pixel value to get the rem equivalent. Result updates as you type.

px
px
0rem

How it works

The rem unit is relative to the root element’s font size. By default, browsers set this to 16px. To convert pixels to rem, divide the pixel value by the root font size: rem = px / root. For example, 24px at a 16px root equals 1.5rem.