VH to PX Converter
Convert a vh value to pixels for a given viewport height.
Quick answer: enter your details below and click Convert to px — your result appears instantly, right here in your browser. Nothing you enter is uploaded or stored.
V
Developer
Enter your details below.
How to use
- Enter the vh value.
- Enter the viewport height in pixels.
- Press the button to see the pixel value.
About this tool
One vh is one percent of the height of the viewport, the visible area of the browser window. This tool multiplies a vh value by the viewport height to give the equivalent pixels. Because the answer depends on the actual window height, the same vh value gives different pixels on a phone and on a desktop monitor. It uses the height you enter, so measure your viewport if you need an exact figure.
Frequently asked questions
What is 100 vh?
100 vh is the full height of the viewport, so on an 800 pixel tall window it equals 800 pixels.
Why does the same vh value look different on devices?
Because vh is relative to the viewport. A taller window makes each vh unit worth more pixels, so the result changes with the screen.