frontendhack-logo
17px = 1.0625rem

At the default root font size of 16px, 17px is exactly 1.0625rem.

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

How to convert 17px to rem

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

17px is a medium size, common for body text, subheadings, buttons and standard spacing.

17px at different root font sizes

Root font sizeInputResult
10px17px1.7rem
12px17px1.4167rem
14px17px1.2143rem
15px17px1.1333rem
16px17px1.0625rem
18px17px0.9444rem
20px17px0.85rem
22px17px0.7727rem
24px17px0.7083rem

CSS examples

font-size: 1.0625rem; /* 17px */
padding: 1.0625rem;
margin-bottom: 1.0625rem;
width: 1.0625rem;

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

font-size: 17px;
padding: 17px;

Tailwind CSS equivalent

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

Nearby values

PixelsREM
17px1.0625rem
2px0.125rem
3px0.1875rem
4px0.25rem
5px0.3125rem
6px0.375rem

Frequently Asked Questions

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

1.0625rem equals 17px at a 16px root font size (1.0625 × 16 = 17).

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