px to rem Converter.

1 rem = 16 px, so 24 px = 1.5 rem. Type any value below to convert px to rem instantly.

px
Copied ✓
rem
Copied ✓

Reference Table

px rem em pt %
0.0240.00150.00150.01800000450.15
0.240.0150.0150.1800000451.5
2.40.150.151.815
241.51.518.000005150
2401515180.0000451500
24001501501800.000515000
240001500150018000.0045150000

How to convert px to rem

Formula.rem = pixels ÷ 16.

Relationship.1 rem = 16 px.

Worked example. 24 px = 1.5 rem.

px to rem conversion table

pxrem
10.0625
20.125
40.25
60.375
80.5
100.625
120.75
130.8125
140.875
150.9375
161
181.125
201.25
221.375
241.5
281.75
301.875
322
362.25
402.5
483
563.5
644
724.5
966

Frequently Asked Questions

How do I convert px to rem?

Divide the pixel value by the root font size, which is 16 px in every major browser unless the site or the reader changes it. For example, 24 px ÷ 16 = 1.5 rem.

Why use rem instead of px?

Because rem follows the reader's own font-size setting. If someone sets their browser's default text to 20 px, a 1.5 rem heading grows to 30 px, while a 24 px heading stays at 24 px. Sizing text in rem is how a page respects that choice, which is what WCAG's resize-text criterion (1.4.4) asks for.

What if my root font size is not 16 px?

Divide by your root size instead. A common pattern sets html { font-size: 62.5% }, which makes the root 10 px, so 24 px becomes 2.4 rem. This converter assumes the 16 px default.

What is the difference between rem and em?

rem is relative to the root (html) font size, so 1.5 rem is the same everywhere on the page. em is relative to the font size of the element itself, so it compounds: a 1.5 em element inside another 1.5 em element renders at 2.25 times the root size.

All tools