The Complete Guide to Website Banner Sizes: Dimensions, Design, and Best Practices
A website banner is often the first thing a visitor sees when they land on your page—and the deciding factor in whether they stay or bounce. Yet one of the most common mistakes in web design isn’t poor color choice or weak copy; it’s getting the dimensions wrong. A banner that looks crisp on a 27-inch desktop monitor can easily become cropped, blurry, or awkwardly stacked on a smartphone screen.
Understanding standard website banner sizes—alongside modern responsive design principles—ensures your visuals load quickly, scale smoothly, and drive clicks across every device.
Hero Banners vs. Display Ad Banners
Before choosing dimensions, it is important to distinguish between the two main types of website banners, as they serve completely different purposes:
- Website Hero & Header Banners: Large, on-site visual headers placed at the top of your homepage or landing pages to establish brand identity, showcase products, or highlight a primary call to action (CTA).
- Digital Display Ad Banners: Standardized ad placements (such as those used on the Google Display Network) designed to monetize content or promote campaigns across third-party websites.
Standard Website Hero & Header Banner Sizes
Unlike ad networks, websites do not enforce a single strict rule for hero banners. However, web designers rely on proven aspect ratios and pixel dimensions to match common screen resolutions.
| Banner Type | Recommended Dimensions (px) | Aspect Ratio | Best Use Case |
|---|---|---|---|
| Full-Width Desktop Hero | 1920 × 1080 or 1920 × 800 | 16:9 or 12:5 | Immersive full-screen landing pages and visual storytelling |
| Standard Desktop Header | 1600 × 500 or 1440 × 600 | ~3:1 or 12:5 | Above-the-fold banners that leave room for navigation and content below |
| Compact / Slim Banner | 1200 × 400 or 1200 × 300 | 3:1 or 4:1 | Category headers, blog headers, and subpage titles |
| Mobile Hero Banner | 800 × 1200 or 1080 × 1350 | 2:3 or 4:5 | Dedicated vertical crops served to smartphone screens |
| Announcement Bar | 1920 × 60 to 1920 × 100 | ~24:1 | Top-of-page promo codes, shipping notices, or event alerts |
The “Above-the-Fold” Rule
If your hero banner is 1080px tall, it will fill an entire standard desktop viewport (1920 × 1080). While dramatic, this hides your navigation bar or introductory content unless the user scrolls. If you want visitors to see both your banner and the start of your page content immediately, aim for a height between 500px and 700px on desktop.
Standard Digital Display Ad Banner Sizes
If you are designing banners for programmatic advertising, affiliate marketing, or Google Ads, sticking to Interactive Advertising Bureau (IAB) standards maximizes your ad inventory and reach.
- Leaderboard (
728 × 90 px): Positioned at the very top of web pages above the main content. High visibility on desktop, though largely replaced on mobile by the320 × 50mobile leaderboard. - Large Leaderboard (
970 × 90 px) & Billboard (970 × 250 px): Wide, high-impact desktop placements typically found at the top of editorial and news sites. - Medium Rectangle (
300 × 250 px): The most versatile and widely supported banner size on the web. It fits neatly inside sidebars or embedded within article text on both desktop and mobile. - Large Rectangle (
336 × 280 px): Slightly larger than the medium rectangle, offering better readability for text-heavy ads within content feeds. - Half-Page Ad (
300 × 600 px): Despite its name, it does not cover half the screen, but its tall vertical footprint commands strong attention in website sidebars. - Wide Skyscraper (
160 × 600 px): A narrow vertical banner designed for slim sidebars where horizontal space is limited. - Mobile Leaderboard (
320 × 50 px) & Large Mobile Banner (320 × 100 px): Anchored at the top or bottom of mobile screens for high impressions without obstructing the reading experience.
Designing for Responsive Screens and Retina Displays
Picking a pixel dimension is only half the battle. Modern devices vary wildly in screen width and pixel density, meaning a single static image rarely works everywhere.
1. Account for Retina (2x) Displays
High-resolution screens—such as Apple Retina displays and modern OLED smartphones—pack twice as many pixels into the same physical space. A 1200 × 400 px banner displayed at 1200 × 400 CSS pixels will look noticeably soft on a Retina screen.
- The Fix: Export images at 1.5x or 2x resolution (for example, exporting a
1200 × 400slot at2400 × 800 px) while using modern compression to keep file sizes small.
2. Design Around “Safe Zones”
Responsive websites often crop the left and right edges of a hero image as the browser window narrows.
- The Fix: Keep critical focal points—faces, product silhouettes, logos, and text—centered within the middle 60% to 70% of the canvas. Treat the outer edges as decorative background bleed.
3. Never Bake Text Into Hero Images
Embedding headlines and buttons directly into a JPG or PNG file causes two major problems: the text becomes unreadable when scaled down on mobile, and search engines or screen readers cannot read it.
- The Fix: Upload clean background imagery and layer live HTML text and CSS buttons over the image. This ensures crisp typography at any zoom level and allows you to reposition text on mobile screens.
4. Serve Separate Crops for Mobile
A wide 16:9 desktop banner shrinks into a tiny horizontal strip on a vertical phone screen. Whenever your CMS or page builder allows it, upload a dedicated vertical or square image (4:5 or 1:1) for mobile breakpoints.
File Formats and Performance Optimization
A gorgeous banner that takes four seconds to load will cost you conversions before visitors ever see it.
- WebP or AVIF: Use these modern formats whenever possible. They deliver the visual quality of JPEG or PNG at 25% to 50% smaller file sizes.
- JPEG: The reliable fallback for photographic banners with complex gradients and colors.
- PNG: Reserve strictly for graphics requiring transparent backgrounds or sharp geometric logos.
- Target File Size: Keep hero banners under 200 KB–300 KB, and display ad banners under 150 KB (the standard cap for most ad networks).
Quick Pre-Launch Checklist
Before publishing any new website banner, run through these four checks:
- Contrast Check: If live text sits over your banner image, apply a subtle dark gradient overlay (
rgba(0, 0, 0, 0.35)) so white typography remains effortless to read. - Mobile Preview: Test the live page on an actual phone—not just a resized desktop browser—to verify that faces or products aren’t awkwardly cut off.
- Alt Text: Write descriptive
altattributes for on-site banners to support accessibility and image SEO. - Loading Priority: Ensure your main above-the-fold hero banner is not set to
loading="lazy", as lazy-loading your top image hurts Largest Contentful Paint (LCP) Core Web Vitals scores.