At the default root font size of 16px, 347px is exactly 21.6875rem.
Calculation based on a root font-size of 16 pixels.
How to convert 347px to rem
To convert pixels to rem, divide the pixel value by the root font size: rem = px ÷ 16. For 347px that is 347 ÷ 16 = 21.6875rem.
347px is a very large size, typically used for hero headings, containers and big layout dimensions.
347px at different root font sizes
| Root font size | Input | Result |
|---|---|---|
| 10px | 347px | 34.7rem |
| 12px | 347px | 28.9167rem |
| 14px | 347px | 24.7857rem |
| 15px | 347px | 23.1333rem |
| 16px | 347px | 21.6875rem |
| 18px | 347px | 19.2778rem |
| 20px | 347px | 17.35rem |
| 22px | 347px | 15.7727rem |
| 24px | 347px | 14.4583rem |
CSS examples
font-size: 21.6875rem; /* 347px */
padding: 21.6875rem;
margin-bottom: 21.6875rem;
width: 21.6875rem;The same values in pixels, if you need a fixed size:
font-size: 347px;
padding: 347px;Tailwind CSS equivalent
21.6875rem is not part of the default Tailwind scale, but you can use an arbitrary value such as p-[21.6875rem] or text-[21.6875rem].
Nearby values
Frequently Asked Questions
347px equals 21.6875rem when the root font size is the browser default of 16px. The calculation is 347 ÷ 16 = 21.6875.
21.6875rem equals 347px at a 16px root font size (21.6875 × 16 = 347).
Yes. If the root font size is 18px, 347px equals 19.2778rem, and at 20px it equals 17.35rem. 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.
