PX to VW converter
Convert pixels to viewport width units for any screen size. Set the viewport width of your design, then type a value in px or vw.
48px = 3.3333vw
PX to VW formula
vw = px ÷ viewport width × 100. One vw is 1% of the browser viewport’s width, so the result depends on which screen width you design for. A 48px heading in a 1440px wide design is 3.333vw; on a 1920px screen that same 3.333vw renders at 64px.
PX to VW table
| Pixels | @ 375px | @ 768px | @ 1440px | @ 1920px |
|---|---|---|---|---|
| 8px | 2.133vw | 1.042vw | 0.556vw | 0.417vw |
| 12px | 3.2vw | 1.563vw | 0.833vw | 0.625vw |
| 16px | 4.267vw | 2.083vw | 1.111vw | 0.833vw |
| 24px | 6.4vw | 3.125vw | 1.667vw | 1.25vw |
| 32px | 8.533vw | 4.167vw | 2.222vw | 1.667vw |
| 48px | 12.8vw | 6.25vw | 3.333vw | 2.5vw |
| 64px | 17.067vw | 8.333vw | 4.444vw | 3.333vw |
| 96px | 25.6vw | 12.5vw | 6.667vw | 5vw |
| 128px | 34.133vw | 16.667vw | 8.889vw | 6.667vw |
Fluid sizes with clamp()
vw is most useful inside clamp(min, preferred, max), which lets a size grow with the screen between two limits. For a heading that is 32px on phones and 64px on large screens:
font-size: clamp(2rem, 1.25rem + 3.2vw, 4rem);
The rem part keeps the text responsive to the user’s font size settings, and the vw part does the scaling. Convert the min and max sizes with the PX to REM converter, then preview the result at phone, tablet and desktop widths with Traceo’s responsive testing.
Check these values on any live website
Traceo is a free Chrome extension that shows the real CSS on any page: hover an element to read its colors in HEX and RGB, font sizes in px and rem, spacing, and contrast, then record and share UI bugs with console and network logs.
FAQ
How do you convert px to vw?
Divide the pixel value by the viewport width and multiply by 100. On a 1440px design, 48px ÷ 1440 × 100 = 3.333vw. To go back, multiply: 3.333vw × 1440 ÷ 100 = 48px.
What is 1vw in pixels?
1vw is 1% of the viewport width, so it depends on the screen: 3.75px on a 375px phone, 14.4px on a 1440px laptop and 19.2px on a 1920px monitor.
Should I use vw for font sizes?
Not on its own. Pure vw text gets too small on phones, too large on wide screens, and ignores the user's zoom and font size settings. Combine it with rem in clamp(), for example font-size: clamp(1.5rem, 1rem + 2vw, 3rem).
Does vw include the scrollbar?
Yes. 100vw is the full viewport width including a classic scrollbar, so width: 100vw can cause horizontal scrolling on Windows. Use width: 100% for full-width blocks.
Which viewport width should I use for the conversion?
Use the width of the design you are converting from, usually the desktop frame in Figma (1440px is common) or the mobile frame (375px or 390px). The vw value then reproduces that size at that width and scales proportionally on other screens.