PX to REM Converter
Convert a single CSS value or a space-separated list while preserving useful precision.
Loading calculator…
Browser-only processingCalculations are performed locally in your browser. Your entered values are not sent to our servers.
PX to REM Converter formula
rem = px ÷ root font size. px = rem × root font size.
Worked example
At a 16px root size, 24px equals 1.5rem.
How to use this calculator
- Choose the conversion direction.
- Enter one or more numeric values.
- Copy the converted CSS values.
Important assumptions and limitations
The root font size must be greater than zero.
Related calculators
Percentage CalculatorCalculate percentages, percent change, increases and decreases.Discount CalculatorFind sale price, sequential discounts, tax and total savings.Age CalculatorCalculate exact calendar age, total days and the next birthday.Date Difference CalculatorFind calendar and total time between two local dates.
Frequently asked questions
What root size should I use?
Browsers commonly default to 16px, but use your project’s actual root size.
Can I convert several values?
Yes. Separate values with spaces or commas.