• contact@easenotes.com
  • Phone: (+91) 9964716807

Pixels to REM Converter

Result: 0 REM

FAQ for How to convert PX to REM

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

The formula is: px / rem.

REM is defined relative to the font size of the root element, matched by the :root pseudo-class or the html selector. 1 REM takes the value of the root element’s font-size, ensuring consistency across the entire CSS code.

The pixel unit is the theoretical smallest dot displayed on a computer screen. Nowadays, the pixel unit can differ between physical and logical resolutions. This difference is defined by the device pixel ratio (DPR): Logical resolution = physical resolution / device pixel ratio.
For example, a screen with a 1024x768 physical resolution and a DPR of 2 will have a 512x384 logical resolution.

PX to REM Conversion Table (rem size: 16px)

PX REM
10px 0.625rem
20px 1.25rem
30px 1.875rem
40px 2.5rem
50px 3.125rem
60px 3.75rem
70px 4.375rem
80px 5rem
90px 5.625rem
100px 6.25rem
110px 6.875rem
120px 7.5rem
130px 8.125rem
140px 8.75rem
150px 9.375rem
160px 10rem
170px 10.625rem
180px 11.25rem
190px 11.875rem
200px 12.5rem
210px 13.125rem
220px 13.75rem
230px 14.375rem
240px 15rem
250px 15.625rem