rem to em

A converter that calculates the em from a rem for given rem and em size

REM
REM Size
EM Size

Hot Keys

C

Calculate and copy the result of calculation.

V

Calculate the result.

B

Copy the result of calculation.

R

Reverse the converter to "EM to REM".

Q

Focus the "REM" input.

W

Focus the "REM Size" input.

E

Focus the "EM Size" input.

FAQ

How to convert REM to EM?

To convert rem to em, you should know total size of 1 REM and 1 EM, default is 16px Then, just apply formula: (rem * rem size) / em size For example, with 16px size of 1rem and 32px of 1em, 2rem will be converted to: (2 * 16) / 32 = 1em

What is the REM to EM formula?

(rem * rem size) / em size

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.

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.

More REM & EM Conversions