Conversion Form

VW
IN

About the Unit

VW (Viewport Width): VW is a relative unit based on the width of the viewport (the visible area of the page in the browser). 1vw corresponds to 1% of the viewport width. This unit is extremely useful when you want to create designs that automatically adjust to the screen width, especially in responsive layouts. Using vw units allows you to set element widths that adapt fluidly to the screen size without the need for complicated media queries. For example, if you set an element's width to 50vw, it will occupy half of the screen width, regardless of the screen size or device resolution. This flexibility makes VW ideal for layouts that need to be adaptable, such as websites that work well on both mobile devices and desktops.

Pro Tip: vwin

Convert vw to in for print-based designs.

Quick Reference: Unit Conversion by Tens

VWIN
10vw2in
20vw4in
30vw6in
40vw8in
50vw10in
60vw12in
70vw14in
80vw16in
90vw18in
100vw20in
110vw22in
120vw24in
130vw26in
140vw28in
150vw30in
160vw32in
170vw34in
180vw36in
190vw38in
200vw40in
210vw42in
220vw44in
230vw46in
240vw48in
250vw50in

Live Unit Preview

See how different CSS units affect the size of the box below:

10px

10rem

10em

10%

10vw

10vh

Common Mistake

Use vw for screen-based layouts, in for physical print designs.

Real Code Example

/* Mobile-first card with vw → in */
.card {
  padding: 0vw;     /* undefinedin */
  font-size: 1.5rem;
  width: min(90vw, 40ch);
}

Frequently Asked Questions About VW

When should I use vw instead of vw?

Use vw for elements that scale with screen width.

How many vw is 1vw?

1vw = 1% of the viewport width.

Is vw affected by screen size?

Yes, it changes with browser width.

Is vw good for fonts?

Sometimes, but rem is more consistent.

Keyboard Shortcuts

  • Ctrl + C: Convert
  • Ctrl + I: Invert units
  • Esc: Reset values

More popular conversions