PX to EM Converter

Convert CSS pixel values to em or rem (and points). Change the base font size if your root size is not 16px.

PX, EM and REM explained

rem is relative to the root (html) font size, which is 16px in browsers by default. em is relative to the font size of the current element, so it can compound inside nested elements. Formula: em = px ÷ base size. Using rem for font sizes lets users scale text with their browser settings, which helps accessibility.

Frequently asked questions

How many pixels is 1rem?

1rem equals the root font size, which is 16px unless the site changes it.

How many points is 16px?

At 96 pixels per inch, 1px = 0.75pt, so 16px = 12pt.

See all converters