Instantly convert VW to VH and VH to VW
A simple and fast tool to convert viewport width (vw) units to viewport height (vh) units and vice versa for your web designs.
How to Convert VW to VH
Step 1: Determine the Viewport Dimensions
You need two values: the viewport width and the viewport height in pixels for your target screen size.
Step 2: Use the Conversion Formula
The formula is: `(VW Value * Viewport Width) / Viewport Height`.
Result in VH = (VW * Viewport Width) / Viewport Height
Step 3: Example Calculation
If you want to convert 10vw to `vh` for a 1920px by 1080px viewport, the calculation is:
(10 * 1920) / 1080 = 17.778
So, 10vw is equal to 17.778vh on a 1920×1080 screen.
Common VW to VH Reference
A quick reference table based on the viewport dimensions set above.
| VW | VH |
|---|---|
| 1vw | 1.7778vh |
| 5vw | 8.8889vh |
| 10vw | 17.7778vh |
| 25vw | 44.4444vh |
| 50vw | 88.8889vh |
| 75vw | 133.3333vh |
| 80vw | 142.2222vh |
| 90vw | 160vh |
| 100vw | 177.7778vh |
VW to VH Converter Information
Understanding VW Units
The `vw` unit stands for “viewport width”. It is a relative unit where 1vw is equal to 1% of the browser’s viewport width. This makes it incredibly powerful for creating fluid layouts and typography that scale smoothly as the user resizes their browser window.
Understanding VH Units
The `vh` unit stands for “viewport height”. It is a relative unit where 1vh is equal to 1% of the browser’s viewport height. This is particularly useful for creating elements that should take up a certain portion of the screen’s height, regardless of the device.
Why Convert VW to VH?
Converting `vw` to `vh` is useful for creating elements that maintain a consistent aspect ratio, regardless of the screen size. This is important for:
- Aspect Ratio Boxes: Creating responsive containers for videos or images that maintain their aspect ratio (e.g., 16:9) as the viewport changes.
- Geometric Shapes: Ensuring that shapes like circles or squares remain perfectly proportional on all screen sizes.
- Advanced Responsive Layouts: For complex layouts where an element’s height needs to be a specific proportion of its width, converting between `vw` and `vh` is essential.