Viewport unit calculator
Convert vw, vh, vmin and vmax to pixels for any screen size, and pixels back to viewport units.
Result
- 50vw
720px - 50vh
450px - 50vmin
450px - 50vmax
720px - 50px in vw
3.4722vw - 50px in vh
5.5556vh - 50px in vmin
5.5556vmin - 50px in vmax
3.4722vmax
Missing a feature or found a bug in Viewport unit calculator? Tell me on X (@_andrewtran) or by email.
How to use Viewport unit calculator
- Enter a value.
- Set the screen width and height in pixels.
- Read the value as each viewport unit in pixels, and as pixels in each unit.
Questions and answers
Is my data sent anywhere?
No. Everything runs in your browser on this device. Nothing you paste is uploaded or stored.
What are vmin and vmax?
One percent of the smaller and of the larger side of the screen. On a 1440 by 900 screen, 1vmin is 9 pixels and 1vmax is 14.4.
Related tools
8-point grid calculator
Snap any size to an 8-point spacing grid, or to a grid step of your own.Golden ratio calculator
Split a size by the golden ratio and build a type or spacing scale from it.ASCII table
All 128 ASCII characters with their decimal, hex, octal and binary codes, searchable.MIME type lookup
Find the MIME type for a file extension, or the extension for a type.