Free tools

PX to REM converter

Convert values between pixels and rem with your root font size. The default root font size is 16px. Webflow accepts rem in all size fields. With rem, text and spacing can scale.

24px = 1.5rem

PXREM (root 16px)
10px0.625rem
12px0.75rem
14px0.875rem
16px1rem
18px1.125rem
20px1.25rem
24px1.5rem
28px1.75rem
32px2rem
40px2.5rem
48px3rem
56px3.5rem
64px4rem
72px4.5rem
96px6rem

How to use it

  1. Set your root font size.
  2. Type a value in px or rem.
  3. Copy the result.

The formula

rem = px ÷ root font size. With a 16px root, 24px is 1.5rem and 0.75rem is 12px.

How to use rem in Webflow

Type the unit directly into a Style panel field, for example 1.5rem. If your site sets a different font size on the Body (All pages) tag, rem does not change. The rem unit follows the html element.

Questions

What is 1rem in pixels?

1rem is 16px in all browsers by default. If a site changes the font size of the html element, 1rem changes too.

Should I use rem or px in Webflow?

Use rem for font sizes and most spacing. Then the sizes change with the browser settings of the visitor. Use px for borders and small fixed details.