Pixels to Rem
A rem unit is relative to the root element's computed font size.
Pixels to Rem
Screen typography · 2 inputs
How to use this calculator
- Enter length in CSS px.
- Enter root font size in CSS px.
- Select Calculate and keep the output unit with the answer.
Before you use the answer
Confirm the production specification with the printer or delivery platform before choosing dimensions. Keep trim, bleed, live area and pixel density distinct. Numerical consistency helps prevent avoidable rework, but a final proof remains necessary to judge the finished layout.
User settings and styles can change the root font size, so sixteen pixels is only an example.
Does it save my inputs?
No calculation history is stored by this website. The calculator works locally in your browser. See the privacy policy for hosting and contact details.
Why might a result be approximate?
Measurement uncertainty, ideal-model assumptions and floating-point rounding can all matter. Displaying more digits does not improve the original measurement.
Related calculations
Rem to Pixels
Multiplying a rem value by the root size gives its current CSS-pixel equivalent.
Open calculator ↗Viewport Width Units
One viewport-width unit equals one percent of the relevant viewport width.
Open calculator ↗Device Pixel Export Width
An image export can target enough device pixels for a chosen CSS display width.
Open calculator ↗