Lab — Dev Tools
PX ⇄ REM Converter is a free online tool that converts pixel values to rem units and back at any root font size — type a value, get the exact conversion instantly, copy the result or a ready-to-paste CSS declaration, and check the quick reference table for common sizes. No account, nothing leaves the page.
Press Enter in the px field to copy the rem value. Your base size is remembered on this device.
CSS snippet
Common values ·
| px | rem |
|---|
Click any rem value to copy it.
How it works
rem = px ÷ base and px = rem × base. At the default 16px base, 20px is 1.25rem.