PX to REM converter

Type pixels and copy the rem.

REM1.5rem

Formula

rem = px ÷ base
24px ÷ 16 = 1.5rem

PX to REM table

PixelsREM

Questions

How do I convert px to rem?

Divide the pixels by the root font size, which is 16px in most browsers. 24px ÷ 16 = 1.5rem.

What is 16px in rem?

1rem, when the root font size is the default 16px.

Why use rem instead of px?

rem follows the font size the reader set in their browser, so text and spacing scale with it. px does not.

What is the difference between rem and em?

rem is relative to the root font size. em is relative to the font size of the element itself.

More tools