PX to VW converter

1vw is 1% of the viewport width, so px / viewport width * 100 = vw. At a 1440px screen, 16px = 1.111vw.

Convert any pixel value to viewport width units for fluid, responsive CSS, or go back from vw to px.

How to use the px to vw converter

  1. Enter the pixel value you want to convert, or switch to VW -> PX to go the other way.
  2. Set the viewport width, or pick a preset such as Mobile 375, Tablet 768, Laptop 1440 or Desktop 1920.
  3. Copy the generated CSS and paste it into your stylesheet.

1.111vw

16px / 1440px * 100 = 1.111vw

width: 1.111vw;

Pixels to viewport width

PixelsViewport width
1px0.069vw
2px0.139vw
4px0.278vw
8px0.556vw
10px0.694vw
12px0.833vw
14px0.972vw
16px1.111vw
18px1.25vw
20px1.389vw
24px1.667vw
32px2.222vw
40px2.778vw
48px3.333vw
64px4.444vw
80px5.556vw
100px6.944vw
120px8.333vw
160px11.111vw
200px13.889vw
320px22.222vw
375px26.042vw
768px53.333vw
1440px100vw

PX to VW conversion table (1440px viewport)

PixelsVW
1px0.069vw
2px0.139vw
4px0.278vw
8px0.556vw
10px0.694vw
12px0.833vw
14px0.972vw
16px1.111vw
18px1.25vw
20px1.389vw
24px1.667vw
32px2.222vw
40px2.778vw
48px3.333vw
64px4.444vw
80px5.556vw
100px6.944vw
120px8.333vw
160px11.111vw
200px13.889vw
320px22.222vw
375px26.042vw
768px53.333vw
1440px100vw

When to use vw (and when not to)

Use vw for fluid widths, full-bleed sections and type that should scale with the screen. For text, pair it with rem inside clamp() so the size has a floor and a ceiling, for example font-size: clamp(1rem, 2.5vw, 2rem).

Avoid vw for body text on its own: vw ignores the browser zoom and font-size setting, so visitors who enlarge text get no benefit. Keep body copy in rem and reserve vw for the fluid middle of a clamp() range.

Related typography tools

Pair the converter with rem sizing, fluid type and responsive breakpoints.

Frequently asked questions

How do I convert px to vw?

Divide the pixel value by the viewport width and multiply by 100: vw = px / viewport * 100. At a 1440px viewport, 16px = 16 / 1440 * 100 = 1.111vw.

What is 100vw?

100vw is the full width of the viewport, so 1vw is 1% of it. A 50vw element is half the screen wide at every size, which is why vw is used for full-bleed sections and fluid type.

Why does 100vw cause horizontal scroll?

100vw includes the vertical scrollbar width in most browsers, so a 100vw element is slightly wider than the visible content area and pushes the page sideways. Use width: 100% instead, or account for the scrollbar with calc(100vw - (100vw - 100%)).

Should I use vw for font size?

Not on its own. vw text ignores the visitor's browser zoom and font-size setting, which hurts accessibility. Pair it with rem inside clamp(), for example font-size: clamp(1rem, 2.5vw, 2rem), so the text still scales with user preferences.

More typography & unit tools

Color tools

Image tools

CSS generators

Image & SVG tools

More free tools

All free tools