Converter · CSS unit tool
PX to VW converter
vw = (px ÷ viewportWidth) × 100. 1vw equals 1% of the viewport width, so 80px on a 1440px design is 5.56vw. Set your reference viewport below to size elements fluidly.
Result
50.0000 vw
720px ÷ 1440px × 100 = 50.0000vw
CSS snippet
width: 50.0000vw;
Keyboard tip: press Tab or Shift+Tab to switch fields.
The PX to VW formula
Divide the pixel value by the design viewport width, then multiply by 100: vw = (px ÷ viewportWidth) × 100. The reference viewport is the canvas width your mockup was drawn at (commonly 1440 or 1280).
Because vw tracks the viewport, the rendered pixel size changes on every resize—useful for hero text, risky for body copy without bounds.
Use vw with guardrails
Raw vw text grows without limit on ultrawide monitors and shrinks below readable sizes on phones. Wrap it in `clamp()` so a minimum and maximum keep it sane.
On mobile, browser chrome makes `100vw` and `100vh` jumpy. Consider `dvw`/`dvh` (dynamic viewport) and test on real devices.
Copy-ready examples
h1 {
font-size: clamp(2rem, 5.56vw, 4rem);
}Frequently asked questions
- What viewport width should I use as the reference?
- Use the width your design was drawn at—often 1440px or 1280px. The converter's vw output is calibrated to that reference.
- Should I size body text in vw?
- Only inside clamp(). Pure vw text can become unreadable at small or huge viewports, so always set a min and max.
- Is px to vw converter free to use?
- Yes. UnitCraft calculators are free and run entirely in your browser.
- Does UnitCraft send my input values to a server?
- No. Calculator inputs are processed locally in the browser tab.
- Can I copy the generated CSS output?
- Yes. Each tool provides copy-ready snippets so you can paste values directly into code.