PX to REM Converter

Convert pixels to rem and rem to pixels for any root font size, see a reference table, and convert every px value in a pasted stylesheet to rem in one go.

Runs locally — nothing is uploaded

Convert

px
rem

Convert a whole stylesheet

px values become rem

Reference table

How to use PX to REM Converter

  1. Set the root font size (16px by default).
  2. Type a px or rem value to convert either way.
  3. Paste CSS to convert all px values at once.

FAQ

Why use rem instead of px?

rem scales with the visitor’s browser font-size setting, which improves accessibility, and keeps spacing proportional across a design.

About the PX to REM Converter

rem units respect the visitor’s browser font size and keep spacing proportional. For sizes that should grow with the screen, generate a fluid value with the CSS Clamp Generator; learn the technique in fluid typography with CSS clamp().

Also useful: CSS Box Shadow Generator · Colour Picker & Converter

Popular searches

People find PX to REM Converter by searching for:

  • px to rem
  • rem to px
  • pixel to rem converter
  • convert px to rem css
  • rem calculator
  • em to px