PX to VH Converter
Convert pixels to vh. 1vh equals 1% of the viewport height, so the result depends on the viewport size you set.
1vh equals 1% of this height.
Result
1.4815vh
Formula
vh = (px ÷ viewport height) × 100Conversion table
px → vh at viewport height (px) = 1080.
About the PX to VH conversion
The vh unit is relative to the viewport: 1vh equals 1% of the browser window’s height. It is used to size elements as a proportion of the screen — full-height hero sections, for example, use height: 100vh.
To convert px to vh you divide the pixel value by the viewport height and multiply by 100. On a 1080px-tall viewport, 108px is 10vh and 540px is 50vh. Change the viewport height field to match the device you are targeting.
Because vh depends on the viewport, the same pixel value maps to different vh values across devices — this converter makes that relationship explicit for any viewport you choose.