Skip to content
OddsockLocal
Local
Width (px)
Height (px)
Unit

Pixels960

Pixels: 960Runs in this browser. Nothing is uploaded.

Ready

How to use

  1. Enter the screen width and height in pixels.
  2. Enter the viewport amount, such as 50.
  3. Choose vw, vh, vmin, or vmax.
  4. Read the pixel length. Swap the unit if you meant the other edge.

What is Viewport units?

Fifty viewport-width units on a 1920px-wide screen are 960px. The formula is the unit value divided by 100, times the matching screen edge. vw uses the width. vh uses the height. vmin uses the shorter edge. vmax uses the longer edge. On a 1920 by 1080 screen the shorter edge is 1080, so 50vmin is 540px, while 50vmax is still 960px.

Read more

The page needs the screen you care about, because a phone and a desktop share the same vw number and not the same pixel count. 100vw is the full width you typed. 1vw is one hundredth of it. There is no separate control that turns pixels back into vw: divide the pixels by the width and multiply by 100.

vmin and vmax are the ones that surprise people in a square layout. If the width and height are equal, all four units agree. The moment the screen is wider than it is tall, vw and vmax stay together and vh and vmin stay together. A portrait phone reverses that pairing.

Use cases

  • A developer checking that 50vw of a 1920px artboard is a 960px column.
  • A designer testing 100vh against a 1080px laptop height before fixing a sticky footer.
  • Someone comparing 10vmin on a wide monitor with 10vmin on a tall phone.
  • A student learning why 100vw and 100vh are different lengths on the same screen.
  • A layout reviewer converting a Figma frame's vw token into the pixels QA will measure.

50vw on a 1920 by 1080 screen

Width 1920. Height 1080. Viewport units 50. Unit vw.

960 pixels. That is 50 percent of the width. The same 50 as vh would be 540, half of 1080.

Why use Oddsock

Oddsock runs this in your browser. It is free, it does not upload the work, and it does not ask for an account.

Related tools

Using this tool

One hundredth of the width you entered. On a 1920px width, 1vw is 19.2px and 50vw is 960px.