vw to rem
A converter that calculates the rem from a vw for given rem size and viewport width 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 "REM to VW".
Focus the "Viewport Width" input.
Focus the "VW Unit" input.
Focus the "REM Size" input.
FAQ
How to convert VW to REM?
To convert vw to rem, you should know total size of 1 REM, default is 16px, and size of viewport width Then, just apply formula: ((vw * viewport total width) / 100) / rem size For example, with 16px size of 1rem and 1920px of viewport width, 5vw will be converted to: ((5 * 1920) / 100) / 16 = 6rem
What is the VW to REM formula?
((vw * viewport total width) / 100) / rem size
What is rem unit?
REM is defined relative to the font size of the root element. The root element is matched by the :root pseudo-class or the html selector. 1 REM therefore takes on the value which is given to the font-size of the root element. This means that 1 REM keeps the same value throughout your whole CSS code.
What is vw unit? (Viewport Width)
Used in responsive design, Viewport Width (VW) is a unit relative to web page display area called viewport. 1vw corresponds to 1% of display. So, to make an element full width, you should use 100vw. You can also use decimal values. Please note that, depending on browsers, decimal precision can change.
VW to REM Conversion Table if viewport width size is 1920px and rem size is 16px
vw | rem |
---|---|
1vw | 1.2rem |
2vw | 2.4rem |
3vw | 3.6rem |
4vw | 4.8rem |
5vw | 6rem |
6vw | 7.2rem |
7vw | 8.4rem |
8vw | 9.6rem |
9vw | 10.8rem |
10vw | 12rem |
11vw | 13.2rem |
12vw | 14.4rem |
13vw | 15.6rem |
14vw | 16.8rem |
15vw | 18rem |
16vw | 19.2rem |
17vw | 20.4rem |
18vw | 21.6rem |
19vw | 22.8rem |
20vw | 24rem |
21vw | 25.2rem |
22vw | 26.4rem |
23vw | 27.6rem |
24vw | 28.8rem |
25vw | 30rem |