Viewport Unit Calculator
Convert vw, vh, vmin, vmax, pixels, and rem accurately for any screen resolution.
1vw = 1% of viewport width · 1vh = 1% of height
72px
5vw
8vh
4.5rem
Runs in this browser. Nothing is uploaded.
How to use Viewport Unit Calculator
Enter a numeric Value and pick vw, vh, vmin, vmax, or px.
Set your target Viewport width and height in pixels.
Copy the calculated pixel, vw, vh, or rem (16px root) equivalents.
Frequently asked questions
How do vmin and vmax work?
vmin uses 1% of the smaller viewport edge while vmax uses 1% of the larger viewport edge.