| PX | REM |
|---|---|
| 12px | 0.75rem |
| 14px | 0.875rem |
| 16px | 1rem |
| 18px | 1.125rem |
| 20px | 1.25rem |
| 24px | 1.5rem |
| 32px | 2rem |
rem = px ÷ root font size. Calculated entirely in your browser.
Convert between rem and px online, free. In CSS, px is an absolute unit while rem is relative to the root (html) font size — by default 16px. This converter turns rem into px and back for any root font size, so you can move between the two units accurately while keeping accessible, scalable layouts (per the W3C CSS Values and Units specification).
It converts rem ↔ px against an adjustable root font size, so your spacing and typography stay consistent and accessible. 100% free, no registration, and complete privacy — everything runs locally in your browser, so your data never touches a server.
Convert rem to px or px to rem instantly, with the math shown so the result is easy to trust.
Set the base font size (default 16px) to match your project, including non-default or user-scaled roots.
Conversion runs locally in your browser; nothing you enter is uploaded or stored.
Unlimited conversions with no account, on desktop and mobile.
Multiply the rem value by the root font size. At the 16px default, 1.5rem = 1.5 × 16 = 24px. Enter your value and root size and the tool does it instantly, both directions.
Browsers default the root (html) font size to 16px, so 1rem = 16px unless you or the user changes it. This tool defaults to 16 but lets you set any base.
Prefer rem for font sizes and often spacing, because it scales with the user's browser font-size setting (better accessibility). Use px where you need a fixed value that shouldn't scale, like 1px borders.
rem respects the user's chosen base font size, so a visitor who increases their browser default sees your whole layout scale proportionally. Fixed px ignores that preference.
No. The conversion happens entirely in your browser; nothing you enter leaves your device.