px
px
rem
0
vw
Calculation Method: (rem × rootFontSize ÷ viewportWidth) × 100 = vw
REM to Viewport Width Conversion Information
Viewport width (vw) is a unit relative to the width of the browser viewport, where 1vw is equal to 1% of the viewport width. By entering the REM value and the root element font size, you can calculate the corresponding vw value.
Common Conversion Values (Based on 1920px Width):
- 1rem = 5vw (Assuming root element font size is 16px)
- 2rem = 10vw (Assuming root element font size is 16px)
- 6rem = 30vw (Assuming root element font size is 16px)
Usage Instructions:
- Set the root element font size (default 16px)
- Note the current viewport width
- Enter the REM value
- Get the corresponding vw value
Usage Tips:
- Applicable to responsive layouts
- Changes with viewport width
- Accurate to three decimal places