frontendhack-logo
337px = 21.0625rem

At the default root font size of 16px, 337px is exactly 21.0625rem.

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

How to convert 337px to rem

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

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

337px at different root font sizes

Root font sizeInputResult
10px337px33.7rem
12px337px28.0833rem
14px337px24.0714rem
15px337px22.4667rem
16px337px21.0625rem
18px337px18.7222rem
20px337px16.85rem
22px337px15.3182rem
24px337px14.0417rem

CSS examples

font-size: 21.0625rem; /* 337px */
padding: 21.0625rem;
margin-bottom: 21.0625rem;
width: 21.0625rem;

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

font-size: 337px;
padding: 337px;

Tailwind CSS equivalent

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

Nearby values

PixelsREM
337px21.0625rem
2px0.125rem
3px0.1875rem
4px0.25rem
5px0.3125rem
6px0.375rem

Frequently Asked Questions

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

21.0625rem equals 337px at a 16px root font size (21.0625 × 16 = 337).

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