PX ⇄ REM Converter
Convert between px and rem/em units with a custom base font size and bulk CSS conversion.
Loading tool…
Runs locally in your browser. Your files are never uploaded.
About this tool
The converter lets you translate pixel values to rem or em units, making it easier to build responsive designs that scale with the root font size. You can set the base font size, see a conversion table, paste a block of CSS and have all px values replaced with the corresponding rem values in one step.
How to use it
- Enter the base font size in pixels.
- Paste CSS code or type a value to convert.
- Copy the converted output or download a conversion table.