vh to percentage

A converter that calculates the percentage from a vh for given viewport height and base size to make the measurement responsive

Viewport Height
VH Unit
Base Size

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

Q

Focus the "Viewport Height" input.

W

Focus the "VH Unit" input.

E

Focus the "Base Size" input.

FAQ

How to convert VH to Percentage?

To convert vh to percentage, you should know total size of base and size of viewport height Then, just apply formula: ((vh * viewport total height) / 100 / base) * 100 For example, with 1000px of base and 1080px of viewport height, 5vh will be converted to: ((5 * 1080) / 100 / 1000) * 100 = 5.4%

What is the VH to Percentage formula?

((vh * viewport total height) / 100 / base) * 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 % unit? (Percentage)

Percentage is a number or ratio expressed as a fraction of 100. It is often denoted using the percent sign (%). A percentage is a dimensionless number, primarily used for expressing proportions, but percent is nonetheless a unit of measurement in its orthography and usage. In CSS, it is often used to define a size as relative to an element's parent element. For example, if parent element's size is 1000px, then 1% will be equal to 10px, 1% = 10px.

VH to Percentage Conversion Table if viewport height size is 1080px and base size is 1000px

vhpercentage
1vh1.08%
2vh2.16%
3vh3.24%
4vh4.32%
5vh5.4%
6vh6.48%
7vh7.56%
8vh8.64%
9vh9.72%
10vh10.8%
11vh11.88%
12vh12.96%
13vh14.04%
14vh15.12%
15vh16.2%
16vh17.28%
17vh18.36%
18vh19.44%
19vh20.52%
20vh21.6%
21vh22.68%
22vh23.76%
23vh24.84%
24vh25.92%
25vh27%

More VH & Percentage Conversions