frontendhack-logo
346px = 21.625rem

At the default root font size of 16px, 346px is exactly 21.625rem.

Calculation based on a root font-size of 16 pixels.

How to convert 346px to rem

To convert pixels to rem, divide the pixel value by the root font size: rem = px ÷ 16. For 346px that is 346 ÷ 16 = 21.625rem.

346px is a very large size, typically used for hero headings, containers and big layout dimensions.

346px at different root font sizes

Root font sizeInputResult
10px346px34.6rem
12px346px28.8333rem
14px346px24.7143rem
15px346px23.0667rem
16px346px21.625rem
18px346px19.2222rem
20px346px17.3rem
22px346px15.7273rem
24px346px14.4167rem

CSS examples

font-size: 21.625rem; /* 346px */
padding: 21.625rem;
margin-bottom: 21.625rem;
width: 21.625rem;

The same values in pixels, if you need a fixed size:

font-size: 346px;
padding: 346px;

Tailwind CSS equivalent

21.625rem is not part of the default Tailwind scale, but you can use an arbitrary value such as p-[21.625rem] or text-[21.625rem].

Nearby values

PixelsREM
346px21.625rem
2px0.125rem
3px0.1875rem
4px0.25rem
5px0.3125rem
6px0.375rem

Frequently Asked Questions

346px equals 21.625rem when the root font size is the browser default of 16px. The calculation is 346 ÷ 16 = 21.625.

21.625rem equals 346px at a 16px root font size (21.625 × 16 = 346).

Yes. If the root font size is 18px, 346px equals 19.2222rem, and at 20px it equals 17.3rem. 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.