REM to PX converter

To convert rem to px, multiply the rem value by the root font size: at the browser default of 16px, 1rem = 16px, 1.5rem = 24px and 0.875rem = 14px. Enter any value and base below.

24px at a 16px base

font-size: 24px;

Conversion table (base 16px)

PixelsREM
1px0.0625rem
2px0.125rem
4px0.25rem
6px0.375rem
8px0.5rem
10px0.625rem
12px0.75rem
14px0.875rem
15px0.9375rem
16px1rem
18px1.125rem
20px1.25rem
24px1.5rem
28px1.75rem
30px1.875rem
32px2rem
36px2.25rem
40px2.5rem
48px3rem
56px3.5rem
64px4rem
72px4.5rem
80px5rem
96px6rem
128px8rem

REM to PX conversion table (16px base)

REMPixels
0.125rem2px
0.25rem4px
0.375rem6px
0.5rem8px
0.625rem10px
0.75rem12px
0.875rem14px
1rem16px
1.125rem18px
1.25rem20px
1.5rem24px
1.75rem28px
2rem32px
2.25rem36px
2.5rem40px
3rem48px
3.5rem56px
4rem64px
5rem80px
6rem96px
8rem128px

How to convert rem to px

Multiply the rem value by the document's root font size:

px = rem × root font size

1.5rem at a 16px base → 1.5 × 16 = 24px
2rem at a 10px base → 2 × 10 = 20px

If a stylesheet sets html { font-size } to something other than the 16px browser default, use that value as the base.

What is the difference between rem and em?

rem is relative to the root html font size, while em is relative to the parent element's font size. This means rem stays predictable when components are nested, whereas nested em values can compound.

Related typography tools

Convert in the other direction or pair fixed values with fluid type.

Frequently asked questions

How many pixels is 1rem?

1rem is 16px at the browser default root font size of 16px. If the root font size changes, multiply 1 by that value instead; for example, 1rem is 10px at a 10px base.

What is 1.5rem in px?

1.5rem is 24px at a 16px base because 1.5 × 16 = 24. At another root font size, multiply 1.5 by that base to get the pixel value.

What is 2rem in px?

2rem is 32px at a 16px base because 2 × 16 = 32. It is 20px at a 10px base because 2 × 10 = 20.

More typography & unit tools

Color tools

Image tools

CSS generators

Image & SVG tools

More free tools

All free tools