PX to REM and REM to PX converter
Convert CSS pixel and rem values in either direction. Change the root font size to match your project, type in either field, and the other value updates instantly. The generated reference table is useful when translating a design system or checking common spacing and typography sizes.
PX and REM formulas
To convert pixels to rem, divide pixels by the root font size. To convert rem to pixels, multiply rem by the root font size. For example, with a 16px root, 20px is 1.25rem and 1.5rem is 24px.
Why designers use REM units
REM values share one root reference, which helps type and spacing scale consistently and respect user font preferences. A browser often starts at 16px, but that value is not guaranteed, so this converter lets you use any positive root size rather than assuming a fixed base.