At the default root font size of 16px, 96px is exactly 6rem.
Calculation based on a root font-size of 16 pixels.
How to convert 96px to rem
To convert pixels to rem, divide the pixel value by the root font size: rem = px ÷ 16. For 96px that is 96 ÷ 16 = 6rem.
96px is a very large size, typically used for hero headings, containers and big layout dimensions.
96px at different root font sizes
| Root font size | Input | Result |
|---|---|---|
| 10px | 96px | 9.6rem |
| 12px | 96px | 8rem |
| 14px | 96px | 6.8571rem |
| 15px | 96px | 6.4rem |
| 16px | 96px | 6rem |
| 18px | 96px | 5.3333rem |
| 20px | 96px | 4.8rem |
| 22px | 96px | 4.3636rem |
| 24px | 96px | 4rem |
CSS examples
font-size: 6rem; /* 96px */
padding: 6rem;
margin-bottom: 6rem;
width: 6rem;The same values in pixels, if you need a fixed size:
font-size: 96px;
padding: 96px;Tailwind CSS equivalent
The default spacing scale has a step for 6rem: use classes like p-24, m-24, gap-24, w-24 and h-24. As a font size, 6rem is the default text-8xl class.
Nearby values
Frequently Asked Questions
96px equals 6rem when the root font size is the browser default of 16px. The calculation is 96 ÷ 16 = 6.
6rem equals 96px at a 16px root font size (6 × 16 = 96).
Yes. If the root font size is 18px, 96px equals 5.3333rem, and at 20px it equals 4.8rem. The pixel value itself never changes, only the rem equivalent. Use the base font size field above to try any value.
Prefer rem for font sizes, spacing and layout so they respect the user's browser font settings and scale for accessibility. Use px for details that should never scale, such as 1px borders or fixed icon sizes.
