base value:
Value(rem):
Value(Pixels):
To convert REM (root em) units to pixels (px), you need to know the base font size of the document or the element you're working with. REM units are relative to the root font size, typically defined in the HTML or body element.
The formula for converting REM to pixels is: REM × root font size = Pixels
For example, if the root font size is 16px and you have a value of 2REM, the calculation would be: 2REM × 16px = 32px
So, 2REM equal to 32 pixels in this scenario. Adjust the root font size accordingly if your document has a different base font size.
Rem | Pixels |
1rem | 16px |
2rem | 32px |
3rem | 48px |
4rem | 64px |
5rem | 80px |
6rem | 96px |
7rem | 112px |
8rem | 128px |
9rem | 144ps |
10rem | 160px |
11rem | 176px |
12rem | 192px |
13rem | 208px |
14rem | 224px |
15rem | 240px |
16rem | 256px |
17rem | 272px |
18rem | 288px |
19rem | 304px |
20rem | 320px |
21rem | 336px |
22rem | 352px |
23rem | 368px |
24rem | 384px |
25rem | 400px |
26rem | 416px |
27rem | 432px |
28rem | 448px |
29rem | 464px |
30rem | 480px |
31rem | 496px |
32rem | 512px |
33rem | 528px |
34rem | 544px |
35rem | 560px |
36rem | 576px |
37 | 592px |
38rem | 608px |
39rem | 624px |
40rem | 640px |
41rem | 656px |
42rem | 672px |
43rem | 688px |
44rem | 704px |
45rem | 720px |
46rem | 736px |
47rem | 752px |
48rem | 768px |
49rem | 784px |
50rem | 800px |