Tested tool guide
Tested browser tools
Checked August 16, 2026
What Pixel to REM/EM Converter does, with a checked example
CSS sizes are written in px, rem, and em. rem is measured against the root font size (16 px in every major browser unless the user changes it); em is measured against the font size of the element that contains it. This tool converts between all three units in either direction, with the base font size as an adjustable field. The surprise most designers hit is that em is not anchored to the root: the same em value renders differently in a 12 px label than a 20 px heading, so an em result is only valid for the context you specify.
Worked example
A concrete input and expected output from the current implementation.
Input
32 px to rem at a 20 px base; 32 px to em at a 16 px base
->
Expected output
1.6 rem; 2 em
Each result is the pixel value divided by its base: 32 / 20 = 1.6, and 32 / 16 = 2. The answers differ because rem and em measure against different font sizes.