TXT · Text & Data tools

PX to VW Converter

Pixels (px) Input
Viewport W (vw) Output
Pixels (px)InputViewport W (vw)Output6Items
Go to full CSS Unit Converter

Convert px to vw

Enter pixel values one per line or paste CSS containing px lengths. The output divides each matching value by 1% of the reference viewport width and adds the vw unit.

192px becomes 10vw, and 96px becomes 5vw at the 1920px reference.

Viewport-relative sizing

A vw unit is not a fixed size. Its pixel equivalent depends on the width of the browser viewport it renders in.

The focused page uses a 1920px reference viewport. Open the full CSS Unit Converter when the target screen uses another width.

CSS replacement

Only values carrying the px unit are replaced inside CSS. Unitless numbers, percentages, and values already written as vw remain unchanged.

Frequently Asked Questions

Divide the pixel value by 1% of the viewport width, then divide by 100. At a 1920px reference viewport, 192px divided by 19.2 equals 10vw.

The focused converter uses a 1920px reference viewport, a common desktop width. Open the full CSS Unit Converter to set another viewport width.

vw is relative to the browser's current viewport width. If the viewport changes from 1920px to 1280px, the same pixel value maps to a larger vw percentage.

Focused CSS unit converters

Full CSS Unit Converter tool

Explore Our Tools

Browse all tools