Pixels to Rem / Em Converter (px to rem, em)

Convert pixels (px) to rem or em instantly using the exact CSS formulas.

Convert Pixels to Rem / Em

Enter a pixel value and choose the conversion mode.

Result will appear here.
Awaiting input.

Conversion Formula

Standard CSS conversion formulas:

rem = pixels Γ· root font-size
em  = pixels Γ· parent font-size
        

Default browser font-size is usually 16px.

How to Convert PX to REM or EM

  1. Take the pixel value (example: 24px).
  2. Divide it by the base font-size (usually 16px).
  3. 24 Γ· 16 = 1.5 rem or em.

If the root or parent font-size changes, rem/em values scale automatically.

What Is a Pixel (px)?

A pixel (px) is an absolute CSS unit representing a single dot on the screen. Pixels do not scale automatically with font-size changes.

What Are Rem and Em Units?

rem is relative to the root (html) font-size, while em is relative to the parent element’s font-size.

Rem is preferred for consistent layouts; em is useful for component-based scaling.

Common PX to REM Conversion Table

Pixels (px)Rem (16px base)
80.5 rem
120.75 rem
140.875 rem
161 rem
201.25 rem
241.5 rem
322 rem
483 rem

Examples

16 px = 1 rem

24 px = 1.5 rem

32 px = 2 rem

Frequently Asked Questions

Is rem better than px?

Yes. Rem scales with user font settings, improving accessibility.

When should I use em?

Use em when you want elements to scale relative to their parent container.

Why is 16px used?

16px is the default browser root font-size in most environments.

Real-Life CSS Usage

Download PX to REM Table (CSV)

Related Converters