Viewport Unit Calculator

Enter a viewport percentage or pixel value to convert between vw, vh, vmin, vmax and pixels for any screen size.

1vw = 1% of viewport width

vw

Reference Table

vw at 1440px wide
Unit Pixels Common use
Copied!

Summary

Enter a viewport percentage or pixel value to convert between vw, vh, vmin, vmax and pixels for any screen size.

How it works

  1. Set the viewport width and height to match your target screen size (or use the device presets).
  2. Choose a unit type: vw, vh, vmin, or vmax.
  3. Enter a viewport percentage value to see the equivalent pixels, or enter pixels to convert back.
  4. Copy the result with the Copy button.
  5. Scroll down to the reference table to see common percentages for the current viewport.

Use cases

  • Calculate the pixel size of a 50vw element on a 1440px wide screen.
  • Convert a design spec in pixels to the correct vw or vh percentage for responsive layouts.
  • Verify that a fluid font size using vmin renders correctly across breakpoints.
  • Check vmax values when building full-screen hero sections or modals.
  • Use the reference table to pick the right viewport percentage without guessing.
  • Test responsive spacing tokens by comparing px and vw side by side.

Frequently Asked Questions

Last updated: 2026-07-01 · Reviewed by Nham Vu