AnyCalculators

PX to REM Converter

Input your PX values, and it instantly provides you with the equivalent REM values based on the set base font-size. This tool will save you a significant amount of time and helps you avoid manual calculation errors.


1rem

Vice versa:

REM to PX

Pixels to REM conversion table

PixelsREM
1px0.06rem
2px0.13rem
3px0.19rem
4px0.3rem
5px0.3rem
6px0.4rem
8px0.5rem
10px0.6rem
12px0.8rem
14px0.9rem
15px0.9rem
16px1rem
18px1.1rem
20px1.3rem
24px1.5rem
25px1.6rem
28px1.8rem
32px2rem
36px2rem
40px3rem
44px3rem
48px3rem
50px3rem
56px4rem
64px4rem
72px5rem
75px5rem
80px5rem
90px6rem
100px6rem

About PX to REM

In web design, we can use these units of measurement: PX (pixels) or REM (short for "root-em"). Both units are used to specify the size of elements on a webpage, but they work in different ways. Pixels are a fixed unit and based on the resolution of the display. Meaning, that the size of an element in pixels will remain constant, no matter what screen or font-size the user has. That way, pixels are preferred for fixed elements.

On the other hand, REM is used for responsive elements. So, they can adjust based on the user's screen size and base font-size. The only issue with REM is that is not supported by older browsers.

This tool is very straightforward, you just need to understand the basic conversion principle. Typically, 1rem equals the root font size of the HTML document, which is often set to 16px by default. Thus, converting PX to REM involves dividing the PX value by the root font size.

Step-by-step:

  • First, check and determine the base font size of your HTML document. If it's not explicitly set, assume it to be 16px.
  • Next, calculate the REM value using the formula rem = px / base font size to calculate the REM value. For instance, if you're converting 32px in a document with a 16px base font size, that would be 32px / 16px = 2rem.
AnyCalculators.com by Cristian G.

About

Hey, I'm Cristian! I've created and fool around with websites since I was 12 years old, and since then I always used and created free tools for my projects. That's why I've created AnyCalculators, to help you be more efficient with your tasks.

Tools: