em to rem
A converter that calculates the rem from an em for given em and rem size
Hot Keys
Calculate and copy the result of calculation.
Calculate the result.
Copy the result of calculation.
Reverse the converter to "REM to EM".
Focus the "EM" input.
Focus the "EM Size" input.
Focus the "REM Size" input.
FAQ
How to convert EM to REM?
To convert em to rem, you should know total size of 1 REM and 1 EM, default is 16px Then, just apply formula: (em * em size) / rem size For example, with 16px size of 1em and 32px of 1rem, 2em will be converted to: (2 * 16) / 32 = 1rem
What is the EM to REM formula?
(em * em size) / rem size
What is em unit?
EM is defined relative to the font size of the parent element. 1 EM therefore takes on the value which is given to the font-size of the parent element.
What is rem unit?
REM is defined relative to the font size of the root element. The root element is matched by the :root pseudo-class or the html selector. 1 REM therefore takes on the value which is given to the font-size of the root element. This means that 1 REM keeps the same value throughout your whole CSS code.