VH to VW Converter

Convert VH units to Viewport Width (VW).

28.13vw
Common Ratios:

About VH to VW Converter

The VH to VW converter transforms viewport height units (vh) into viewport width units (vw). Both are relative CSS units, but vh is based on viewport height while vw is based on viewport width. This conversion helps maintain aspect ratios and create proportional designs across different screen sizes and orientations.

Formula

VW = (vh × Viewport Height) / Viewport Width

Examples

50vh (1080px h, 1920px w) = 28.125vw
100vh (1080px h, 1920px w) = 56.25vw

Reference

  • VH: 1vh = 1% of viewport height
  • VW: 1vw = 1% of viewport width
  • Aspect ratio dependent: Conversion varies with screen proportions
  • Useful for aspect-ratio adaptation

Frequency Asked Questions

What is the difference between vh and vw?

VH measures relative to viewport height (1vh = 1% of height), while vw measures relative to viewport width (1vw = 1% of width). Both are responsive CSS units.

How do I convert vh to vw?

Multiply vh by the viewport height in pixels, then divide by the viewport width in pixels. The result depends on your screen's aspect ratio.

Why would I convert between vh and vw?

Converting between vh and vw helps maintain consistent proportions across different orientations and aspect ratios, useful for responsive square or circular elements.

Do vh and vw values change on mobile?

Yes, both vh and vw recalculate when the viewport size changes, such as rotating a device or resizing a browser window.