Instantly convert EM to Viewport Height and Viewport Height to EM.
A simple and fast tool to convert em values to viewport height units and back again for responsive web design. This canonical page covers both directions to avoid duplicate SEO pages for identical content.
Bases
Configure only the reference values required for this conversion pair.
Conversion
Edit either side, copy any result, or swap the displayed direction.
EM
Viewport Height
Canonical page shared by both directions: EM to VH and VH to EM.
Current conversion chart
A responsive visual curve based on the active direction and current base values.
Current conversion
1.5em = 2.6667vh
Reverse conversion
2.6667vh = 1.5em
Convert EM to pixels
Pixels = EM × Parent Font Size
Convert pixels to VH
Result = (Pixels / Viewport Height) × 100
Context
- Parent font-size: 16px
- Viewport height: 900px
Step 1: Define the relevant context
Confirm the values that influence the conversion. Relative units like REM, EM, VW, VH, and % depend on the root font-size, parent font-size, parent length, or viewport dimensions.
Step 2: Convert the source value into pixels
Normalize the source unit into pixels first. This gives you a consistent base for accurate conversion across all CSS unit types.
Step 3: Convert pixels into the target unit
Once the intermediate pixel value is known, convert it into viewport height using the target formula below.
| EM | Viewport Height |
|---|---|
| 0.25em | 0.4444vh |
| 0.5em | 0.8889vh |
| 0.75em | 1.3333vh |
| 1em | 1.7778vh |
| 1.25em | 2.2222vh |
| 1.5em | 2.6667vh |
| 2em | 3.5556vh |
| 3em | 5.3333vh |
| 4em | 7.1111vh |
Understanding EM
The em unit is relative to the current parent font-size, which makes it flexible for nested interface patterns and component-local scaling.
Understanding Viewport Height
VH units scale with the height of the viewport, often used for full-screen sections, immersive layouts, and vertical rhythm tied to screen height.
Why convert EM and VH?
- System consistency: Work across design tokens, components, and documentation using a predictable translation between units.
- Responsive control: Compare fixed, relative, and contextual units without guessing how they behave in production layouts.
- SEO-safe structure: This page serves both directions of the same conversion pair to avoid duplicate content and consolidate relevance in one canonical destination.