REM to PX Converter

REM to PX converter is a tool that allows you to convert rem units to pixels (px). The conversion is based on the current base font size set in the root element (HTML) of your document.

Result:

Conversion options:

How to Use REM to PX Converter

  1. Enter base value (You can skip this step if your base font size is set to 16 PX.)
  2. Enter the value in PX that you want to convert

How to Convert REM to PX?

To convert rem to pixels (px), you can use the following formula:

px = rem * base font-size

where the base font-size is typically set in the root element (HTML) of your document. For example, if the base font-size is 16px, and you want to convert 1.5rem to pixels:

px = 1.5rem * 16px = 24px

So, 1.5rem is equal to 24px.

It's important to keep in mind that changing the base font size in the root element will affect all elements specified in REM units, so it should be set thoughtfully and consistently throughout a website.

REM to PX Conversion Table

Here is a table showing the conversion of common rem values to pixels (px) based on a base font size of 16px:

REM Pixels (px)
0.25rem4px
0.375rem6px
0.5rem8px
0.625rem10px
0.75rem12px
0.875rem14px
1rem16px
1.125rem18px
1.25rem20px
1.375rem22px
1.5rem24px
1.625rem26px
1.75rem28px
1.875rem30px
2rem32px
2.125rem34px
2.25rem36px
2.375rem38px
2.5rem40px
2.625rem42px
2.75rem44px
2.875rem46px
3rem48px
3.125rem50px
3.25rem52px
3.375rem54px
3.5rem56px
3.625rem58px
3.75rem60px
3.875rem62px
4rem64px
4.125rem66px
4.25rem68px
4.375rem70px
4.5rem72px
4.625rem74px
4.75rem76px
4.875rem78px
5rem80px
5.125rem82px
5.25rem84px

Note: The conversion of rem to px is based on the assumption that the base font size for the root element is 16px. If the base font size is different, the px values in the table will also be different. To convert rem to px, you can use the formula: px = rem * base font-size.