frontendhack-logo
9px = 0.5625rem

At the default root font size of 16px, 9px is exactly 0.5625rem.

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

How to convert 9px to rem

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

9px is a small size, common for captions, labels, small text and tight spacing.

9px at different root font sizes

Root font sizeInputResult
10px9px0.9rem
12px9px0.75rem
14px9px0.6429rem
15px9px0.6rem
16px9px0.5625rem
18px9px0.5rem
20px9px0.45rem
22px9px0.4091rem
24px9px0.375rem

CSS examples

font-size: 0.5625rem; /* 9px */
padding: 0.5625rem;
margin-bottom: 0.5625rem;
width: 0.5625rem;

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

font-size: 9px;
padding: 9px;

Tailwind CSS equivalent

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

Nearby values

PixelsREM
9px0.5625rem
2px0.125rem
3px0.1875rem
4px0.25rem
5px0.3125rem
6px0.375rem

Frequently Asked Questions

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

0.5625rem equals 9px at a 16px root font size (0.5625 × 16 = 9).

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