Driver FixRecommendedSound, Wi-Fi or graphics acting up? Check drivers firstFind missing or outdated drivers fast.Check DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsWindows FixRecommendedWindows errors stealing your time? Find the fix fastScan stability, cleanup and performance issues.Fix Now×
Skip to content
ThatPainter
hero image

What Is a Hero Image? Definition, Examples and Best Practices

A hero image is a prominent visual near the top of a webpage. Learn how to choose one that supports the message, works on mobile, remains accessible and loads quickly.

By ThatPainter Team 13 min read
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

ThatPainter is reader-supported. When you buy through links on our site, we may earn an affiliate commission. Learn More

A hero image is a large, prominent visual placed near the top of a webpage. It helps visitors understand what the page is about, establishes visual tone, showcases a product or outcome, and supports the page’s main call to action.

A hero image may be a photograph, illustration, product composition, interface screenshot, or—less technically—a video or animation. It is often part of a larger hero section that also contains a headline, supporting text, buttons, navigation, or a form.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The best hero image is not simply the largest or most dramatic one. It is relevant, readable, responsive, accessible, and fast enough to avoid delaying the page’s main content.

What is a hero image?

A hero image is a large image positioned prominently near the top of a webpage, usually within the first screenful of content. Its purpose is to give visitors immediate context and reinforce the page’s primary message.

Depending on the page, a hero image can:

  • Establish a brand’s tone and visual identity.
  • Show a product, place, person, process, or desired result.
  • Make an abstract service easier to understand.
  • Direct attention toward a headline or call to action.
  • Create an emotional first impression.
  • Support a product launch, seasonal campaign, or event.

The term is used somewhat loosely. Strictly speaking, the hero image is the visual asset. The surrounding layout is the hero section. Canva also describes hero images as large website banners commonly placed near the top of a page (Canva’s hero-image overview).

A hero image does not guarantee more conversions. Its value depends on the relevance of the image, the clarity of the copy, the offer, the audience, page speed, and the usability of the complete layout.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Hero image vs. hero section, banner, featured image and background image

Term Meaning
Hero image The prominent visual asset near the top of a page.
Hero section The complete component: image, headline, copy, buttons, forms and layout.
Banner A generally wide strip used for promotion, announcements or branding. A banner may be much smaller and less central to the page’s purpose.
Featured image An image representing an article, product or post in a listing, preview or header. A featured image can also serve as a hero image, but the terms are not identical.
Background image An image applied through CSS behind content. A hero image may be a background image, but meaningful visual information is usually easier to make accessible with an HTML <img>.
Above the fold The content visible before scrolling. A hero image may appear above the fold, but it does not need to fill the entire viewport.

The difference between an image and a section matters during planning. A page can have a hero section without an image, such as a text-first SaaS landing page. Conversely, an image can function as the hero visual without text placed over it.

Why do websites use hero images?

A well-chosen hero image can answer a visitor’s first practical question: “What is this page about, and why should I continue?” A photograph can show a service in action, a product composition can establish what is being sold, and an illustration can make an unfamiliar concept easier to grasp.

Hero images are common on:

  • Homepages introducing a brand and its audience promise.
  • Product pages showing a product in use or highlighting its main benefit.
  • Ecommerce collection pages promoting a range or seasonal offer.
  • Campaign and event pages supporting a specific action.
  • Service pages visualizing the customer’s desired outcome.
  • Portfolio and agency sites presenting representative work.
  • Travel and hospitality sites establishing atmosphere and place.
  • Nonprofit and institutional sites introducing a mission or service.
  • Editorial homepages organizing attention around important content.

Large visual treatments are not always helpful. On highly task-oriented sites, such as banking dashboards or productivity tools, an elaborate hero can delay the action visitors came to complete. Shopify notes that elaborate hero sections can get in the way on task-focused websites (Shopify’s hero-image guidance).

Types of hero images

Full-bleed photographic hero

A photograph fills the width of the section, often with HTML text over it. This works well for travel, hospitality, food, fashion, real estate, lifestyle and nonprofit storytelling.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The risks are busy backgrounds, poor text contrast, mobile cropping and large file sizes. Select a photograph with deliberate negative space rather than adding an overlay after the fact.

Product-focused hero

