Skip to content
Calculator Tools
Web Development Calculators

PX to REM Converter

Convert pixels to rem units for a given root font size, with a conversion table.

Enter values

Results update as you type.

Result

In rem

1.5 rem

CSS value
1.5rem
Rounded to 3 decimals
1.5rem
Back to pixels
24 px
As a percentage of root
150.00%

Common values at a 16px root

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

About the PX to REM Converter

Rem units scale with the root font size, so a layout built in rem respects the reader’s browser settings instead of overriding them. Dividing your pixel value by the root font size — 16px in every browser by default — gives the rem equivalent.

Also known as: pixel to rem, px rem converter, rem calculator, css rem units.

How to use this calculator

  1. Enter pixels, root font size.
  2. The result updates instantly as you type — press Calculate (or Enter) at any time.
  3. Review the breakdown shown under the main result.
  4. Use Copy result or Share to save the answer or send a link with your inputs.

Formula

rem = pixels ÷ root font size

Worked example

Using the values pre-filled in the calculator above:

  • Pixels = 24 px
  • Root font size = 16 px

the calculator returns:

  • In rem: 1.5 rem
  • CSS value: 1.5rem
  • Rounded to 3 decimals: 1.5rem
  • Back to pixels: 24 px

Frequently asked questions

What is the default root font size?

16px in every major browser, unless the user has changed it in their settings — which is exactly why rem is worth using.

Should I use rem or em?

Rem for layout and type scales because it is predictable; em for spacing that should scale with the local text size.