CSS units·127px
127px =
7.9375rem
95.25pt

127 px in rem — 7.9375 rem, 95.25 pt

127 px is 7.9375 rem and 95.25 pt — 1.32292 inches, 33.602 mm, and 793.75% of the root font size.

rem (root 16 px)
7.9375rem
pt (points)
95.25pt
pc (picas)
7.9375pc
percent of root
793.75%
inches
1.32292in
millimetres
33.602mm
centimetres
3.3602cm

Why rem divides by 16

Because browsers default the root font size to 16 px, and rem is a multiple of it. When a reader enlarges text in their browser settings, only the parts written in rem grow — anything pinned in px stays put.

Nearby sizes

pxrem (root 16 px)pt (points)
124px7.75rem93pt
125px7.8125rem93.75pt
126px7.875rem94.5pt
127px7.9375rem95.25pt
128px8rem96pt
129px8.0625rem96.75pt
130px8.125rem97.5pt

On screen, pt and inches are still pixels

CSS fixes one inch at 96 px and one point at 1/72 inch. So 16 px is exactly 12 pt — but hold a ruler to the screen and that "inch" will not measure an inch.

Sizes you meet most

Body text at 16, small text at 14, spacing at 8, 24 and 32 — the values that keep coming back.

How to read this

  • rem = px ÷ 16, because browsers default the root font size to 16 px.
  • pt = px × 0.75, since CSS fixes an inch at 96 px and a point at 1/72 inch.
  • One pc is 12 pt, and one inch is both 96 px and 72 pt.
  • Use rem for text and spacing; keep px for hairlines such as borders.

Frequently asked questions

Q. How many rem is 127 px?

7.9375 rem — that is 127 divided by 16.

Q. How many points is 127 px?

95.25 pt. A point is 1/72 inch and an inch is 96 px, so you multiply by 0.75.

Q. What length is that?

1.32292 inches, or 33.602 mm — though a ruler on the screen will not agree.

Q. And as a percentage?

793.75% of the root font size.