PX to REM Converter

Converting pixels values to rem is a frequent task in responsive web development. Our px to rem converter simplifies this process, by allowing you to calculate rem value for a given px value instantly.

What does this online calculator do?

This converter calculates the rem value for a given px value. Using this tool you will be able to convert fixed pixel sizes to rem (root-em) css units. It is basically a css sizing unit that is relative to font-size value of root html tag. By default it's value is 16px. but it can be changed and thus affects the calculated values.

What is rem

REM or root-em is css sizing unit. The value of REM is determined by the font-size of the root element, so 1 REM maintains a consistent value across your entire CSS code.

How px to rem value is calculated

It is basic calculation with two variables i.e root font-size and pixel value that needs to be converted to rem. If root font-size is of default value i.e 16px and value to be calculated is also 16px, then the resulting value is 1rem. Similarly 1px is equal to 0.0625rem.

What is px to rem calculation formula?

It is just simple formula of px / rem once 1 rem value is calculated which is always equal to root font-size.


For Example

1 rem is equal to 16px; Then 32px will be 2 rem's, because 32px/16px = 2.

What does this online tool calculate?

This tool handles conversion of PX values to REM values, which is a frequent task in responsive web design & development. Our REM to PX converter simplifies this process, allowing you to easily switch between these units. Whether you need to convert PX to REM or REM to pixels, our tool is here to help.

Why is converting REM to PX important?

REM is based on the root element, offering responsive scaling, while PX is a fixed unit.

Most common px to rem conversion values table (Base 16px)

Pixels REM
1px 0.0625rem
4px 0.25rem
8px 0.5rem
12px 0.75rem
16px 1rem
20px 1.25rem
24px 1.5rem
32px 2rem
40px 2.5rem
48px 3rem
64px 4rem
96px 6rem
128px 8rem
160px 10rem
176px 11rem
192px 12rem
208px 13rem
224px 14rem
256px 16rem
320px 20rem
480px 30rem
576px 36rem
768px 48rem
800px 50rem
960px 60rem
992px 62rem
1024px 64rem
1120px 70rem
1200px 75rem
1280px 80rem
1440px 90rem
1600px 100rem
1920px 120rem

References

MDN Web Docs - CSS Values & Units