px to rem converter

Convert px to rem for any base font size. The output updates as you type, with a reference table covering common values.

px

Try 16, 24, 1.5

1
rem

Updates as you type

px

Default 16px — change to match your project.

8px0.5rem
12px0.75rem
14px0.875rem
16px1rem
18px1.125rem
20px1.25rem
24px1.5rem
32px2rem
48px3rem
64px4rem

How to use this tool

  1. 1Enter the px value you want to convert.
  2. 2Set your project’s base font size (defaults to 16px).
  3. 3Read the rem equivalent and copy it for your stylesheet.

About this tool

Pixels are absolute; rem values scale with the user’s root font size, which is why design systems and accessibility-conscious sites prefer rem for spacing and typography. The default browser root is 16px, so 1rem = 16px unless you’ve changed it.

Related tools

FAQ

Frequently asked questions

Short answers to what people ask most.

Reviewing work with your team?

Pin comments directly on a live website or design — no extension, no setup.

Annotate live sites and screenshotsCapture browser, viewport, and CSS contextFree for your first project