px to rem

A converter that calculates the rem from a px for a given rem size to make the measurement responsive

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

Q

Focus the "Pixels" input.

W

Focus the "REM Size" input.

Extensions

FAQ

How to convert PX to REM?

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

What is the PX to REM formula?

px / rem

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.

PX to REM Conversion Table if rem size is 16px

pxrem
10px0.625rem
20px1.25rem
30px1.875rem
40px2.5rem
50px3.125rem
60px3.75rem
70px4.375rem
80px5rem
90px5.625rem
100px6.25rem
110px6.875rem
120px7.5rem
130px8.125rem
140px8.75rem
150px9.375rem
160px10rem
170px10.625rem
180px11.25rem
190px11.875rem
200px12.5rem
210px13.125rem
220px13.75rem
230px14.375rem
240px15rem
250px15.625rem

More PX & REM Conversions