PX to REM Converter
Convert CSS pixels and rem in both directions using a root font size and common-size table.
px-to-rem-converterLOCAL WORKSPACE
Enabling local controls…
Settings
rem uses the root font size. The em value assumes its reference font size matches the root.
Results
CSS
.converted-size { font-size: 1.5rem; }| px | rem | Action |
|---|---|---|
| 8px | 0.5rem | |
| 12px | 0.75rem | |
| 14px | 0.875rem | |
| 16px | 1rem | |
| 18px | 1.125rem | |
| 20px | 1.25rem | |
| 24px | 1.5rem | |
| 32px | 2rem | |
| 40px | 2.5rem | |
| 48px | 3rem | |
| 64px | 4rem |
How to use this tool
Choose a preset or edit the controls. Copy the result or download it when it is ready.
When not to use it
The em result assumes the same reference size as rem.