Easily convert pixel values to rem units with our simple and efficient PX to REM converter tool
How to Use PX to REM Converter
Using our PX to REM Converter is a breeze.
Simply enter the pixel value you want to convert, and our tool will instantly provide the equivalent root em measurement.
The PX to REM Conversion Formula
The conversion from pixels to root em is based on a simple formula: rem = px / base font size
.
PX to REM Conversion Examples
Here are a few examples of how our Px to Rem Converter can simplify your design workflow:
- 24px = 1.5rem
- 48px = 3rem
- 8px = 0.5rem
PX to REM Conversion Table
Pixels (px) | Root Em (rem) |
---|---|
1 | 0.0625 |
2 | 0.125 |
3 | 0.1875 |
4 | 0.25 |
5 | 0.3125 |
6 | 0.375 |
7 | 0.4375 |
8 | 0.5 |
9 | 0.5625 |
10 | 0.625 |
11 | 0.6875 |
12 | 0.75 |
13 | 0.8125 |
14 | 0.875 |
15 | 0.9375 |
16 | 1 |
17 | 1.0625 |
18 | 1.125 |
19 | 1.1875 |
20 | 1.25 |
21 | 1.3125 |
22 | 1.375 |
23 | 1.4375 |
24 | 1.5 |
25 | 1.5625 |
26 | 1.625 |
27 | 1.6875 |
28 | 1.75 |
29 | 1.8125 |
30 | 1.875 |
31 | 1.9375 |
32 | 2 |
33 | 2.0625 |
34 | 2.125 |
35 | 2.1875 |
36 | 2.25 |
37 | 2.3125 |
38 | 2.375 |
39 | 2.4375 |
40 | 2.5 |
41 | 2.5625 |
42 | 2.625 |
43 | 2.6875 |
44 | 2.75 |
45 | 2.8125 |
46 | 2.875 |
47 | 2.9375 |
48 | 3 |
49 | 3.0625 |
50 | 3.125 |
51 | 3.1875 |
52 | 3.25 |
53 | 3.3125 |
54 | 3.375 |
55 | 3.4375 |
56 | 3.5 |
57 | 3.5625 |
58 | 3.625 |
59 | 3.6875 |
60 | 3.75 |
61 | 3.8125 |
62 | 3.875 |
63 | 3.9375 |
64 | 4 |
65 | 4.0625 |
66 | 4.125 |
67 | 4.1875 |
68 | 4.25 |
69 | 4.3125 |
70 | 4.375 |
71 | 4.4375 |
72 | 4.5 |
73 | 4.5625 |
74 | 4.625 |
75 | 4.6875 |
76 | 4.75 |
77 | 4.8125 |
78 | 4.875 |
79 | 4.9375 |
80 | 5 |
FAQs
Q: What is the difference between pixels (px) and root em (rem)?
Pixels (px) are a fixed, absolute unit of measurement, while root em (rem) is a relative unit that scales based on the base font size. Using rem allows for more responsive and scalable typography.
Q: How do I determine my base font size?
Your base font size is typically set in your CSS, often on the <html>
or <body>
element. The default base font size is usually 16 pixels.
Similar Converter: REM to PX