At the default root font size of 16px, 34rem is exactly 544px.
Calculation based on a root font-size of 16 pixels.
How to convert 34rem to px
To convert rem to pixels, multiply the rem value by the root font size: px = rem × 16. For 34rem that is 34 × 16 = 544px.
544px is a very large size, typically used for hero headings, containers and big layout dimensions.
34rem at different root font sizes
| Root font size | Input | Result |
|---|---|---|
| 10px | 34rem | 340px |
| 12px | 34rem | 408px |
| 14px | 34rem | 476px |
| 15px | 34rem | 510px |
| 16px | 34rem | 544px |
| 18px | 34rem | 612px |
| 20px | 34rem | 680px |
| 22px | 34rem | 748px |
| 24px | 34rem | 816px |
CSS examples
font-size: 34rem; /* 544px */
padding: 34rem;
margin-bottom: 34rem;
width: 34rem;The same values in pixels, if you need a fixed size:
font-size: 544px;
padding: 544px;Tailwind CSS equivalent
34rem is not part of the default Tailwind scale, but you can use an arbitrary value such as p-[34rem] or text-[34rem].
Nearby values
Frequently Asked Questions
34rem equals 544px when the root font size is the browser default of 16px. The calculation is 34 × 16 = 544.
544px equals 34rem at a 16px root font size (544 ÷ 16 = 34).
Yes. rem is relative to the root font size, so 34rem becomes 612px at an 18px root and 680px at a 20px root. 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.
