30px → REM
30px to REM - 1.875rem at 16px Base
At the default browser root size of 16px, 30px equals
1.875rem. Formula: rem = px ÷ 16.
Last reviewed:
CSS snippet
.example {
font-size: 1.875rem; /* 30px at 16px root */
padding: 1.875rem;
} PX to REM formula
rem = px ÷ root font size
30px ÷ 16px = 1.875rem Worked example: To convert 30px at a 16px root,
divide 30 by 16.
30 ÷ 16 = 1.875. Write font-size: 1.875rem;
instead of font-size: 30px; so text scales when users enlarge their browser default font size.
Common use cases at 30px (1.875rem)
| Category | Tailwind / design use | CSS property example |
|---|---|---|
| Font size | Custom heading size | font-size: 1.875rem; |
| Spacing | - | padding: 1.875rem; |
| Gap / margin | - | gap: 1.875rem; |
Nearby pixel conversions
Also see 28px to rem
and 32px to rem
.
30px to REM FAQ
How do you convert 30px to rem?
Divide 30 by the root font size. At the default 16px base: 30 ÷ 16 = 1.875rem. Formula: rem = px ÷ root font size. Paste font-size: 1.875rem; into your CSS so typography scales when users change their browser default font size.
What is 30px in rem at 16px base?
At a 16px root font size, 30px equals exactly 1.875rem. This is the browser default unless your project or the user changes html { font-size }. If your root differs, scale with rem = 30 ÷ yourRootPx before shipping production styles.
Should I use 1.875rem or 30px in CSS?
Use 1.875rem for typography and spacing that should scale with the user's root font-size preference - important for accessibility. Reserve 30px 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.875rem back to pixels?
Multiply 1.875rem by 16: 1.875 × 16 = 30px. 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 30px commonly used in web design?
30px (1.875rem) maps to Custom heading size 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