Viewport Unit Calculator
Enter a viewport percentage or pixel value to convert between vw, vh, vmin, vmax and pixels for any screen size.
1vw = 1% of viewport width
vw
PX value
Reference Table
vw at 1440px wide| Unit | Pixels | Common use |
|---|
Copied!
Summary
Enter a viewport percentage or pixel value to convert between vw, vh, vmin, vmax and pixels for any screen size.
How it works
- Set the viewport width and height to match your target screen size (or use the device presets).
- Choose a unit type: vw, vh, vmin, or vmax.
- Enter a viewport percentage value to see the equivalent pixels, or enter pixels to convert back.
- Copy the result with the Copy button.
- Scroll down to the reference table to see common percentages for the current viewport.
Use cases
- Calculate the pixel size of a 50vw element on a 1440px wide screen.
- Convert a design spec in pixels to the correct vw or vh percentage for responsive layouts.
- Verify that a fluid font size using vmin renders correctly across breakpoints.
- Check vmax values when building full-screen hero sections or modals.
- Use the reference table to pick the right viewport percentage without guessing.
- Test responsive spacing tokens by comparing px and vw side by side.
Frequently Asked Questions
Last updated: 2026-07-01 ·
Reviewed by Nham Vu