PX to REM & EM Converter

Convert between the CSS length units that front-end developers use every day. Everything runs in your browser; nothing you enter is uploaded or stored.

  • Free, no sign-up
  • Runs in your browser
  • Verified

How to use it

  1. Enter a value and its unit.
  2. Set the root and parent font sizes if they are not 16 px.
  3. Read px, rem, em and pt.

How it works

rem is relative to the root element’s font size, em to the parent element’s font size. px = rem × root size = em × parent size. A CSS inch is 96 px and 72 pt, so 1 pt = 96 ÷ 72 px ≈ 1.3333 px.

Examples

  • 24 px at a 16 px root is 1.5 rem.
  • 12 pt = 16 px.

Limitations

  • Browsers default to a 16 px root size, but users can change it in settings, which is a reason to prefer rem for text.
  • Physical sizes of CSS pixels vary by device.

References

Last verified . See our Accuracy & Editorial Policy. Found a problem? Email contact@tools.gift.