The conversion from rem to pixels is contingent upon the current font size of the root element in your HTML document. By default, 1rem corresponds to the font size of the root element.
To convert 4 rem to pixels use this formula: 4 rem × font size in pixels = Pixels
base value:
Value(rem):
Value(Pixels):