REM to PX converter

Convert rem values to pixels with your own root font size, with a reference table of common values.

1.5 rem→24 px
MAKE IT YOURS
font-size: 24px; /* 1.5rem at 16px */
0.25 rem4 px
0.5 rem8 px
0.75 rem12 px
0.875 rem14 px
1 rem16 px
1.125 rem18 px
1.25 rem20 px
1.5 rem24 px
1.75 rem28 px
2 rem32 px
2.5 rem40 px
3 rem48 px
4 rem64 px
5 rem80 px

How do you convert REM to PX?

Multiply the rem value by the root font size. Browsers default to a 16px root, so 1.5rem is 24px. If the site sets a different size on the html element, or the reader has changed their browser’s default, the result changes with it. That is the point of rem: text scales with the reader’s preference.

Going the other way? Use the PX to REM converter. For when to use each unit, see rem vs em vs px.

REMPixelsREMPixels
0.25rem4px1.75rem28px
0.5rem8px2rem32px
0.625rem10px2.25rem36px
0.75rem12px2.5rem40px
0.875rem14px3rem48px
1rem16px3.5rem56px
1.125rem18px4rem64px
1.25rem20px4.5rem72px
1.375rem22px5rem80px
1.5rem24px6rem96px
Common rem values in pixels at the browser default root size of 16px.
What is 1.5rem in pixels?

24px at the default 16px root. At a 10px root, as used by stylesheets that set html { font-size: 62.5% }, it is 15px.

Why does 1rem measure differently on a site I am inspecting?

The site has probably set a font size on the html element, or your browser’s default font size is not 16px. Check the computed font size of the html element in DevTools and enter it as the root.

Is rem the same as em?

No. Rem is always relative to the root element. Em is relative to the font size of the element itself, or of its parent when it is used for font-size.

Read the guide: rem vs em vs px: which unit for font sizes?

See how real sites set their type.

Font Inspector shows the font, size, line height and spacing of any text on any website, then copies it as CSS. Free, no account.

Add to Chrome