frontendhack-logo
32rem = 512px

At the default root font size of 16px, 32rem is exactly 512px.

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

How to convert 32rem to px

To convert rem to pixels, multiply the rem value by the root font size: px = rem × 16. For 32rem that is 32 × 16 = 512px.

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

32rem at different root font sizes

Root font sizeInputResult
10px32rem320px
12px32rem384px
14px32rem448px
15px32rem480px
16px32rem512px
18px32rem576px
20px32rem640px
22px32rem704px
24px32rem768px

CSS examples

font-size: 32rem; /* 512px */
padding: 32rem;
margin-bottom: 32rem;
width: 32rem;

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

font-size: 512px;
padding: 512px;

Tailwind CSS equivalent

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

Nearby values

REMPixels
32rem512px
0.1rem1.6px
0.125rem2px
0.1875rem3px
0.2rem3.2px
0.25rem4px

Frequently Asked Questions

32rem equals 512px when the root font size is the browser default of 16px. The calculation is 32 × 16 = 512.

512px equals 32rem at a 16px root font size (512 ÷ 16 = 32).

Yes. rem is relative to the root font size, so 32rem becomes 576px at an 18px root and 640px 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.