The product is the main visual, usually against a simple background or in a carefully staged setting. This is common for ecommerce, hardware, beauty, wellness and product launches.

A product shown in use can communicate more than an isolated cutout, but the product must not compete with the headline or duplicate the product gallery without adding context.

Split-screen hero

One column contains the message and call to action while the other contains the image. This gives the copy a predictable, separate reading area and usually reduces contrast problems.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

On mobile, the columns may stack. Test whether the visual or the message should appear first, and watch for excessive whitespace or cramped text.

Illustration or abstract graphic

Illustrations, diagrams, 3D renders and abstract compositions are useful for software, education, finance and technical products. They can communicate an idea without implying a literal scene.

Abstract imagery should not become an attractive substitute for explaining the offer. Complex diagrams and detailed information generally belong in the page content rather than the hero.

Interface or product-demo hero

A screenshot or UI mockup can help visitors understand a SaaS product, app, dashboard or developer tool. Keep in mind that tiny interface text often becomes unreadable, and screenshots can become outdated.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Video or animated hero

Motion can show a process, product interaction or atmosphere, but it costs more data and can distract from the page’s message. Provide a poster image and a useful fallback. Support pause controls where necessary, respect reduced-motion preferences, and avoid making autoplaying motion the only way to understand the page.

Hero image examples by website type

Ecommerce product launch

Use a product-in-use photograph rather than an isolated cutout when the use case matters. Pair it with a specific launch or benefit-focused headline and one primary action such as “Shop now” or “Explore the collection.” Position the product away from the text area and prepare a tighter or portrait crop for mobile.

SaaS landing page

Show the interface, workflow or outcome the software enables. A split layout is often preferable to a full-bleed background because the interface remains separate from the headline and call to action. Keep the headline focused on the customer’s result, not a list of features.

Service business

Show the service being delivered or the result a customer wants. A cleaning company might show a credible finished space; a painter might show a carefully finished room or a professional at work. Pair the image with the audience, service and next step: booking, requesting a quote or arranging a consultation.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

A generic handshake photograph may look polished but often does little to distinguish the business.

Nonprofit or public-service website

Use an authentic and respectful representation of the mission. Keep the headline and call to action in HTML, and make the image support rather than replace the surrounding context. Donation, volunteer, access-service and learn-more actions should remain obvious.

Hero areas are usually better for mood and orientation than for charts, maps or detailed diagrams. The NSF advises against using hero components for visuals whose fine detail is essential (NSF hero-image guidance).

Portfolio or creative agency

Use a representative project or a distinctive visual point of view, then explain the specialization in a concise headline. A visually impressive project is not enough if visitors cannot tell what the agency does or where to see relevant case studies.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

What makes a hero image effective?

1. Relevance comes before beauty

The image should help answer what the page offers. A generic scenic photograph may be attractive but provide little information. Choose an image that supports the headline, audience and desired action.

2. Composition leaves room for the message

Plan the location of the headline and CTA before approving the asset. Negative space may be on the left, right, top or bottom; it does not have to be empty, but it must remain calm enough for text to be read.

3. Visual hierarchy is clear

The image should direct attention toward the subject, headline or CTA rather than competing with all three. Avoid combining a highly detailed photograph, a large headline, several buttons and multiple promotional messages in the same area.

4. Contrast survives every breakpoint

Text over an image must remain readable on desktop, tablet and mobile crops. The American Chemical Society recommends checking overlay text and contrast in both desktop and mobile views (ACS hero guidance).

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Use a text panel, gradient, solid overlay, separate text column or different asset when necessary. An overlay should improve a suitable image, not rescue an unsuitable one.

5. The design is restrained

Decide what visitors should do next before selecting the image. One clearly primary CTA is usually stronger than several equally prominent actions. A secondary link can exist, but it should not compete with the main action.

6. The layout does not demand full-screen height

A hero does not need to fill the viewport. Excessive height can hide the next useful section, delay access to information and create awkward scrolling on mobile. Choose the height according to the page’s task and content hierarchy.

7. The image is credible

Original photography, product imagery and distinctive illustration can communicate more specifically than familiar stock scenes. Stock photography is not automatically ineffective; the important questions are whether it fits, feels credible, is properly licensed and accurately represents the business.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Keep important content separate from the image

