Converting a 1440px Design to vw

The formula and workflow for turning a 1440px desktop mockup into vw, and how to cap sizes on large screens.

Desktop mockups handed over from Figma are very often 1440px wide. Code that mockup in fixed px and it looks stranded in the middle of a 1920px monitor, while a small laptop may end up with a horizontal scrollbar. Here is the workflow I use to convert a 1440px design to vw without those problems.

1. Why 1440px?

1440px is Figma's default desktop frame (1440×1024) and the default resolution of older 13-inch MacBooks (1440×900), which is why it became the go-to width for desktop mockups. Real screens vary — 1920px, 1536px (a 1920px laptop running at 125% scaling), 1366px and more — so designing at 1440px and scaling up and down from there is a well-balanced middle ground.

2. The basic formula

To convert an element's size (px) in a 1440px mockup to vw:

(element px ÷ mockup width 1440) × 100 = vw

Say the heading in the mockup is 48px:

  • 48 ÷ 1440 = 0.0333...
  • 0.0333 × 100 = 3.333vw

The same 48px in a 1920px mockup would be 2.5vw. A different base width gives completely different vw values, so if you were handed a 1920px design, use the 1920px conversion table instead. Apply the 1440px-based 3.333vw to a 1920px screen and you get roughly 64px.

3. Step-by-step workflow

Step 1: Confirm the base width

Before writing any CSS, check that the mockup really is 1440px wide. Every so often it turns out to be 1280px or 1920px, so confirm it and set the converter's Base width to match.

Step 2: Use a converter

Punching numbers into a calculator every time is a waste of effort. In the PX to VW converter, click the 1440 preset, type a px value from the mockup and the vw value appears instantly; click the result to copy it. Common values are all on one page in the 1440px conversion table.

For multiple lines of CSS, paste them into the Batch CSS converter and everything converts at once. @media conditions are left alone, and with "Keep ≤1px as px" turned on, values like 1px borders stay in px.

Step 3: Cap the maximum size

Once the layout is coded in vw against the 1440px mockup, you need to stop it from growing forever. Wrap the layout in a top-level container with max-width: 1440px (or 1920px) and margin: 0 auto, and put a ceiling on the vw-based sizes too. vw is relative to the viewport, not the container, so capping the container width alone won't stop text from growing (3.333vw is about 85px on a 2560px screen).

/* Simplest: lock at 48px (3rem) from 1440px up */
.title { font-size: min(3.333vw, 3rem); }

/* Recommended: 32px at 768px → 48px at 1440px, fixed outside that range */
.title { font-size: clamp(2rem, 0.8571rem + 2.381vw, 3rem); }

The second version comes out to about 38.1px on a 1024px screen, and because it mixes in rem it also respects the user's font-size setting. The clamp generator calculates these values for you.

4. What not to convert (Don'ts)

  • Gutters and small gaps: vw works well for side margins, but tiny gaps between elements (4px, 8px and so on) are cleaner in px.
  • Hairline borders: leave a 1px border at 1px.

Other cases where vw is the wrong tool are covered in 6 cases where you should not convert px to vw.

Conclusion

Converting against a 1440px base is the most common approach for desktop builds. Just remember that 1440px-based vw values get far too small on mobile (48px becomes 12.5px on a 375px screen), so convert 1024px and below against the mobile mockup separately, and give text a range with clamp().

Try it out right away1440px PX to VW tableOpen →

Keep reading