28px → REM

28px to REM - 1.75rem at 16px Base

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

Last reviewed:

CSS snippet

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

PX to REM formula

rem = px ÷ root font size

28px ÷ 16px = 1.75rem

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

Common use cases at 28px (1.75rem)

Category Tailwind / design use CSS property example
Font size Custom heading / large control font-size: 1.75rem;
Spacing - padding: 1.75rem;
Gap / margin - gap: 1.75rem;

Nearby pixel conversions

Also see 24px to rem and 30px to rem .

28px to REM FAQ

How do you convert 28px to rem?

Divide 28 by the root font size. At the default 16px base: 28 ÷ 16 = 1.75rem. Formula: rem = px ÷ root font size. Paste font-size: 1.75rem; into your CSS so typography scales when users change their browser default font size.

What is 28px in rem at 16px base?

At a 16px root font size, 28px equals exactly 1.75rem. This is the browser default unless your project or the user changes html { font-size }. If your root differs, scale with rem = 28 ÷ yourRootPx before shipping production styles.

Should I use 1.75rem or 28px in CSS?

Use 1.75rem for typography and spacing that should scale with the user's root font-size preference - important for accessibility. Reserve 28px for fixed values like 1px borders or bitmap image dimensions. Prefer rem for layout rhythm so zoom and OS font settings do not clip text.

How do I convert 1.75rem back to pixels?

Multiply 1.75rem by 16: 1.75 × 16 = 28px. Reverse formula: px = rem × root font size. Use that when a design tool exports rem tokens and you need pixel sizes for image assets, canvas drawing, or developer handoff docs.

Where is 28px commonly used in web design?

28px (1.75rem) maps to Custom heading / large control in typical design systems. For Tailwind spacing, see -. Check the use-case table on this page for CSS property examples covering font-size, padding, and gap so you can pick a consistent token across components and breakpoints.

Full converter

PX to REM Converter - any value, custom base

Cheat sheet

PX to REM cheat sheet - 12px through 64px