Advertisement space (leaderboard, 728×90)

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.

px
(Default browser standard is 16px)
Generated CSS Snippet:
font-size: 1rem; /* 16px */
Quick Size Presets:
Advertisement space (in-content)

Responsive Typography & Tailwind Scale (at 16px Base)

Pixels (px) REM EM Points (pt) Tailwind Class
10 px0.625 rem0.625 em7.5 pttext-[10px]
12 px0.75 rem0.75 em9 pttext-xs
14 px0.875 rem0.875 em10.5 pttext-sm
16 px1 rem1 em12 pttext-base (Default)
18 px1.125 rem1.125 em13.5 pttext-lg
20 px1.25 rem1.25 em15 pttext-xl
24 px1.5 rem1.5 em18 pttext-2xl
30 px1.875 rem1.875 em22.5 pttext-3xl
36 px2.25 rem2.25 em27 pttext-4xl
48 px3 rem3 em36 pttext-5xl
64 px4 rem4 em48 pttext-6xl
72 px4.5 rem4.5 em54 pttext-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.