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
Pixels | REM |
---|---|
1px | 0.06rem |
2px | 0.13rem |
3px | 0.19rem |
4px | 0.25rem |
5px | 0.31rem |
6px | 0.38rem |
8px | 0.5rem |
10px | 0.63rem |
12px | 0.75rem |
14px | 0.88rem |
15px | 0.94rem |
16px | 1rem |
18px | 1.13rem |
20px | 1.25rem |
24px | 1.5rem |
REM to PX Conversion Table
REM | Pixels |
---|---|
0.01rem | 0.16px |
0.03rem | 0.5px |
0.05rem | 0.8px |
0.08rem | 1.3px |
0.1rem | 1.6px |
0.15rem | 2px |
0.2rem | 3px |
0.5rem | 8px |
1rem | 16px |
2rem | 32px |
3rem | 48px |
4rem | 64px |
5rem | 80px |
6rem | 96px |
8rem | 128px |
10rem | 160px |
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
- 📎 JSON Formatter & Fixer – Beautify and repair JSON
- 🆔 UUID Generator – Generate unique identifiers
- 🔐 Base64 Encoder & Decoder – Encode/Decode secure strings
All-in-One Productivity Tools
Useful Applications
- Calendar
- Convert To Pdf
- Internet Speed Test
- Online Stopwatch
- Random Coin
- Random Dice Roller
- Random Number Generator
- Random Team Generator
- Random Wheel
- Scoreboard
- Tally Counter
- Whatsapp Blast
- World Clock