freeworktool logofreeworktool

Viewport Unit Calculator

Convert pixels to vw, vh, vmin, and vmax (and back) across desktop, tablet, mobile, or your live window size.

Loading Viewport Unit Calculator in your browser — 100% client-side with zero uploads.

Related design tools

All Design tools

Color Picker

Inspect colors across HEX, RGB, HSL, and HSV with shade ramps and harmonies.

Design

Gradient Generator

Build linear, radial, and conic CSS gradients with custom stops and instant code.

Design

Box Shadow Generator

Compose layered CSS box shadows with live controls and copyable output.

Design

Contrast Checker

Check WCAG 2.1 AA and AAA color contrast ratios for text and UI elements.

Design

Palette Generator

Generate harmonious color palettes, lock favorite swatches, and copy HEX, CSS, or JSON.

Design

Border Radius Generator

Craft standard or organic 8-value CSS border-radius shapes with live visual sliders.

Design

About 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. 1

    Pick a standard viewport preset, click Use current window, or type custom viewport width and height values.

  2. 2

    Enter a pixel value to compute exact vw, vh, vmin, and vmax equivalents with 1-unit pixel references.

  3. 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().