At the default root font size of 16px, 0.625rem is exactly 10px.
Calculation based on a root font-size of 16 pixels.
How to convert 0.625rem to px
To convert rem to pixels, multiply the rem value by the root font size: px = rem × 16. For 0.625rem that is 0.625 × 16 = 10px.
10px is a small size, common for captions, labels, small text and tight spacing. It is often used for very small captions, often too small for comfortable body text.
0.625rem at different root font sizes
| Root font size | Input | Result |
|---|---|---|
| 10px | 0.625rem | 6.25px |
| 12px | 0.625rem | 7.5px |
| 14px | 0.625rem | 8.75px |
| 15px | 0.625rem | 9.375px |
| 16px | 0.625rem | 10px |
| 18px | 0.625rem | 11.25px |
| 20px | 0.625rem | 12.5px |
| 22px | 0.625rem | 13.75px |
| 24px | 0.625rem | 15px |
CSS examples
font-size: 0.625rem; /* 10px */
padding: 0.625rem;
margin-bottom: 0.625rem;
width: 0.625rem;The same values in pixels, if you need a fixed size:
font-size: 10px;
padding: 10px;Tailwind CSS equivalent
The default spacing scale has a step for 0.625rem: use classes like p-2.5, m-2.5, gap-2.5, w-2.5 and h-2.5.
Nearby values
Frequently Asked Questions
0.625rem equals 10px when the root font size is the browser default of 16px. The calculation is 0.625 × 16 = 10.
10px equals 0.625rem at a 16px root font size (10 ÷ 16 = 0.625).
Yes. rem is relative to the root font size, so 0.625rem becomes 11.25px at an 18px root and 12.5px 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.
