Viewport Unit Calculator
Convert pixels to vw, vh, vmin, and vmax (and back) across desktop, tablet, mobile, or your live window size.
Related design tools
All Design toolsAbout Viewport Unit Calculator
Convert pixels to CSS viewport units (vw, vh, vmin, vmax) and convert viewport units back to pixels for desktop, tablet, mobile, or your live browser window.
How to use Viewport Unit Calculator
- 1
Pick a standard viewport preset, click Use current window, or type custom viewport width and height values.
- 2
Enter a pixel value to compute exact vw, vh, vmin, and vmax equivalents with 1-unit pixel references.
- 3
Use the reverse panel to check how many pixels a given vw or vh value equals at that viewport size.
Frequently asked questions
What is the difference between vmin and vmax?
1vmin equals 1% of the smaller viewport dimension (width or height), while 1vmax equals 1% of the larger dimension.
How does 1vw relate to pixels?
1vw is always 1% of the viewport width—so on a 1440px screen, 1vw equals 14.4px.
Why test multiple viewport presets?
A size expressed purely in vw can become tiny on mobile phones or huge on ultrawide monitors, helping you decide when to pair viewport units with clamp().
