What are EM and Viewport Width?
EM is a relative unit based on the font size of the parent element. Viewport width (VW) is a percentage unit relative to the viewport width, where 1 VW equals 1% of the viewport width.
Usage Instructions
- Set the parent element's font size (default is 16px)
- Input the EM value to convert
- Click the "Convert" button or press Enter to get the result
- Use the "Copy" button to copy the conversion result
px
em
0
vw
Calculation formula: vw = (em × parent element font size) ÷ (viewport width) × 100
Common conversion examples
- 1em = 6.25vw (when the parent element's font size is 16px and the viewport width is 100px)
- 2em = 12.5vw
- 0.5em = 3.125vw
- 1.5em = 9.375vw