Viewport Units Calculator
Converts viewport units to pixels and back at a screen size you choose.
Pixels
— px
Share sends a link that reopens these numbers. Copy details pastes the full breakdown as a list.
vw — vw
vh — vh
vmin — vmin
vmax — vmax
The formula
1 vw = 1% of viewport width 1 vh = 1% of viewport height
vmin uses the smaller of the two and vmax the larger. On phones, 100vh may be taller than the visible area while the browser’s address bar is showing.
What to watch out for
Vertical scrollbars can make 100vw slightly wider than the usable page.
Frequently Asked Questions
How many pixels is 5vw on a 1440 px screen?
72 px.
How do I turn a 48 px heading into vw?
Divide by the viewport width and multiply by 100: 3.33vw at 1440 px.