Website banner size

Written by

in

The Complete Guide to Website Banner Sizes: Dimensions, Design, and Performance

A website banner is often the first visual handshake between your brand and a visitor. Whether it is a full-width hero image at the top of a homepage, a promotional announcement bar, or a display ad unit, getting the dimensions wrong leads to pixelated graphics, awkward cropping, and sluggish load times.

Choosing the right banner size requires balancing visual impact across different screen resolutions with strict performance budgets.


1. On-Site Website Banner Dimensions

On-site banners live directly within your website’s layout. Unlike ad networks that enforce rigid pixel boxes, on-site banners must adapt fluidly across desktop monitors, tablets, and smartphones.

Banner Type Recommended Desktop Size (px) Recommended Mobile Size (px) Aspect Ratio Primary Purpose
Full-Width Hero Banner 1920 × 1080 or 1600 × 900 800 × 1200 or 750 × 1000 16:9 (Desktop) / 3:4 (Mobile) Main above-the-fold visual, brand statement, and primary call to action.
Slim Hero / Page Header 1920 × 500 or 1600 × 400 800 × 600 4:1 (Desktop) / 4:3 (Mobile) Category pages, blog headers, and sub-pages where content needs to appear quickly.
Announcement / Top Bar 1920 × 60 to 100 750 × 80 to 120 Ultra-wide Free shipping alerts, flash sales, or urgent site-wide notices.
In-Content Promotional Banner 1200 × 400 or 1000 × 300 600 × 400 3:1 (Desktop) / 3:2 (Mobile) Mid-article newsletter signups, product highlights, or lead magnets.
Sidebar Banner 300 × 600 or 300 × 250 N/A (Stacks below content) 1:2 or 6:5 Persistent promotions alongside blog posts or product filters.

The “Safe Zone” Rule for Hero Banners

Because responsive websites dynamically scale and crop images depending on a user’s browser window, critical elements—such as faces, product focal points, and embedded text—should never sit near the edges of a banner. Keep essential visual details centered within the middle 60% to 70% of the canvas, leaving the outer margins as background texture or breathing room.


2. Standard Display Ad Banner Sizes

If you are designing banners to run as advertisements on your site or across ad networks like Google AdSense, industry standards established by the Interactive Advertising Bureau (IAB) dictate the exact pixel dimensions.

  • Medium Rectangle (300 × 250 px): The highest-performing ad unit across both desktop and mobile. It fits neatly inside text columns and sidebars without disrupting the reading flow.
  • Leaderboard (728 × 90 px): Placed prominently at the top of a webpage above the main content. On larger desktop screens, this is often upgraded to a Large Leaderboard (970 × 90 px) or Billboard (970 × 250 px).
  • Half Page (300 × 600 px): Despite its name, it does not take up half the screen, but its tall vertical footprint commands high visibility and strong click-through rates in desktop sidebars.
  • Mobile Leaderboard (320 × 50 px) & Large Mobile Banner (320 × 100 px): The standard sticky banners anchored to the top or bottom of mobile screens.

3. Resolution, Retina Displays, and File Formats

Pixel dimensions alone do not guarantee a crisp banner. Modern smartphones, tablets, and laptops feature high-DPI (Retina) screens that pack two to three physical pixels into every CSS pixel.

  1. Export at 1.5x or 2x Scale: If a banner container on your site is 1200 × 400 CSS pixels, exporting the image at 2400 × 800 pixels ensures razor-sharp edges on high-resolution screens. For full-screen 1920 px hero images, exporting at 2560 px wide usually strikes the best balance between crispness and file size without bloating to 4K (3840 px).
  2. Choose Modern Image Formats:
    • WebP and AVIF: Use these for photographic banners. They deliver the same visual quality as JPEG at 25% to 50% smaller file sizes.
    • SVG: Use vector graphics for logos, icons, and geometric illustrations inside banners so they scale infinitely without losing clarity.
    • PNG: Reserve PNG strictly for graphics requiring lossless transparency where SVG is not an option.
  3. Target Strict File Size Limits: A heavy hero banner is the single most common culprit behind poor A Core Web Vitals metric measuring how quickly the largest visible image or text block renders on screen. scores. Aim to keep full-width hero banners under 200 KB to 300 KB, and smaller in-content or display banners under 100 KB to 150 KB.

4. Design Best Practices for High-Converting Banners

  • Separate Text from the Image: Never bake headlines, paragraphs, or buttons directly into a JPG or WebP file. Overlay live HTML text and CSS buttons on top of the background image instead. Live text remains readable on mobile screens, scales cleanly, is accessible to screen readers, and can be indexed by search engines.
  • Ensure Contrast for Readability: If you place white text over a bright or busy photograph, add a subtle dark gradient overlay (typically 30% to 50% opacity) behind the text area so the copy stays legible regardless of screen brightness.
  • Serve Separate Mobile Crops: A wide 16:9 landscape banner shrunk down to a 390 px wide phone screen becomes a tiny, unreadable strip. Use the HTML <picture> element or your CMS’s responsive settings to serve a dedicated 3:4 or 4:5 vertical crop on mobile devices.
  • Avoid Auto-Playing Carousels: Multi-slide rotating hero banners dilute your message, slow down page rendering, and suffer from “banner blindness”—analytics consistently show that less than 2% of visitors ever click past the first slide. Commit to one clear, high-impact static banner instead.

Quick Pre-Launch Checklist

Before uploading a new banner to your website, verify four details:

  1. Dimensions: Does the width match the maximum container size (or 2x for Retina) without excessive upscaling?
  2. Compression: Is the file saved as WebP or AVIF and compressed under 300 KB?
  3. Responsiveness: Have you tested how the image crops at 1920 px (desktop), 1024 px (tablet), and 390 px (mobile)?
  4. Accessibility: Does the image include descriptive alt text, and does any overlaid text meet a minimum 4.5:1 contrast ratio?

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *