100 vw equals the total width of the viewport in pixels. So, if your screen width is 1920px, then 100 vw is 1920px.
Table of Contents
The unit “vw” means viewport width, which is a percentage of the visible width of the browser window. To convert 100 vw to pixels, you multiply 100 by the current viewport width in pixels and then divide by 100, which simply returns the viewport width itself.
Conversion Tool
Result in px:
Conversion Formula
The formula to convert vw to px is:
px = (vw × viewport width in pixels) / 100
This formula works because 1 vw equals 1% of the viewport width. Multiplying the vw value by the viewport width then dividing by 100 gives the pixel equivalent.
Example:
- Say viewport width is 1366px.
- To convert 50 vw to px: (50 × 1366) ÷ 100 = 683 px.
- So, 50 vw equals 683 pixels on that screen size.
Conversion Example
- Convert 25 vw to px on a 1440px wide screen:
- Multiply 25 by 1440: 25 × 1440 = 36000
- Divide by 100: 36000 ÷ 100 = 360 px
- Result: 25 vw = 360 px
- Convert 60 vw to px on a 1024px wide screen:
- 60 × 1024 = 61440
- 61440 ÷ 100 = 614.4 px
- Result: 60 vw = 614.4 px
- Convert 80 vw to px on a 1920px wide screen:
- 80 × 1920 = 153600
- 153600 ÷ 100 = 1536 px
- Result: 80 vw = 1536 px
- Convert 90 vw to px on a 1366px wide screen:
- 90 × 1366 = 122940
- 122940 ÷ 100 = 1229.4 px
- Result: 90 vw = 1229.4 px
- Convert 110 vw to px on a 1440px wide screen:
- 110 × 1440 = 158400
- 158400 ÷ 100 = 1584 px
- Result: 110 vw = 1584 px
Conversion Chart
The chart below shows a range of vw values converted to pixel values assuming a viewport width of 1366 pixels. To read the chart, find your vw value in the first column and see its pixel equivalent in the second column.
| vw | px (at 1366px viewport) |
|---|---|
| 75.0 | 1024.5 |
| 80.0 | 1092.8 |
| 85.0 | 1161.1 |
| 90.0 | 1229.4 |
| 95.0 | 1297.7 |
| 100.0 | 1366.0 |
| 105.0 | 1434.3 |
| 110.0 | 1502.6 |
| 115.0 | 1570.9 |
| 120.0 | 1639.2 |
| 125.0 | 1707.5 |
Related Conversion Questions
- How many pixels equal 100 vw on a 1366px wide screen?
- What is the pixel value of 100 vw if my browser width is 1920px?
- Does 100 vw always equal the full screen width in pixels?
- How to calculate px from 100 vw when viewport size changes?
- What happens to px value of 100 vw on mobile devices?
- Is 100 vw in CSS same as 100% width in pixels?
- Can 100 vw be larger than viewport width in pixels?
Conversion Definitions
vw: The unit “vw” stands for viewport width unit, where 1 vw equals 1 percent of the width of the visible browser window. It allows responsive sizing relative to the window width, resizing elements automatically as the viewport changes size.
px: “px” means pixel, the smallest unit of measurement on a digital screen. Pixels are fixed-size dots that form the display, used in web design to specify exact sizes for elements, regardless of screen size or resolution.
Conversion FAQs
Does the value of 100 vw change if I resize my browser window?
Yes, 100 vw always represents the full width of the viewport, so if you resize your browser, the pixel value corresponding to 100 vw changes accordingly. The unit is dynamic, adjusting its pixel value in real-time with viewport width changes.
Can 100 vw be larger than the screen width?
Normally, 100 vw equals the viewport width, but some browsers add scrollbar widths or other UI elements, causing 100 vw to slightly exceed visible content area. This can cause horizontal scrollbars or overflow if content width is set to 100 vw plus padding or margins.
Why does 100 vw sometimes cause horizontal scrolling?
Using 100 vw for an element’s width can cause overflow if the page has vertical scrollbars, because scrollbar width may not be excluded from vw calculations. This results in an element wider than the visible area, triggering horizontal scrolling.
How accurate is the conversion from vw to px on different devices?
The conversion depends on the actual viewport width reported by the browser, which can vary by device, browser, zoom level, and display settings. While the formula is accurate, pixel values can differ between devices even for the same vw value.
Is 100 vw equivalent to 100% width in CSS?
Not exactly. 100% width refers to the width of the element’s containing block, which might not be the viewport. But 100 vw strictly refers to the viewport width, so if the container is smaller than viewport, 100% width will be smaller than 100 vw.