Skip to content
TabKiwiTabKiwi

Viewport Unit Calculator

Convert vw, vh, vmin and vmax to pixels and back for any screen or common device size.

DesignRuns in your browser. Your files never leave this device.
Loading tool…

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

  1. Choose a device or enter the viewport size.
  2. Enter a value and unit to convert to pixels.
  3. Or enter pixels to see the equivalent units.
  4. 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.

More Design tools

View all 33 →