Place the main headline, supporting copy, price, offer and CTA in HTML whenever possible. Text baked into an image can become unreadable when cropped, cannot be easily translated or updated, and may be inaccessible to people using screen readers or text enlargement.

<section class="hero">
  <img
    src="hero-large.jpg"
    srcset="
      hero-small.jpg 640w,
      hero-medium.jpg 1024w,
      hero-large.jpg 1600w
    "
    sizes="100vw"
    width="1600"
    height="900"
    alt="Chef preparing fresh pasta in a restaurant kitchen"
  >

  <div class="hero__content">
    <h1>Fresh pasta, made daily</h1>
    <p>Reserve a table for handmade Italian dishes.</p>
    <a href="/reservations">Book a table</a>
  </div>
</section>

Adapt the dimensions, layout and alternative text to the actual asset and page purpose.

Make the hero responsive

Do not assume a wide desktop composition will work on a phone. Check a wide desktop view, tablet, portrait mobile, short viewport, zoomed layout and large-text settings.

Use object-position, a split layout, a different crop or a mobile-specific asset when the subject or text area does not survive the change in viewport.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
<picture>
  <source media="(max-width: 700px)" srcset="hero-mobile.webp">
  <img
    src="hero-desktop.webp"
    alt="A cyclist riding along a coastal road at sunrise"
    width="1600"
    height="900"
  >
</picture>

The <picture> element supports art direction when desktop and mobile need materially different images. For ordinary responsive scaling, use srcset and sizes with a fallback src, as described in Google’s image guidance.

Accessibility best practices

Write alt text according to purpose

W3C distinguishes among informative, decorative and functional images (W3C Images Tutorial):

  • Informative: describe the essential information the image contributes.
  • Decorative: use alt="" so assistive technology can skip it.
  • Functional: describe the action or destination, not just the image’s appearance.
<!-- Informative -->
<img src="hero.jpg" alt="A family cooking together in a bright kitchen">

<!-- Decorative -->
<img src="abstract-shapes.svg" alt="">

<!-- Functional -->
<a href="/shop">
  <img src="sale-badge.svg" alt="Shop the summer collection">
</a>

Do not use alt="hero image" by default. That identifies the component type rather than communicating meaning. Google recommends useful, context-rich alt text and warns against keyword stuffing (Google’s image SEO guidance).

Keep essential words out of the artwork

If a price, instruction, offer or headline exists only inside the image, it may disappear when images fail, text is enlarged or the crop changes. Put essential content in HTML.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Check interaction, zoom and motion

Test keyboard focus order, visible focus, 200% zoom, narrow widths and forced-colors or high-contrast modes where relevant. For animated heroes, support reduced-motion preferences and ensure the CTA remains usable without motion.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Performance and technical implementation

Understand the LCP risk

Largest Contentful Paint measures when the largest visible content element renders. On many pages, that is the hero image, but it can also be a headline, video poster or another large element. Google recommends an LCP of 2.5 seconds or less for a good experience (Google Core Web Vitals; web.dev’s LCP explanation).

Serve responsive image sizes

Use multiple widths with srcset, describe the rendered width with sizes, and use <picture> when art direction or different sources are required. Export only the dimensions needed, compress the asset, remove unnecessary metadata where appropriate, and avoid sending a huge original that is merely resized with CSS.

<img
  src="hero-1200.jpg"
  srcset="
    hero-640.jpg 640w,
    hero-960.jpg 960w,
    hero-1200.jpg 1200w,
    hero-1600.jpg 1600w
  "
  sizes="100vw"
  width="1600"
  height="900"
  alt="..."
  fetchpriority="high"
>

fetchpriority="high" can help an important image that might otherwise be discovered or prioritized too late. Do not apply it indiscriminately to multiple images.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Do not lazy-load the initial hero by default

If the hero is immediately visible and likely to be the LCP element, avoid loading="lazy". web.dev recommends lazy loading mainly for images below the fold (web.dev responsive-image guidance).

Reserve layout space

Include intrinsic width and height attributes or reserve space with CSS. This reduces content movement while the image loads.

.hero img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

Choose the right implementation

  • Use <img> when the image conveys meaningful content, needs alt text, or is the subject of the page.
  • Use a CSS background when the image is purely decorative and the content remains understandable without it.
  • Use <picture> when desktop and mobile require different crops or sources.

