Skip to content
ToolInstant

Viewport Units Calculator

Local

Convert pixels to vw, vh, vmin and vmax and back for any screen size. Pick phone, tablet or laptop presets, or your own window. Covers dvh and svh too.

Loading tool…

Ready · Runs in this browser · nothing uploaded

Design tools · Free · No upload · No sign-up

How to use the viewport units calculator for free

  1. 1Pick a device preset or enter a viewport size.
  2. 2Type a pixel value to get vw, vh, vmin and vmax.
  3. 3Or enter a vw/vh value to see it in pixels.

Also useful for: px to vw, vw to px, viewport units calculator, vh calculator, vw calculator, vmin vmax.

  • Completely free, no account needed
  • Your data never leaves your device
  • Works on desktop and mobile

Frequently asked questions

Is this viewport units calculator free?+

Yes. Every tool on ToolInstant is free to use with no sign-up and no limits on how often you use it.

Is my data uploaded anywhere?+

No. Everything is processed inside your browser using JavaScript. Your input never leaves your device.

Does it work on mobile?+

Yes. ToolInstant works in any modern browser on phones, tablets and desktops.

Why is 100vh too tall on my phone?+

Mobile browsers define 100vh as the height with the address bar hidden. Use 100dvh (changes as the bar shows and hides) or 100svh (the smallest height) instead.