REM to PX Converter

Convert between REM, PX, EM, Percent (%), and Points (pt) units with customizable base font size

Live Font Size Preview

Hello

Conversion Reference

1 unit equals how many pixels

px

1

pixels

rem

16

pixels

em

16

pixels

%

0.16

pixels

pt

1.3333

pixels

CSS Style Properties

Pixels (px)

h1 {
  font-size: 16px;
}

Root Em (rem)

h1 {
  font-size: 16rem;
}

Em (em)

h1 {
  font-size: 16em;
}

Percentage (%)

h1 {
  font-size: 16%;
}

Points (pt)

h1 {
  font-size: 16pt;
}

About REM to PX Conversion

What is REM?

REM (Root Em) is a relative CSS unit that is based on the font size of the root element (typically 16px by default). It's useful for creating scalable, responsive designs that adapt to user preferences.

What is PX?

PX (Pixels) is an absolute unit that represents a fixed size on the screen. It doesn't scale with user preferences or parent elements, making it useful for precise measurements.

The Conversion Formula

1 REM = Base Font Size (default 16px)

If you change your base font size to 20px, then 1 REM = 20px.

Unit Conversion Table for REM to PX

EMREMPixelPercentPoint
0.5em0.5rem8px50%6.00pt
0.6em0.6rem9.6px60%7.20pt
0.7em0.7rem11.2px70%8.40pt
0.8em0.8rem12.8px80%9.60pt
0.9em0.9rem14.4px90%10.80pt
1.0em1.0rem16px100%12.00pt
1.1em1.1rem17.6px110%13.20pt
1.2em1.2rem19.2px120%14.40pt
1.3em1.3rem20.8px130%15.60pt
1.4em1.4rem22.4px140%16.80pt
1.5em1.5rem24px150%18.00pt
1.6em1.6rem25.6px160%19.20pt
1.7em1.7rem27.2px170%20.40pt
1.8em1.8rem28.8px180%21.60pt
1.9em1.9rem30.4px190%22.80pt
2.0em2.0rem32px200%24.00pt
2.1em2.1rem33.6px210%25.20pt
2.2em2.2rem35.2px220%26.40pt
2.3em2.3rem36.8px230%27.60pt
2.4em2.4rem38.4px240%28.80pt
2.5em2.5rem40px250%30.00pt
2.6em2.6rem41.6px260%31.20pt
2.7em2.7rem43.2px270%32.40pt
2.8em2.8rem44.8px280%33.60pt
2.9em2.9rem46.4px290%34.80pt
3.0em3.0rem48px300%36.00pt

How to Convert REM to PX Online

  1. 1

    Enter your REM value

    Type any REM value into the "From Value" input. The default is 16, which equals 256px at a 16px base font size (16rem × 16 = 256px).

  2. 2

    Select source and target units

    Choose REM as the source unit and PX as the target. This converter also supports EM, Percent (%), and Points (pt) so you can convert between any combination.

  3. 3

    Set your base font size

    Click "Show Settings" to enter your project's root font size. Most browsers default to 16px, but some projects use 10px (62.5% root font size trick). Enter the correct value for accurate conversions.

  4. 4

    Read the result and copy

    The converted pixel value appears instantly. Click Copy to grab it for your stylesheet. Use the swap button to reverse the conversion direction.

Common Use Cases for REM to PX Conversion

Debugging Layout Issues

When your browser dev tools show pixel values but your CSS uses REM, convert back and forth to understand exactly how much space your elements occupy on screen.

Implementing Design Specs

Designers typically work in pixels (Figma, Sketch, Adobe XD). Convert their pixel measurements to REM so your CSS stays scalable while matching the design precisely.

Building Design Systems

Convert a pixel-based spacing scale (4, 8, 12, 16, 24, 32px) to REM tokens for a consistent, accessible design system that scales with user preferences.

Tailwind CSS Configuration

Tailwind uses REM for spacing and font size utilities by default (1rem = 4 units). Use this converter to verify that your custom theme values match your design tokens in pixels.

Accessibility Testing

Verify that text set in REM scales correctly when users increase their browser font size from 16px to 20px or 24px. Convert expected REM values to confirm readable pixel sizes.

Migrating from PX to REM

Modernizing a legacy stylesheet? Paste your existing pixel values here to get the equivalent REM values, then update your CSS for a more accessible, scalable codebase.

Frequently Asked Questions

What is the formula to convert REM to PX?

The formula is: PX = REM × Base Font Size. With the default 16px base, 1.5rem = 24px (1.5 × 16). To go the other way: REM = PX ÷ Base Font Size, so 24px = 1.5rem.

How many PX is 1rem?

By default, 1rem = 16px in all major browsers. Common reference values: 0.5rem = 8px, 0.75rem = 12px, 0.875rem = 14px, 1.25rem = 20px, 1.5rem = 24px, 2rem = 32px, 3rem = 48px.

What is the difference between REM and EM?

REM is relative to the root HTML element's font size and stays consistent regardless of nesting. EM is relative to the parent element's font size and can compound when nested. Use REM for consistent global sizing and EM for component-relative sizing.

Why should I use REM instead of PX?

REM units respect user browser font size preferences, making your site more accessible. If a user increases their default font size for readability, REM-based layouts scale proportionally. PX stays fixed regardless of user settings, which can cause accessibility issues.

What is the 62.5% root font size trick?

Setting html { font-size: 62.5%; } makes 1rem = 10px, so REM values directly match a 10× pixel scale (e.g., 1.6rem = 16px). While convenient for mental math, it can break third-party components that assume a 16px base. Use the Settings panel to set your base to 10px if you use this technique.

Should I use REM for padding and margin too?

Yes. Using REM for spacing creates proportional layouts that scale with the root font size. However, for fine details like borders (1px) or box shadows, using PX is perfectly acceptable since these don't need to scale with typography.

How do I convert percent to REM?

Select "Percentage (%)" as your source and "Root Em (rem)" as your target in this converter. The calculation uses your parent size setting: REM = (Percent ÷ 100 × Parent Size) ÷ Base Font Size. This is useful when converting percent-based Figma values into scalable REM.