Viewport Unit Calculator

Pick a screen size or type the viewport width and height, then convert a vw, vh, vmin or vmax value to pixels, or pixels to all four viewport units.

px
px
Convert
Unit

50vw on a 390 × 844 viewport

195px

50 of each unit

  • 50vw:195px
  • 50vh:422px
  • 50vmin:195px
  • 50vmax:422px

Features

  • vw, vh, vmin and vmax to px

  • px to all four viewport units

  • Common phone, tablet, laptop and desktop sizes

  • Any custom viewport

  • All four units side by side

When to use it

Responsive layouts

See how big a 50vw column or a 100vh hero actually is on a phone and on a laptop.

Fluid typography

Check what font size 4vw gives on small and large screens before you add a clamp().

Converting a fixed design

Turn a pixel width from a desktop design into vw.

Frequently Asked Questions

Worked example

A hero image is 60vw wide and 50vh tall.

  • On a 390 × 844 phone: 60vw = 234px wide, 50vh = 422px tall
  • On a 1366 × 768 laptop: 60vw = 819.6px wide, 50vh = 384px tall

Related: PX to REM Converter, 8px Grid Calculator, Aspect Ratio Calculator.