10px → REM

10px to REM — 0.625rem at 16px Base

At the default browser root size of 16px, 10px equals 0.625rem. Formula: rem = px ÷ 16.

Last reviewed:

CSS snippet

.example {
  font-size: 0.625rem; /* 10px at 16px root */
  padding: 0.625rem;
}

PX to REM formula

rem = px ÷ root font size

10px ÷ 16px = 0.625rem

Worked example: To convert 10px at a 16px root, divide 10 by 16. 10 ÷ 16 = 0.625. Write font-size: 0.625rem; instead of font-size: 10px; so text scales when users enlarge their browser default font size.

Common use cases at 10px (0.625rem)

Category Tailwind / design use CSS property example
Font size Fine print, captions font-size: 0.625rem;
Spacing padding: 0.625rem;
Gap / margin gap: 0.625rem;

Nearby pixel conversions

Also see 8px to rem and 12px to rem .

10px to REM FAQ

How do you convert 10px to rem?

Divide 10 by the root font size. At the default 16px base: 10 ÷ 16 = 0.625rem. Formula: rem = px ÷ root font size.

What is 10px in rem at 16px base?

At a 16px root font size, 10px equals exactly 0.625rem. This is the browser default unless your project or the user changes html { font-size }.

Should I use 0.625rem or 10px in CSS?

Use 0.625rem for typography and spacing that should scale with the user's root font-size preference — important for accessibility. Reserve 10px for fixed values like 1px borders or bitmap image dimensions.

How do I convert 0.625rem back to pixels?

Multiply 0.625rem by 16: 0.625 × 16 = 10px. Reverse formula: px = rem × root font size.

Where is 10px commonly used in web design?

10px (0.625rem) maps to Fine print, captions in typical design systems. For Tailwind spacing, see —. Check the use-case table on this page for CSS property examples.

Full converter

PX to REM Converter — any value, custom base

Cheat sheet

PX to REM cheat sheet — 12px through 64px