Add your input
A pixel or rem value and the root font size.
Translate design measurements without hiding the formula.
1remYour work stays private in your browser while you use this tool.
The px/rem converter divides pixels by the root font size to get rem, or multiplies rem by the root font size to get pixels. With the common 16 px root, 1 rem equals 16 px.
A pixel or rem value and the root font size.
Translate design measurements without hiding the formula.
Equivalent px and rem measurements.
Most browsers default to a 16px root size, but your project may set a different value.
Translate a 24 px design-system spacing value into rem for CSS.
Check the pixel equivalent of a 1.125 rem type size at a custom root size.
Migrate a stylesheet from fixed pixel lengths to root-relative units.
For px to rem, the value is divided by the positive root font size. For rem to px, it is multiplied by that size. Results retain useful decimal precision and can be copied with the output unit.
Yes. PX ↔ REM converter is free to use.
Yes. Your work stays private while you use the tool — nothing you enter is uploaded.
Enter the computed font size of the document's root element for the context you are targeting. Many projects use 16 px, but it is not guaranteed.
No. rem is relative to the root element's font size, while em is generally relative to the element's own computed font size. This calculator handles rem only.