About this tool
Find out how many pixels a viewport unit equals on a given screen, or which vw or vh value gives you a target pixel size. Pick a device preset or enter any width and height. A table shows the same value across popular phones, tablets and monitors.
How to use Viewport Unit Calculator
- Choose a device or enter the viewport size.
- Enter a value and unit to convert to pixels.
- Or enter pixels to see the equivalent units.
- Compare results across devices.
Frequently asked questions
What are vmin and vmax?
1vmin is 1% of the smaller side of the viewport and 1vmax is 1% of the larger side. They help when designs must work in both portrait and landscape.
Why does 100vh feel too tall on phones?
Mobile browser toolbars change the visible height. Newer units like svh and dvh account for that; this calculator uses the full layout viewport.