- ◐
- △
- ◒
- ◇
- ◓
- ⬡
- ◔
- ◍
- ✶
- ◩
- ◧
- ✴︎
- ◌
- ⬢
- ✷
- ◭
Loading Frontend Tools...
Synchronizing • Aligning Grid • Establishing Uplink
Synchronizing • Aligning Grid • Establishing Uplink
Synchronizing • Aligning Grid • Establishing Uplink
Convert pixels to EM units for component-relative responsive typography.
Convert a valueThe pixel value to convert to em
Parent element font size for em calculation
The em value equivalent
Pixels
—px
Enter a value to convert
EM
—em
Enter a value to convert
Component-Relative Sizing: Use em for properties that should scale with the element's font size - perfect for button padding and margins.
button { padding: 0.5em 1em; } /* Scales with button text size */Typography Hierarchy: Em creates proportional relationships within text elements - great for line-height and letter-spacing.
h2 { font-size: 1.5em; line-height: 1.2em; }Nested Scaling: Be aware that em values compound when nested - child elements multiply their em value by their parent's.
1.2em inside 1.2em = 1.44em effective sizeWhen to Use Em vs Rem: Use em for component-internal scaling, rem for consistent sizing across the entire page.
padding: 1em; /* scales with component */ margin: 1rem; /* consistent */