Tested tool guide
Tested browser tools
Checked August 16, 2026
What Viewport Unit Calculator does, with a checked example
Takes a viewport width and height in pixels and converts between px and the four CSS viewport units: vh (1% of height), vw (1% of width), vmin (1% of the smaller axis), and vmax (1% of the larger axis). Every result is plain arithmetic, so a 1920x1080 viewport yields 1vw = 19.2px and 1vh = 10.8px. The common mistake is the input: the browser viewport is the window's inner size in CSS pixels, not the monitor resolution. Browser chrome, the OS taskbar, display scaling, and mobile URL bars all change the number the browser actually measures.
Worked example
A concrete input and expected output from the current implementation.
Input
Viewport 1920 x 1080
Convert 50vw, 50vh, 10vmin, 10vmax to px
->
Expected output
50vw = 960px, 50vh = 540px, 10vmin = 108px, 10vmax = 192px
Each unit is 1% of one axis: vw and vmax follow the 1920px width (19.2px per unit), while vh and vmin follow the 1080px height (10.8px per unit). So 50 x 19.2px = 960px, 50 x 10.8px = 540px, 10 x 10.8px = 108px, and 10 x 19.2px = 192px.