Choosing the right website banner size determines whether a visitor immediately engages with your message or bounces before the page finishes painting. A banner is not a single static rectangle anymore; it spans full-bleed hero sections, promotional announcement bars, and standardized display ad slots that must adapt cleanly across 4K desktop monitors and compact mobile viewports.
Hero Banners vs. Display Ad Banners
Before picking pixel dimensions, separate on-site hero banners (part of your page layout) from display ad banners (standardized slots governed by the Interactive Advertising Bureau, or IAB, and networks like Google Ads).
- Website Hero Banners: Designed to introduce a brand, product, or campaign at the top of a landing page. These scale fluidly with the viewport width rather than locking into rigid pixel boxes.
- Announcement / Top Bars: Thin horizontal strips pinned above or below navigation menus for shipping promos, alerts, or cookie notices.
- Display Ad Banners: Fixed-aspect-ratio creatives bought and sold across publisher networks. Using non-standard dimensions here leads to automated cropping, letterboxing, or rejected ad uploads.
Standard Website Hero & Header Dimensions
Modern responsive design relies on aspect ratios and safe zones rather than a single universal pixel count. However, starting from proven baseline dimensions prevents blurriness on high-DPI (
| Banner Type | Desktop Dimensions (px) | Mobile Dimensions (px) | Aspect Ratio | Best Use Case |
|---|---|---|---|---|
| Full-Width Hero | 1920 × 1080 | 800 × 1200 | 16:9 (Desktop) / 2:3 (Mobile) | Immersive landing pages, visual storytelling |
| Standard Header Banner | 1600 × 500 | 750 × 400 | ~3.2:1 (Desktop) / ~1.9:1 (Mobile) | E-commerce category headers, blog headers |
| Compact / Above-the-Fold | 1920 × 600 | 750 × 500 | 16:5 (Desktop) / 3:2 (Mobile) | Keeping navigation and primary content visible immediately |
| Top Announcement Bar | 1920 × 50 to 80 | 375 × 40 to 60 | Fluid full-width | Free shipping thresholds, flash sale timers |
Why One Size Fails Across Desktop and Mobile
A 1920 × 600 desktop banner has a wide panoramic aspect ratio (3.2:1). When a mobile browser shrinks that image down to a 375px screen width without changing the ratio, the height collapses to roughly 117px—making any embedded headline illegible and button targets impossible to tap. Conversely, forcing a fixed 600px height on mobile without swapping assets crops off the left and right edges of your image.
The fix is art direction using the HTML <picture> element or CSS media queries: serve a wide landscape image on viewports above 768px and a dedicated vertical or square crop (4:5 or 1:1) on mobile devices.
Standard IAB & Google Display Ad Sizes
When building banners for programmatic ad networks or sidebar placements on content sites, stick to the highest-performing standardized units:
- Medium Rectangle (
300 × 250): The highest-inventory ad unit online. Fits comfortably inside mobile feeds, desktop sidebars, and mid-article breaks. - Leaderboard (
728 × 90): Placed above main navigation bars or between content sections on desktop viewports. - Mobile Leaderboard (
320 × 50or320 × 100): The mobile counterpart to the728 × 90. The320 × 100Large Mobile Banner offers double the vertical space for readable typography and call-to-action buttons. - Half-Page Ad (
300 × 600): High-visibility vertical placement reserved for desktop sidebars, offering ample room for product photography and value propositions. - Wide Skyscraper (
160 × 600): Narrow vertical format suited for persistent sidebars on article pages. - Billboard (
970 × 250): Expansive widescreen header placement used for major brand launches on desktop.
Designing for Safe Zones and Typography
Even with exact dimensions, responsive containers frequently trim edges depending on screen resolution and browser chrome.
- Keep critical elements inside the center 60–70%. Place logos, headlines, faces, and call-to-action buttons well away from outer edges so CSS
object-fit: covercropping never slices through text. - Never bake text into raster images. Rendering headlines and buttons in live HTML/CSS over a clean background image keeps text razor-sharp at every zoom level, improves screen-reader accessibility, and lets search engines index your copy.
- Maintain minimum contrast ratios. If placing white HTML text over a photographic banner, apply a subtle dark linear gradient overlay (
rgba(0, 0, 0, 0.45)) behind the text block to meetWeb Content Accessibility Guidelines level requiring at least a 4.5:1 contrast ratio for normal text. readability standards.
File Formats and Performance Optimization
A hero banner is almost always the page’s
- Format Selection: Export photographic banners as WebP or AVIF for 25–50% smaller file sizes than JPEG at equivalent visual quality. Reserve SVG for vector illustrations, geometric patterns, and logos.
- File Weight Targets: Keep desktop hero banners under 200 KB and mobile banners under 100 KB. Display ads typically face strict network caps of 150 KB.
- Loading Priority: Never apply
loading="lazy"to above-the-fold hero banners. Instead, addfetchpriority="high"to the hero<img>tag so the browser downloads it ahead of below-the-fold scripts and assets.
Platform-Specific Quick Reference
If you are uploading banners to hosted storefront or publishing platforms rather than custom code, match their native container ratios to prevent automatic compression artifacts:
- Shopify (Dawn & modern OS 2.0 themes):
1920 × 1080(or2000 × 1200) for full-screen slideshows;1600 × 600for standard collection banners. - WordPress (Block Themes):
1920 × 800for full-width Cover blocks;1200 × 628for featured post headers (which also doubles cleanly as an Open Graph social sharing image). - Squarespace / Wix:
2500 × 1400maximum width—both platforms automatically generate responsive image variants at1500px,1000px,750px, and500pxfrom a high-resolution master upload.
Leave a Reply