PX to REM Converter
Convert pixels (px) to rem, em, and points (pt) live as you type. Includes instant CSS snippet generation, base font size customization, and responsive typography scales.
font-size: 1rem; /* 16px */
Responsive Typography & Tailwind Scale (at 16px Base)
| Pixels (px) | REM | EM | Points (pt) | Tailwind Class |
|---|---|---|---|---|
| 10 px | 0.625 rem | 0.625 em | 7.5 pt | text-[10px] |
| 12 px | 0.75 rem | 0.75 em | 9 pt | text-xs |
| 14 px | 0.875 rem | 0.875 em | 10.5 pt | text-sm |
| 16 px | 1 rem | 1 em | 12 pt | text-base (Default) |
| 18 px | 1.125 rem | 1.125 em | 13.5 pt | text-lg |
| 20 px | 1.25 rem | 1.25 em | 15 pt | text-xl |
| 24 px | 1.5 rem | 1.5 em | 18 pt | text-2xl |
| 30 px | 1.875 rem | 1.875 em | 22.5 pt | text-3xl |
| 36 px | 2.25 rem | 2.25 em | 27 pt | text-4xl |
| 48 px | 3 rem | 3 em | 36 pt | text-5xl |
| 64 px | 4 rem | 4 em | 48 pt | text-6xl |
| 72 px | 4.5 rem | 4.5 em | 54 pt | text-7xl |
How to Calculate PX to REM
The calculation is simple: divide the target pixel size by the root font size of your HTML document:
REM = Pixels / Base Font Size
Pixels = REM × Base Font Size
Points (pt) = Pixels × 0.75
Frequently Asked Questions
Why should I use REM instead of PX in modern web design?
REM units are relative to the root font size defined by the user's browser settings. When visually impaired users increase their default browser font size for accessibility, layouts built with REM automatically scale up gracefully, whereas fixed PX values remain frozen and can break accessibility guidelines.
What is the difference between REM and EM?
REM is relative to the root (<html>) element font size, providing consistent, predictable sizing across the entire page. EM is relative to its immediate parent element, which causes compound cascading scaling when nested.