base value:
Value(Pixels):
Value(rem):
A px to rem converter is a tool that converts values specified in pixels (px) to values specified in rems (rem). Pixels are a fixed unit of measurement in CSS, while rems are a relative unit of measurement based on the font-size of the root element. Using rems can help to create more scalable and responsive designs.
REM is a unit of measurement in web design that is relative to the root element (i.e., the tag) font size. It is commonly used in responsive layouts, and its value is proportional to the font size of the root element, which is typically set to 16px by default. Therefore, 1rem is equal to a multiple of the root element font size. For example, if the root element font size is 16px, then 1rem = 16px, 2rem = 32px, 3rem = 48px, and so on.
In contrast, RM (Responsive EM) is a unit of measurement that is relative to the font size of the parent element, and is also commonly used in responsive layouts. Its value is proportional to the font size of the parent element, and 1rm is equal to a multiple of the parent element font size. Therefore, RM is more flexible than REM, and can be used for various element font sizes and layout dimensions.
In summary, REM and RM are both commonly used font size units in responsive web design, but REM is relative to the root element, while RM is relative to the parent element. The choice of these units depends on the specific situation, where REM is suitable for controlling the font size of the entire page, and RM is more suitable for controlling the font size and layout of individual elements or local areas.
1.Confirm your base value.If you do not need to change, please keep the default value.
2.Enter your pixels value
3.Click the convert button to get the REM value
Pixels | 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 |