Pixels to REM Converter

Instantly convert pixel values to rem units (and vice versa) for responsive, accessible CSS typography.

px (Browser default is 16)
1rem
font-size: 1rem;

Common Conversions (Base 16px)

PixelsREMTypical Use
10px0.625remCaptions, fine print
12px0.75remSmall UI text
14px0.875remSecondary text, labels
16px1remBase body text
18px1.125remLarge body text
20px1.25remLead paragraphs
24px1.5remH3 headings
32px2remH2 headings
48px3remH1 hero headings

Why Use REM Instead of Pixels?

When you set font sizes in px, they are absolute — they don't scale when a user changes their browser's default font size for accessibility. A visually impaired user who sets their browser to 24px base will still see your 16px paragraph text at 16px, making it unreadable.

With rem, all your typography scales proportionally. If the user sets a 24px root size, your 1.5rem heading automatically becomes 36px. Your entire design respects the user's preferences without any extra work.

Frequently Asked Questions

How do you convert px to rem?

Divide the pixel value by the root font size (default 16px). For example, 24px ÷ 16 = 1.5rem.

Why use rem instead of px?

rem units scale with the user's browser font size settings, making your typography accessible. px is fixed and ignores user preferences.

What is the default root font size?

16px in all modern browsers. This means 1rem = 16px by default.

What is 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 and can compound in nested elements, which makes it unpredictable. rem is the modern standard.