Common Conversions
| Pixels | REM |
|---|
Convert pixels to rem and rem to pixels instantly. Adjustable base font size with a handy conversion reference table.
| Pixels | REM |
|---|
Pixels (px) are absolute units that are fixed in size. Rem (root em) is a relative unit based on the root element's font size (usually 16px). Using rem makes your design more accessible and responsive.
The default base font size in all browsers is 16px. This means 1rem = 16px by default. You can change the base by setting font-size on the html element.
Using rem units makes your website more accessible. When users increase their browser's default font size for readability, rem-based layouts scale proportionally.
Divide the pixel value by the base font size. For example, with a 16px base: 24px / 16 = 1.5rem. With a 10px base (62.5%): 24px / 10 = 2.4rem.