CSS Unit Converter

PX to VW Converter

Instant, two-way conversion for fluid layouts. No button — just type.

px · 100vw = 1920px

CSS output

width: 2.5vw; /* 48px @ 1920px viewport */

Common px to vw conversions

Based on a viewport width of 1920px.

pxvw
8px0.416667vw
16px0.833333vw
24px1.25vw
32px1.666667vw
48px2.5vw
64px3.333333vw
96px5vw
120px6.25vw
160px8.333333vw
240px12.5vw
320px16.666667vw
480px25vw
640px33.333333vw
768px40vw
960px50vw
1280px66.666667vw

How it works

pxvw: vw = px / viewport width * 100. vwpx: px = vw / 100 * viewport width. On a 1920px-wide viewport, 48px = 2.5vw and 10vw = 192px. Change the viewport width above to match your design breakpoint.

FAQ

Divide the pixel value by the viewport width and multiply by 100: vw = px / viewport * 100. On a 1920px viewport, 48px = 2.5vw; on a 375px phone, the same 48px ≈ 12.8vw.

More converters