Screen typography / Calculator 42

Pixels to Rem

A rem unit is relative to the root element's computed font size.

Your inputs

Pixels to Rem

Screen typography · 2 inputs

Calculated result1.5rem
Example result
No data leaves your browser when you calculate.

How to use this calculator

  1. Enter length in CSS px.
  2. Enter root font size in CSS px.
  3. 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