em to vh
A converter that calculates the vh from an em for given em size and viewport height to make the measurement responsive
Hot Keys
Calculate and copy the result of calculation.
Calculate the result.
Copy the result of calculation.
Reverse the converter to "VH to EM".
Focus the "EM" input.
Focus the "EM Size" input.
Focus the "Viewport Height" input.
FAQ
How to convert EM to VH?
To convert em to vh, you should know total size of 1 EM, default is 16px, and size of viewport height Then, just apply formula: ((em * em size) / vh) * 100 For example, with 16px size of 1em and 1000px of viewport height, 1em will be converted to: ((1 * 16) / 1000) = 1.6vh
What is the EM to VH formula?
((em * em size) / vh) * 100
What is em unit?
EM is defined relative to the font size of the parent element. 1 EM therefore takes on the value which is given to the font-size of the parent element.
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.
EM to VH Conversion Table if em size is 16px and viewport height size is 1080px
em | vh |
---|---|
1em | 1.481vh |
2em | 2.963vh |
3em | 4.444vh |
4em | 5.926vh |
5em | 7.407vh |
6em | 8.889vh |
7em | 10.37vh |
8em | 11.852vh |
9em | 13.333vh |
10em | 14.815vh |
11em | 16.296vh |
12em | 17.778vh |
13em | 19.259vh |
14em | 20.741vh |
15em | 22.222vh |
16em | 23.704vh |
17em | 25.185vh |
18em | 26.667vh |
19em | 28.148vh |
20em | 29.63vh |
21em | 31.111vh |
22em | 32.593vh |
23em | 34.074vh |
24em | 35.556vh |
25em | 37.037vh |