CloudAlls Tools
Converters tool

PX to REM Converter

Convert pixels to rem, em and percent with your own base size.

✦ Browser-first

Common sizes

pxrem / em%
Why it is useful

About this tool

Convert between pixels, rem, em and percent for responsive CSS, with an adjustable base font size and a table of common sizes you can copy from.

Quick guide

How to use the PX to REM Converter

  1. Set your base font size, usually 16px.
  2. Enter a value in px, rem or percent.
  3. Copy the converted CSS values.

Common uses

  • Responsive and accessible typography
  • Converting design specs to CSS
  • Spacing scales
FAQ

PX to REM Converter questions

What is a rem?

A unit relative to the root font size, so 1rem is 16px by default.

What is the difference between rem and em?

rem uses the root size, while em uses the font size of the current element.

Why use rem instead of px?

rem respects the font size users set in their browser, which helps accessibility.