Toolman

12px to rem

12px = 0.75rem

At the browser default root font size of 16 px. Change it and this number changes — see below.

How it is calculated

One px is 0.0625rem, so:

12px × 0.0625 = 0.75rem

Reversing it, 0.75rem × 16 returns 12px.

12px at other root font sizes

rem is measured against the root element, so the answer above holds only while that is 16 px. A visitor who has raised their browser's default — the accessibility setting rem exists to respect — is reading your page at one of the larger rows.

Root font size12px equals
14 px0.857143rem
16 px (default)0.75rem
18 px0.666667rem
20 px0.6rem
24 px0.5rem

Nearby values

pxrem
8px0.5rem
10px0.625rem
12px0.75rem
14px0.875rem
16px1rem
18px1.125rem
20px1.25rem

Frequently asked questions

What is 12px in rem?

0.75rem at the default 16 px root font size.

How is 12px converted to rem?

Multiply by 0.0625: 12 × 0.0625 = 0.75. To go back, multiply 0.75 by 16.

Is 0.75rem always the answer?

No. rem is relative to the root element, so 12px is 0.75rem only while that is 16 px. The table above gives the value at the sizes you are most likely to meet.

The full PX to REM converter → · All CSS unit converters