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.
Vice versa:
REM to PXPixels to REM conversion table
Pixels | REM |
---|---|
1px | 0.06rem |
2px | 0.13rem |
3px | 0.19rem |
4px | 0.3rem |
5px | 0.3rem |
6px | 0.4rem |
8px | 0.5rem |
10px | 0.6rem |
12px | 0.8rem |
14px | 0.9rem |
15px | 0.9rem |
16px | 1rem |
18px | 1.1rem |
20px | 1.3rem |
24px | 1.5rem |
25px | 1.6rem |
28px | 1.8rem |
32px | 2rem |
36px | 2rem |
40px | 3rem |
44px | 3rem |
48px | 3rem |
50px | 3rem |
56px | 4rem |
64px | 4rem |
72px | 5rem |
75px | 5rem |
80px | 5rem |
90px | 6rem |
100px | 6rem |
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 be32px / 16px = 2rem
.
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.