PX to REM Converter

Using this px to rem converter calculator, you can simply convert any pixels value to rem.

Pixel

A pixel, pel or picture element is the smallest controllable element of a picture portrayed on the screen in digital imaging. It is the smallest addressable element in a raster image, or the smallest addressable element in an all points addressable display device.

Rem

Font-size on the root element is equal to the computed value. The rem units relate to the property’s initial value as provided on the font-size property of the root element. This signifies that 1rem is the size of the html element’s font (which for most browsers has a default value of 16px).

Px to Rem Converter Use

  • This calculator is simple and quick to use.
  • To begin, input the pixel font-size for the conversion’s base.
  • We set the value to 16 by default because this is the default value for most common browsers on the internet.
  • After that, type in the pixel size you want to convert to rem.
  • The converter will display the converted value in rem unit throughout the rest of the process.

Formula to Convert Px to Rem

The formula to convert pixels value into rem unit is mentioned below:

pixel to rem formula

For Example,

1. Convert pixel value 20 into rem unit. Let the root font-size be 16px.

The get the result divide the pixels value by root font-size, 20/16 = 1.25 rem.

Pixel ↔︎ Rem Conversion Table

The root font-size value is kept at 16px for this conversion table.

Pixel (px)Rem (rem)
1px0.0625 rem
2px0.125 rem
3px0.1875 rem
4px0.25 rem
5px0.3125 rem
6px0.375 rem
7px0.4375 rem
8px0.5 rem
9px0.5625 rem
10px0.625 rem
11px0.6875 rem
12px0.75 rem
13px0.8125 rem
14px0.875 rem
15px0.9375 rem
16px1 rem
17px1.0625 rem
18px1.125 rem
19px1.1875 rem
20px1.25 rem
21px1.3125 rem
22px1.375 rem
23px1.4375 rem
24px1.5 rem
25px1.5625 rem
Pixel (px)Rem (rem)
26px1.625 rem
27px1.6875 rem
28px1.75 rem
29px1.8125 rem
30px1.875 rem
31px1.9375 rem
32px2 rem
33px2.0625 rem
34px2.125 rem
35px2.1875 rem
36px2.25 rem
37px2.3125 rem
38px2.375 rem
39px2.4375 rem
40px2.5 rem
41px2.5625 rem
42px2.625 rem
43px2.6875 rem
44px2.75 rem
45px2.8125 rem
46px2.875 rem
47px2.9375 rem
48px3 rem
49px3.0625 rem
50px3.125 rem