Skip to content

PX to REM Converter

Convert CSS pixels to rem (and rem to px) using any root font size, with a quick reference table.

  • Free, no sign-up
  • Runs in your browser
  • Reviewed Nov 6, 2026

How to use the PX to REM Converter

  1. Choose px → rem or rem → px.
  2. Enter the value and the root font size (16px by default).
  3. Copy the result or use the reference table.

How it works

rem = px ÷ root font size; px = rem × root font size.

Worked examples

24px

With a 16px root, 24px = 1.5rem.

Limitations and assumptions

  • Users can change their browser's default font size — one reason to prefer rem for accessible typography.

Frequently asked questions

What's the difference between rem and em?

rem is relative to the root (html) font size; em is relative to the parent element's font size.

G

Built and reviewed by Guru G

Calculation logic is covered by automated tests against known values. Last reviewed Nov 6, 2026. Found a problem? Let us know — see our editorial policy.