PX to REM Converter

Convert pixels to rem/em and back for CSS. Free, no sign-up, works in your browser.

=

Convert a whole stylesheet

🔒 100% private — processing happens in your browser. Nothing is uploaded.

How to use the px to rem converter

  1. Set the root font size (16 px is the browser default).
  2. Type pixels or rem — the other field updates.
  3. Or paste CSS and click px → rem to convert every value at once (1px borders are left alone).

Using rem units makes text and spacing scale when users raise the browser font size — an accessibility requirement in WCAG. 1rem equals the root (html) font size; em is relative to the parent element instead.