There is no universal file-size limit or format that is always best. The appropriate result depends on dimensions, image complexity, compression, browser support, CDN behavior, network conditions and the rest of the page.

SEO considerations

Alt text is primarily an accessibility feature, but it also helps search engines understand an image. Describe the image in context rather than filling the attribute with repeated keywords.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Use descriptive filenames where practical, such as artisan-coffee-roasting.jpg instead of IMG_4821.jpg. This is useful file hygiene, not a guarantee of rankings.

The image should match the page. Search engines use the image, surrounding text, page content and metadata together. Do not sacrifice loading performance by serving an unnecessarily oversized file for image-search ambitions.

How to choose the right hero image

  1. Define the page promise. Complete this sentence: “After seeing this hero, the visitor should understand that this page helps them…”
  2. Choose the visual job. Decide whether the image shows the product, outcome, atmosphere, person, place, process, concept or next action.
  3. Choose foreground or background treatment. Use a foreground image when its content matters. Use a background when it creates atmosphere behind independently readable HTML content.
  4. Plan the copy placement. Reject images that leave no reliable area for the headline and CTA.
  5. Preview every crop. Test desktop, tablet, mobile portrait, short viewport and large-text layouts.
  6. Check credibility and rights. Confirm ownership or licensing, model and property permissions where relevant, and that the image does not imply unsupported claims.
  7. Measure the real page. Check LCP, CLS, request timing, mobile data use, rendered dimensions, contrast and CTA usability.

Common hero-image mistakes and fixes

Mistake Why it fails Fix
Choosing the image before writing the message The headline becomes vague to fit the picture. Write the page promise and CTA first.
Text disappearing into the photograph Contrast changes across the image and breakpoints. Use a text panel, controlled overlay, separate column or different asset.
Subject cropped on mobile A desktop composition is treated as universal. Use a mobile crop, object-position or a predictable split layout.
Giant uncompressed file The visual delays the page’s main content. Serve responsive dimensions, compress the asset and test on mobile conditions.
Lazy-loading an initial hero The browser may delay an image needed for LCP. Avoid lazy loading when the hero is immediately visible.
Essential words embedded in artwork The copy is inaccessible, hard to update and vulnerable to cropping. Use HTML text and accessible controls.
Misleading alt text on a decorative image Screen-reader users hear irrelevant detail. Use alt="" for purely decorative images.
Too many competing CTAs Visitors cannot identify the important next step. Establish one primary action.
Attractive but irrelevant image The visitor still cannot understand the offer. Prefer contextual relevance over generic beauty.
Carousel hiding the key message Visitors see different offers at different times. Use one focused hero unless multiple slides are necessary.
Using a hero as an information graphic Detailed text and diagrams become difficult to access. Move detailed information into the page content.

Should you use a hero-image carousel?

Usually, a single focused hero is easier to understand, load and optimize. Carousels introduce competing messages, additional images, timing issues, mobile cropping problems and discoverability concerns.

If a carousel is necessary, provide pause controls, keyboard access, touch-friendly controls, a visible slide state and a way to reach every slide without depending on automatic timing. Do not hide the primary offer on a later slide.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Hero image prelaunch checklist

  • Does the image clarify the page’s main promise?
  • Is the headline readable at every tested crop?
  • Is the primary CTA obvious and keyboard accessible?
  • Is essential text in HTML rather than only in the image?
  • Does the image have the correct alt treatment: informative, decorative or functional?
  • Does the subject remain visible on mobile?
  • Are intrinsic dimensions or aspect-ratio space reserved?
  • Is the image appropriately sized and compressed?
  • Is an immediately visible hero free from unnecessary lazy loading?
  • Have LCP, CLS, contrast, zoom, reduced motion and mobile data use been checked?
  • Are licensing, model, property and trademark considerations resolved?

Conclusion

A hero image should make the page’s purpose easier to understand, not make visitors work harder to find it. Choose the visual job first, keep the headline and CTA in HTML, plan for mobile crops, use the correct alt treatment, and deliver only the image size the page needs. A restrained, relevant hero often performs better as communication than a larger, more complicated one.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

More from the Paint Desk

Recommended PC Tool
Recommended PC Tool
Outdated Drivers Are Slowing You DownFree scan - exact matches
Windows Errors? Fix Them Before They SpreadFree repair scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.