REM → EM Converter
em.
font-size, em is relative to the parent font-size. For other properties, it’s relative to the element’s own font-size.
font-size conversion.
Use Element for other properties (em relative to element).
——em to font-size.
REM to EM Converter
- REM (Root EM): Always relative to the root <html> font size. By default, most browsers set it to 16px.
- Example: 1rem = 16px if the root font size is 16px.
- Example: 1rem = 16px if the root font size is 16px.
- EM: Relative to the parent element’s font size, which makes it flexible but sometimes unpredictable if multiple nested elements scale differently.
- Example: If a parent is 20px, then 1em = 20px.
Why Use a REM to EM Converter?
Converting between REM and EM can be tricky since one is root-based and the other is parent-based. A converter helps you:
- Understand the relationship between global and local scaling.
- Build responsive typography systems.
- Avoid inconsistencies caused by nested em values.
- Save time compared to manual calculations.
How to Use the Converter
- Enter your REM value.
- Input the root font size (default 16px).
- Input the parent element’s font size (default often 16px but can vary).
- The calculator shows the equivalent EM value.
Example:
- Root font size = 16px
- Parent font size = 20px
- 1rem = 16px → 16px ÷ 20px = 0.8em
CSS output:
p {
font-size: 1rem; /* equal to 0.8em if parent is 20px */
}
REM to EM Conversion Chart
(assuming root = 16px, parent = 16px)
| REM | EM Equivalent | Pixel Value |
| 0.75rem | 0.75em | 12px |
| 1rem | 1em | 16px |
| 1.25rem | 1.25em | 20px |
| 1.5rem | 1.5em | 24px |
| 2rem | 2em | 32px |
(If parent font size differs from root, EM values adjust accordingly.)
Best Practices for REM vs EM
- Use REM for global sizing (body text, base typography).
- Use EM for component-level scaling (buttons, inputs, spacing).
- Avoid deep nesting with EM — it can lead to compounding values.
- Combine with clamp() for fluid responsive typography.
FAQs
What is the main difference between rem and em?
- REM = relative to the root font size.
- EM = relative to the parent element’s font size.
Why is rem more predictable than em?
Because REM always references the root, while EM depends on the parent, which can vary in nested elements.
Can I use both rem and em in a project?
Yes. Use REM for base typography and EM for local adjustments.
What is 1rem in em?
If the parent and root font size are the same, then 1rem = 1em. If they differ, conversion depends on the ratio between root and parent.
Is em still useful if rem exists?
Yes — EM is powerful when you want scaling relative to the parent (like padding that grows with a component’s font size).