🔁 px to rem converter

Convert pixels to rem, em and points, with your own base font size and a ready table of common sizes.

24 px is

1.5 rem

with a base of 16 px

In points for print
18 pt
12 px
0.75 rem
14 px
0.875 rem
16 px
1 rem
18 px
1.125 rem
20 px
1.25 rem
32 px
2 rem
48 px
3 rem

How it is worked out

  • rem = px ÷ base font size.
  • Points = px × 0.75, because CSS counts 96 px and 72 points in an inch.

Example

Pixels: 24; Base font size: 16 px.

24 px is: 1.5 rem (with a base of 16 px). In points for print: 18 pt; 12 px: 0.75 rem; 14 px: 0.875 rem; 16 px: 1 rem.

Useful next

Frequently asked questions

What is 24 px in rem?

1.5 rem with the usual 16 px base.

Why use rem and not px?

Sizes in rem grow when a person sets larger text in their browser. Sizes in px don't.

What is the difference between em and rem?

rem follows the root of the page. em follows the text size of the element it is in, so it can multiply when nested.

More calculators like this