px to vh

A converter that calculates the vh from a px for a given breakpoint to make the measurement responsive

Pixels
Viewport Height

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 "VH to PX".

Q

Focus the "Pixels" input.

W

Focus the "Viewport Height" input.

FAQ

How to convert PX to VH?

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

What is the PX to VH formula?

px / 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.

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

pxvh
10px0.926vh
20px1.852vh
30px2.778vh
40px3.704vh
50px4.63vh
60px5.556vh
70px6.481vh
80px7.407vh
90px8.333vh
100px9.259vh
110px10.185vh
120px11.111vh
130px12.037vh
140px12.963vh
150px13.889vh
160px14.815vh
170px15.741vh
180px16.667vh
190px17.593vh
200px18.519vh
210px19.444vh
220px20.37vh
230px21.296vh
240px22.222vh
250px23.148vh

More PX & VH Conversions