REM to PX Converter

The base is the font size set in the html element's style. Most browsers default to 16px. Learn more below.

rem

0 PX

What is the Root em to Pixels converter?

REM stands for “root em,” and Px stands for “pixels.” Rem to Px converter is a free online tool that you can use to convert the root em(Rem) values in pixel sizes(px). Moreover, remember that 1rem is equivalent to the root font size. 

How to use Root EM to Pixels calculator?

Here are some steps to convert the REM value into px:

Step 1: Enter the base font size in the mentioned column. The default size is 16px.

Step 2: Input the rem value that you want to convert.

Step 3: Now click the convert button and get your results instantly in rem units.

rem to px

REM to Pixels Conversion Table

Some frequently used values of Rem are used to convert into px values. So, to save your time, you can directly see that particular value and its equivalent px size in the table below:

REM PX
0.25rem4px
0.5rem8px
0.75rem12px
1rem16px
1.25rem20px
1.5rem24px
2rem32px
2.5rem40px
3rem48px
4rem64px
6rem96px
8rem128px
10rem160px
11rem176px
12rem192px
13rem208px
14rem224px
16rem256px
20rem320px
30rem480px
36rem576px
48rem768px
50rem800px
60rem960px
62rem992px
64rem1024px
70rem1120px
75rem1200px
80rem1280px
90rem1440px
100rem1600px

Formula to convert Root em to Pixels

If you want to convert the rem to px size manually, use the formula method to get your results. The formula is:

Px = Rem x root font size

For Examples:

  • 12 rem = 216px
  • 8 rem = 144px
  • 6rem=   108px
  • 4 rem=   72px

(let’s say the default font size is 18px)

Do the vice versa and checkout px to rem now.

Few Valuable Examples of REM

Below are some real case scenario examples that you can assume to clarify the REM:

Example 1: Setting Font Sizes for Headings and Paragraphs

Scenario: You want your headings and paragraphs to scale proportionally with the user’s default font size.

CSS:

:root {
  font-size: 16px; /* Base font size – users can change this in their browser settings */
}

h1 {
  font-size: 2rem; /* 32px (2 * 16px) */
}

h2 {
  font-size: 1.5rem; /* 24px (1.5 * 16px) */
}

p {
  font-size: 1rem; /* 16px (1 * 16px) */
}

Explanation: All font sizes are defined using rem units, which are relative to the root font size. If a user sets their browser’s default font size to 20px, the h1 will become 40px (2 * 20px), the h2 will become 30px, and the paragraph will become 20px. This ensures that the text scales appropriately for readability.

You can also try millimeters to pixels for free on pixelsconverters.com website.

Example 2: Sizing Spacing and Margins

Scenario: You want consistent spacing around elements, and you want that spacing to scale along with the user’s font size.

CSS:

.container {
  padding: 1rem; /* 16px padding */
  margin-bottom: 2rem; /* 32px margin */
}

.item {
  margin: 0.5rem; /* 8px margin */
}

Explanation: By using rem for padding and margins, the spacing around elements will remain proportional to the text size. If the user increases their default font size, the spacing will also increase, maintaining a consistent visual balance.