frontendhack-logo
0.0625rem = 1px

At the default root font size of 16px, 0.0625rem is exactly 1px.

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

How to convert 0.0625rem to px

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

1px is a very small size, typically used for borders, hairlines, icon gaps and fine detail. It is often used for hairline borders and dividers.

0.0625rem at different root font sizes

Root font sizeInputResult
10px0.0625rem0.625px
12px0.0625rem0.75px
14px0.0625rem0.875px
15px0.0625rem0.9375px
16px0.0625rem1px
18px0.0625rem1.125px
20px0.0625rem1.25px
22px0.0625rem1.375px
24px0.0625rem1.5px

CSS examples

font-size: 0.0625rem; /* 1px */
padding: 0.0625rem;
margin-bottom: 0.0625rem;
width: 0.0625rem;

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

font-size: 1px;
padding: 1px;

Tailwind CSS equivalent

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

Nearby values

REMPixels
0.0625rem1px
0.1rem1.6px
0.125rem2px
0.1875rem3px
0.2rem3.2px
0.25rem4px

Frequently Asked Questions

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

1px equals 0.0625rem at a 16px root font size (1 ÷ 16 = 0.0625).

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