The conversion from rem
(root em) to pixels
depends on the font size of the root element (html
) in your CSS. By definition, 1 rem is equal to the font size of the root element.
If you know the font size of the root element in pixels, you can easily convert rem
to pixels
using the following formula:
pixels = 13 rem × font size of root element
base value:
Value(rem):
Value(Pixels):