1.5 rem
Use the inputs above for your own values. The result follows the method and assumptions shown below.
How it works
rem = pixels / root font size; pixels = rem × root font size.
Input definitions
- Size to convert
- Enter the value in the labeled unit.
- Root font size (px)
- Enter the value in the labeled unit.
- Direction
- Choose Pixels to rem / Rem to pixels.
A worked example
- Size to convert
- 24
- Root font size (px)
- 16
- Direction
- Pixels to rem
Assumptions & limits
Root size is manually entered and is not assumed to match every visitor’s browser. Signed CSS lengths are supported.
Sources & review
Maintained by AnsRio. Methods and examples are reviewed against the stated formula; this is not professional certification.
Method updated 2026-11-18. Reviewed against the stated method and example. Our verification approach.
Report an issue with this tool or suggest an improvement ↗
Common questions
Is 1 rem always 16 pixels?
No. A rem is relative to the root element’s computed font size. Sixteen pixels is a common default, but browser preferences and site CSS can change it. Enter the root size you intend to use.
Does generated CSS or a color result guarantee an accessible design?
No. Test the result in its real layout, including text contrast, browser zoom, focus and responsive behavior. A code generator only covers its documented property or color operation.
How does the Pixels and rem converter tool work?
rem = pixels / root font size; pixels = rem × root font size.
What are the assumptions and limits of Pixels and rem converter?
Root size is manually entered and is not assumed to match every visitor’s browser. Signed CSS lengths are supported.