Converters
PX ↔ REM Converter
Convert pixels and rem using a configurable root font size.
Conversion runs locally in your browser. Your input is not uploaded or saved.
Quick startThree steps to your result
- 1
Add your inputEnter the value you want to work with.
- 2
Set any optionsUse the controls below if you want to customize the result.
- 3
Get your resultYour result appears below or updates as you work. Copy or download it when available.
Quick answers
Frequently asked questions
How do I convert px to rem?
Enter a pixel value and the root font size; the default root size is 16 px. The result is the pixel value divided by that root size.
How do I convert rem to px?
Enter the rem value and root font size. The tool multiplies them to calculate pixels.
Why change the root font size?
CSS rem units are relative to the document root font size. Use the value configured by your project, since it may differ from 16 px.
Does this change my CSS?
No. It calculates values for you to copy into your stylesheet; it does not edit or inspect a project.