vh to px

A converter that calculates the px from a vh for a given breakpoint to measure the pixels

Viewport Height
VH Unit

Hot Keys

C

Calculate and copy the result of calculation.

V

Calculate the result.

B

Copy the result of calculation.

R

Reverse the converter to "PX to VH".

Q

Focus the "Viewport Height" input.

W

Focus the "VH Unit" input.

FAQ

How to convert VH to PX?

To convert vh to px, you should know total viewport height for example 1000px Then, just apply formula: vh * viewport total height / 100 For example, with a viewport of 1000px, 20vh will be converted to: 20 * 1000 / 100 = 200px

What is the VH to PX formula?

vh * viewport total height / 100

What is vh unit? (Viewport Height)

Used in responsive design, Viewport Height (VH) is a unit relative to web page display area called viewport. 1vh corresponds to 1% of display. So, to make an element full height, you should use 100vh. You can also use decimal values. Please note that, depending on browsers, decimal precision can change.

What is px unit? (Pixels)

Pixel unit is the theorical smallest dot displayed on a computer screen. Nowadays, pixel unit can differ between physical resolution and logical resolution. This difference is called device pixel ratio or DPR: Logical resolution = physical resolution / device pixel ratio. So, a screen with 1024x768 physical resolution with a DPR of 2 will have a 512x384 logical resolution.

VH to PX Conversion Table if viewport height size is 1080px

vhpx
1vh10.8px
2vh21.6px
3vh32.4px
4vh43.2px
5vh54px
6vh64.8px
7vh75.6px
8vh86.4px
9vh97.2px
10vh108px
11vh118.8px
12vh129.6px
13vh140.4px
14vh151.2px
15vh162px
16vh172.8px
17vh183.6px
18vh194.4px
19vh205.2px
20vh216px
21vh226.8px
22vh237.6px
23vh248.4px
24vh259.2px
25vh270px

More VH & PX Conversions