Skip to content
Menu

Pixels to VW

Pixels (px) to viewport width units (vw) for any viewport width.

Result3.33333vw

Viewport width (px)

Precision (significant figures)

Formula

vw = px × 100 ÷ viewport width

1 px = 0.0694444 vw in a 1440 px wide viewport

vw = px × 100 ÷ viewport width. One vw is 1% of the browser window's width, so the answer depends on the screen you design for: 48 px is 3.33 vw on a 1440 px desktop but 12.8 vw on a 375 px phone.

Formula

vw = px × 100 ÷ viewport width

Worked example

  1. Start with 48 px.
  2. Multiply by 100: 48 × 100 = 4,800 vw.
  3. Divide by the viewport width (1,440 px): 4,800 ÷ 1,440 = 3.33333 vw.

Px to vw chart

Values in viewport width units for common viewport widths: phone, tablet, laptop and desktop.

Pixels (px)37576814401920
10.2666670.1302080.06944440.0520833
102.666671.302080.6944440.520833
164.266672.083331.111110.833333
246.43.1251.666671.25
328.533334.166672.222221.66667
4812.86.253.333332.5
6417.06678.333334.444443.33333
10026.666713.02086.944445.20833
20053.333326.041713.888910.4167
32085.333341.666722.222216.6667
37510048.828126.041719.5312
500133.33365.104234.722226.0417
768204.810053.333340
1,024273.067133.33371.111153.3333
1,280341.333166.66788.888966.6667
1,440384187.510075

When you need this conversion

Turning a fixed design into a fluid one. A hero headline that is 72 px on a 1440 px mockup should shrink smoothly on smaller screens; expressing it in vw (5vw) makes it scale with the window. Designers also use vw to size full-bleed images, gaps and grids that should keep their proportions.

Pick the right viewport width

Convert against the width your design was drawn at. Common artboards are 375 px (phone), 768 px (tablet), 1440 px (laptop and desktop) and 1920 px (large desktop). The same 48 px element is:

  • 12.8vw at 375 px
  • 6.25vw at 768 px
  • 3.33vw at 1440 px

Fluid type done right

Viewport-only font sizes break zoom: pressing Ctrl + doesn’t enlarge them. Accessibility guidelines expect text to scale to 200%, so mix vw with rem and cap it: font-size: clamp(1.25rem, 0.75rem + 2vw, 3rem);. The vw part gives the fluid growth; the rem parts keep zoom working and set sensible limits.

Common mistakes

Using vw for body text. It becomes tiny on phones and huge on wide monitors.

Forgetting the scrollbar. width: 100vw includes the scrollbar on Windows, so it can overflow by 15–17 px. Use width: 100% for full-width blocks.

Going the other way? Use vw to pixels.

Questions

What is 1 vw?

1% of the viewport (browser window) width. On a 1440 px wide window, 1vw is 14.4 px.

How do I convert px to vw?

Divide the pixel value by the viewport width and multiply by 100. For 48 px on a 1440 px design: 48 × 100 ÷ 1440 = 3.33vw.

Should I use vw for font sizes?

Not on its own. Pure vw text doesn't respond to browser zoom the way users expect. Combine it with rem, for example font-size: clamp(1rem, 0.5rem + 2vw, 2rem).

Does vw include the scrollbar?

Yes. 100vw is the full window width including a classic scrollbar, which can cause a small horizontal overflow on desktop.

Sources

Last reviewed 2026-09-24. How we check values · Report a problem with this page

Further reading

  • px, rem and em in CSS: when to use each

    Three length units, three different reference points. What each one is measured against, how they behave when a reader changes their font size, and a simple rule for choosing.