Technology

PX to REM Converter

Convert pixels to rem and back, and to points, for web design and CSS, with any root font size.

Rules last checked 25 October 2026Every step shown

Your numbers are saved in this browser.
px

Browsers default to 16 px.

rem

1.5 rem

Points
18 pt
Percent of the root size
150%

24 px is 24 px or 1.5 rem with a 16 px root font size.

How it's worked out

  1. rem = px ÷ root size24 ÷ 161.5 rem
Common sizes
pxrempt
100.6257.5
120.759
140.87510.5
16112
181.12513.5
201.2515
241.518
32224
48336

The formulas

rem = px ÷ root font size · pt = px × 72 ÷ 96

Worked example

With the default 16 px root size, 24 px is 1.5 rem and 18 pt.

Questions people ask

How do I convert px to rem?

Divide by the root font size, usually 16 px. 24 px is 1.5 rem.

What is the difference between rem and em?

rem is relative to the root (html) font size; em is relative to the parent element's font size.

How many pixels is 12 pt?

16 px on screen, since 1 pt is 1/72 inch and CSS uses 96 px per inch.

About this calculator

Formula and rules last checked 25 October 2026Written and tested by the CalculatorDex teamReport a problem