PX to REM converter
Convert CSS pixels and rem units in either direction.
A rem unit is relative to the root element's font size, not the parent element. This calculator does not inspect a webpage or convert em units. Negative values are accepted for properties that support them. Change the input or settings to update your result. Results update as you type. Up to 1,000,000 characters.
Your result
How to use PX to REM converter
- Enter the values you want to calculate and choose the relevant units or settings.
- The result updates as you type. Adjust the available settings if needed.
- Review the result, then use Copy result or a download link when available.
Useful next steps
How to use it
Enter a value and the root font size. Choose Pixels to rem or Rem to pixels. The default root size is 16px, but you can match your project's CSS.
A worked example
At a 16px root, 24px equals 1.5rem. In the reverse direction, 2rem equals 32px.
What to know
A rem unit is relative to the root element's font size, not the parent element. This calculator does not inspect a webpage or convert em units. Negative values are accepted for properties that support them.