Instantly convert Viewport Height to Percent and Percent to Viewport Height.
A simple and fast tool to convert viewport height values to percent 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.
Viewport Height
Percent
Canonical page shared by both directions: VH to % and % to VH.
Current conversion chart
A responsive visual curve based on the active direction and current base values.
Current conversion
2.5vh = 22.5%
Reverse conversion
22.5% = 2.5vh
Convert VH to pixels
Pixels = (VH / 100) × Viewport Height
Convert pixels to %
Result = (Pixels / Parent Length) × 100
Context
- Viewport height: 900px
- Parent length: 100px
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 percent using the target formula below.
| Viewport Height | Percent |
|---|---|
| 1vh | 9% |
| 2vh | 18% |
| 5vh | 45% |
| 10vh | 90% |
| 20vh | 180% |
| 25vh | 225% |
| 33.33vh | 299.97% |
| 50vh | 450% |
| 75vh | 675% |
| 100vh | 900% |
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.
Understanding Percent
Percent values scale relative to a parent length or container value, making them useful for flexible layouts and proportional sizing.
Why convert VH and %?
- 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.