Desktop 4K screen size & viewport

The Desktop 4K renders web pages at a CSS viewport of 3840 × 2160 in portrait (2160 × 3840 in landscape).

▶ Preview a website at 3840×2160

What these numbers mean

3840 × 2160 is the CSS viewport size — the coordinate space your layout, media queries and vw/vh units work in. It is not the hardware pixel count: the Desktop 4K packs more physical pixels behind each CSS pixel (its device pixel ratio), which is why images meant for it should be exported at 2× or 3×.

For a desktop / laptop this size, a layout should already be at its multi-column / tablet breakpoint.

Targeting it in CSS

/* Styles for viewports up to the Desktop 4K */
@media (max-width: 3840px) {
  .container { padding-inline: 16px; }
}

/* Exactly the Desktop 4K in portrait */
@media (width: 3840px) and (height: 2160px) { /* … */ }

Common things that break at 3840px wide

Test it live: open ViewOnPhone at 3840×2160, paste your URL and toggle portrait / landscape.

Other Desktop & laptop sizes

MacBook Pro 16"1728 × 1117 MacBook Pro 14"1512 × 982 MacBook Air 15"1440 × 900 iMac 24"2240 × 1260 Surface Pro 111440 × 960 Surface Laptop 71504 × 1000 Dell XPS 151920 × 1200 HP Spectre x3601920 × 1080
Donate