Designing Website Hero Images
How to create a large banner image for the top of a website with a cutout, room for headlines, and sizes that look good on phones and desktops.
The hero image is the big visual at the top of a homepage. It sets the mood and supports the headline, and it needs to look good on everything from a phone to a wide desktop screen.
Use cutouts for flexibility
A cutout of a product, person or mascot can be placed on a background colour or gradient, and moved around for different screen sizes. On desktop, the subject sits to one side with the headline beside it; on a phone, it can sit below the headline. A fixed photo is much harder to adapt.
Leave room for the headline
Text needs a calm area to sit on. Plan negative space in the design rather than placing text over a busy photo. See using negative space.
Mind the crop
Wide desktop banners get cropped on tall phone screens. Keep the subject and essentials in the centre, or provide a separate image for mobile.
Keep it fast
Hero images are often the largest element on a page, and how quickly they load affects both visitors and search rankings.
- Export at the size actually displayed, with a larger version for high-density screens.
- Use modern formats like WebP where possible. See what is WebP?
- Compress carefully, checking for visible artefacts.
Think about contrast
Headline text must contrast with what's behind it. Test both light and dark modes if your site supports them. See accessible images.
Show the real thing
Visitors trust real products, real people and real places more than generic stock imagery. A cutout of your actual product on a well-designed background beats a vague stock photo.
Keep it consistent with the brand
Use brand colours behind cutouts. See using brand colours as backgrounds.
Add alt text
Describe meaningful hero images for screen readers. If the image is purely decorative, it can have empty alt text so screen readers skip it.