Viewport units are percentages of the browser window: 1vw is 1% of the width, 1vh is 1% of the height, and vmin/vmax use the smaller or larger of the two. Pick a device preset or enter a custom viewport, then type a pixel value to see its equivalent in each unit.

The reverse converter shows what a value like 5vw resolves to on the current viewport and on a list of common phones, tablets and desktops, which is a quick way to check that a viewport-based size does not become unreadable on small screens or huge on wide monitors.

The presets use CSS pixel sizes, not physical resolution. On mobile, vh is measured against the largest viewport (with the address bar hidden); use svh or dvh when you need the small or dynamic viewport instead.