PX to REM Converter

Convert pixels to REM units for responsive CSS. Set your base font size and get instant px/rem conversions. Free browser tool.

px

Common Sizes (base 16px)

PX REM Typical Use
10px0.625remExtra small text
12px0.75remCaption / label
14px0.875remSmall body text
16px1remBase / body text
18px1.125remLarge body text
24px1.5remHeading h3
32px2remHeading h2
48px3remHeading h1

How to Use

  1. 1 Set the base font size (default 16px, which is the browser default)
  2. 2 Select PX → REM to convert pixels to REM, or REM → PX for the reverse
  3. 3 Enter your pixel or REM value
  4. 4 Click Convert to see the result

Use Cases

Responsive Design

Convert pixel values from design mockups to REM units for scalable, accessible CSS that respects user font size preferences.

CSS Migration

Update existing pixel-based CSS values to REM for better accessibility and consistent scaling across your stylesheet.

Font Sizing

Set font sizes in REM units to ensure text scales proportionally when users change their browser's default font size.

FAQ

REM (root em) is a CSS unit relative to the root element's (html) font size. If the root font size is 16px, then 1rem = 16px, 2rem = 32px, etc.

REM units scale when users change their browser font size preference, improving accessibility. Pixels are absolute and won't scale with user settings.

Most browsers default to 16px. Use this converter's base size field to match your project's root font-size CSS declaration.

Related Tools