32px to rem = 2rem
32 pixels equals 2rem at the default root font size of 16px. Adjust the root size below to recalculate.
px
px
2rem
How it works
To convert 32px to rem, divide by the root font size: 32 / 16 = 2. The rem unit is relative to the root element’s font size, which browsers default to 16px.