ToolCanvas

REM to PX Converter

Convert REM to pixels (PX) instantly and vice versa with adjustable root font size.

REM to PX Converter
Convert rem to pixels using the standard CSS formula — multiply by the root font size.
rem
px
px
1rem=16px

REM to PX Formula

PX = REM × Root Font Size

Example: 2 × 16 = 32px

PX to REM Formula

REM = PX ÷ Root Font Size

Example: 32 ÷ 16 = 2rem

REM ↔ PX Conversion Tables

Quick reference at the default 16px root font size. Use the converter above to change the root size.

REM to Pixels

REMPixels
0.01rem0.16px
0.03rem0.48px
0.05rem0.8px
0.08rem1.28px
0.1rem1.6px
0.15rem2.4px
0.2rem3.2px
0.5rem8px
1rem16px
2rem32px
3rem48px
4rem64px
5rem80px
6rem96px
8rem128px
10rem160px
15rem240px
20rem320px
30rem480px
40rem640px
50rem800px
60rem960px
80rem1280px
100rem1600px

Pixels to REM

PixelsREM
1px0.0625rem
2px0.125rem
3px0.1875rem
4px0.25rem
5px0.3125rem
6px0.375rem
8px0.5rem
10px0.625rem
12px0.75rem
14px0.875rem
15px0.9375rem
16px1rem
18px1.125rem
20px1.25rem
24px1.5rem
25px1.5625rem
28px1.75rem
32px2rem
36px2.25rem
40px2.5rem
44px2.75rem
48px3rem
50px3.125rem
56px3.5rem
64px4rem
72px4.5rem
75px4.6875rem
80px5rem
90px5.625rem
100px6.25rem

What Is REM?

REM (root em) is a CSS length unit relative to the font size of the <html> element. With the default 16px root, 1rem = 16px. Because every rem value derives from one root size, rem-based layouts scale consistently when users change their browser font preferences.

How REM to PX Conversion Works

Converting rem to pixels is multiplication. Take your rem value and multiply it by the root font size in pixels:

px = rem × root font size

At 16px root: 0.875rem → 14px, 1.25rem → 20px, 3rem → 48px. Designers publishing in rem often need pixel equivalents for image assets, media queries, or third-party widgets — this converter handles that instantly.

Common REM to PX Examples

  • 0.5rem → 8px
  • 0.75rem → 12px
  • 1rem → 16px
  • 1.5rem → 24px
  • 2rem → 32px
  • 2.5rem → 40px
  • 4rem → 64px

When to Convert REM to PX

Prefer rem in your stylesheets for accessibility, but convert to px when matching a design mockup, sizing raster images, writing canvas code, or communicating with stakeholders who think in pixels. Keep the root at 16px unless your project explicitly overrides it.

REM vs PX for Developers

Use rem for typography, spacing and component sizing so your UI respects user settings. Use px for hairline borders, shadows and fixed decorative elements. This converter bridges both worlds so you can work in whichever unit your task requires.

Frequently Asked Questions