blackdroid.dev

PX to REM Converter

Convert px to rem and rem to px online for free. Set your base font size, convert any value and check a table of common sizes.

Browsers default to 16
16px = 1rem

Common values (base 16px)

pxrempxrem
1px0.0625rem2px0.125rem
4px0.25rem8px0.5rem
10px0.625rem12px0.75rem
14px0.875rem16px1rem
18px1.125rem20px1.25rem
24px1.5rem28px1.75rem
32px2rem36px2.25rem
40px2.5rem48px3rem
56px3.5rem64px4rem
80px5rem96px6rem
120px7.5rem160px10rem

About PX to REM Converter

Convert pixels to rem units (and back) against any base font size — the browser default of 16px is pre-set, change it for Tailwind or custom setups.

A reference table of the most common values is always visible for quick lookups. Everything is computed locally in your browser.

How to use PX to REM Converter

  1. Set the base font size if it isn't the browser default of 16px.
  2. Type a px or rem value and read the converted result instantly.
  3. Use the table for the common sizes without typing.

Frequently asked questions

How do I convert px to rem?

Divide the pixel value by the base font size: 24px ÷ 16px = 1.5rem. Change the base here if your project uses a different root size.

Why use rem instead of px?

rem scales with the user's root font-size preference, so layouts and text respect accessibility settings — px stays fixed.

Is rem or em better?

rem is predictable since it always references the root element, while em compounds with parent font sizes — rem is the safer default for sizing.