PX to REM Converter

The professional, visual tool for modern web typography

px
px
rem
Live Visual Preview

The quick brown fox jumps over the lazy dog.

Size: 16px CSS: 1rem

Popular Conversions

Conversion Type Base Size Result (REM)
PX to REM Converter 12px 16px 0.75rem
PX to REM Converter 14px 16px 0.875rem
PX to REM Converter 16px 16px 1rem
PX to REM Converter 18px 16px 1.125rem
PX to REM Converter 20px 16px 1.25rem
PX to REM Converter 24px 16px 1.5rem
PX to REM Converter 32px 16px 2rem

What is a PX to REM Converter?

A PX to REM Converter is an essential tool for modern web development. It translates static pixel values (px) into relative "root em" (rem) units. Unlike pixels, which are absolute, rem units scale based on the root element's font-size (usually `html`). This makes your website accessible and responsive, respecting the user's browser settings.

How to use the PX to REM Converter

Using our PX to REM Converter is simple:

  1. Enter your base font size (default is 16px).
  2. Type your pixel value into the "Pixels" field.
  3. Instantly copy the calculated REM code for your CSS.

The Calculation Formula

The logic behind the PX to REM Converter is straightforward:

rem = px / base_font_size

For example, if your base size is 16px and you want to convert 24px:
24 / 16 = 1.5rem.

Why is this better than other converters?

Our tool offers a unique Blue Ocean feature: a real-time Visual Preview. Instead of just guessing, you can see exactly how the text scales relative to the container. This "Visual PX to REM Converter" approach ensures your design is pixel-perfect (or rem-perfect!) before you write a single line of CSS.