rem to px

A converter that calculates the px from a rem for a given rem size to measure the pixels

REM
REM 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 "PX to REM".

Q

Focus the "REM" input.

W

Focus the "REM Size" input.

Extensions

FAQ

How to convert REM to PX?

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

What is the REM to PX formula?

rem * rem 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 px unit? (Pixels)

Pixel unit is the theorical smallest dot displayed on a computer screen. Nowadays, pixel unit can differ between physical resolution and logical resolution. This difference is called device pixel ratio or DPR: Logical resolution = physical resolution / device pixel ratio. So, a screen with 1024x768 physical resolution with a DPR of 2 will have a 512x384 logical resolution.

REM to PX Conversion Table if rem size is 16px

rempx
1rem16px
2rem32px
3rem48px
4rem64px
5rem80px
6rem96px
7rem112px
8rem128px
9rem144px
10rem160px
11rem176px
12rem192px
13rem208px
14rem224px
15rem240px
16rem256px
17rem272px
18rem288px
19rem304px
20rem320px
21rem336px
22rem352px
23rem368px
24rem384px
25rem400px

More REM & PX Conversions