Share To Your Friend & Family:

PX ↔︎ REM Converter

Easily convert between pixels (px) and rem units, based on a root font-size of 16px.

How to Use This PX to REM Converter

Our calculator instantly converts between CSS pixels (px) and relative REM units. Simply enter a value in either field to see the conversion. The calculation is based on the standard root font-size of 16px, where 1rem = 16px (1px = 0.0625rem).

Why Use REM Units in CSS?

REM (Root EM) units are relative to the root HTML element's font-size, making them perfect for responsive, accessible web design:

  • Better accessibility - respects user's browser font-size preferences
  • Easier responsive scaling - change root size to adjust all elements
  • More consistent than EM units - not affected by parent element sizes
  • Modern best practice - recommended for responsive layouts

EM vs REM: Key Differences

While both are relative units, EM is relative to the parent element's font-size, creating compounding issues in nested elements. REM is always relative to the root (html) font-size, providing consistent sizing throughout your document.

PX to REM Conversion Table

PixelsREM
1px0.06rem
2px0.13rem
3px0.19rem
4px0.25rem
5px0.31rem
6px0.38rem
8px0.5rem
10px0.63rem
12px0.75rem
14px0.88rem
15px0.94rem
16px1rem
18px1.13rem
20px1.25rem
24px1.5rem

REM to PX Conversion Table

REMPixels
0.01rem0.16px
0.03rem0.5px
0.05rem0.8px
0.08rem1.3px
0.1rem1.6px
0.15rem2px
0.2rem3px
0.5rem8px
1rem16px
2rem32px
3rem48px
4rem64px
5rem80px
6rem96px
8rem128px
10rem160px

Common Use Cases

Use REM units for: font sizes, margins, paddings, and any spacing that should scale with the root font-size. Use PX for: borders, shadows, and other design elements that need precise pixel-perfect control.

🔗 Related Tools You Might Like

All-in-One Productivity Tools

Useful Applications

Islamic

Calculator

Math Lesson

Games

Developer Tools