PX to REM and REM to PX Converter Instant Online

By Vijay

By Vijay

I'm Vijay, and I've been working on this blog for the past 20+ years! I’ve been in the IT industry for more than 20 years now. I completed my graduation in B.E. Computer Science from a reputed Pune university and then started my career in…

Learn about our editorial policies.
Updated August 12, 2025

This PX to REM instant online converter converts pixels to REM using a default 16 pixels font-size. The formula used here is 1px = 0.0625rem and 1rem = 16px. The REM to PX conversion also works here.

The PX to REM converter is very helpful when you want to convert any pixel-based designs to accessible, scalable REM-based layouts.

PX to REM Conversion

PX ↔︎ REM Converter
Instant bidirectional conversion • Base: 16px
Pixels (px)
↕︎
REM (rem)
Formula: 1rem = 16px (default browser font-size)
Quick Reference:
8px = 0.5rem
12px = 0.75rem
16px = 1rem
24px = 1.5rem
32px = 2rem
48px = 3rem

How to Use PX to REM Converter

This utility is helpful in CSS development in responsive designs.

Enter a value in either field:

  • Type 16 in the PX field → REM field shows 1
  • Type 2 in the REM field → PX field shows 32

Real-time conversion happens instantly as you type.

Formula Used:

  • PX to REM: px ÷ 16 = rem
  • REM to PX: rem × 16 = px

Difference Between PX and REM Units

PX (Pixels)

  • It’s an absolute unit – a fixed size that does not change
  • 1px = 1 pixel on the screen
  • Used in static measurements like inches or centimeters

REM (Root EM)

  • It’s a relative unit – size depends on root font-size
  • 1rem = root element’s font-size (usually 16px)
  • Used in scalable measurement that adapts

CSS Example Using PX and REM

/* Use PX for tiny details */
border: 1px solid #ddd;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);

/* Use REM for everything else */
font-size: 1.125rem;     /* 18px */
padding: 1rem 1.5rem;    /* 16px 24px */
margin-bottom: 2rem;     /* 32px */
max-width: 50rem;        /* 800px */

PX ↔ REM Quick Conversion Tables

PXREMUse Case
10px0.625remSmall text, captions
12px0.75remSmall body text
14px0.875remSmall-medium text
16px1remBase/Body text
18px1.125remLarge body text
20px1.25remSmall headings
24px1.5remH4 headings
28px1.75remH3 headings
32px2remH2 headings
36px2.25remH1 headings
48px3remLarge headings
64px4remHero text

Spacing Values:

PXREMCategory
2px0.125remMicro (borders)
4px0.25remMicro (fine details)
8px0.5remSmall spacing
12px0.75remSmall spacing
16px1remBase spacing
20px1.25remMedium spacing
24px1.5remMedium spacing
32px2remLarge spacing
40px2.5remLarge spacing
48px3remXL spacing
64px4remXXL spacing
80px5remSection gaps

Layout Breakpoints:

PXREMDevice
320px20remMobile (small)
480px30remMobile (large)
768px48remTablet
1024px64remDesktop (small)
1200px75remDesktop
1440px90remDesktop (large)

MOST COMMON Conversions:

PX to REM:

8px = 0.5rem | 16px = 1rem | 32px = 2rem
12px = 0.75rem | 20px = 1.25rem | 48px = 3rem
14px = 0.875rem | 24px = 1.5rem | 64px = 4rem

REM to PX:

0.25rem = 4px | 1rem = 16px | 3rem = 48px
0.5rem = 8px | 1.5rem = 24px | 4rem = 64px
0.75rem = 12px | 2rem = 32px | 5rem = 80px

Was this helpful?

Thanks for your feedback!

READ MORE FROM THIS SERIES: