The hero image is the first thing visitors see and, on most sites, the largest file the browser downloads before the page feels ready. It needs to look sharp on a 27 inch monitor and a small phone, crop gracefully between them, and load quickly. Getting all three right is mostly about size, format and how the image is placed on the page.

ScreenImage widthTypical shapeTarget file size
Large desktop2560 px16:9 or widerUnder 250 KB
Standard desktop1920 px16:9 or widerUnder 200 KB
Tablet1200 to 1600 px4:3 to 16:9Under 150 KB
Phone800 to 1200 px4:5 to 9:16Under 100 KB

1920 pixels covers most desktop screens. Use 2560 pixels if a significant share of your visitors use large, high resolution displays, and you are serving responsive sizes so phones do not download the large file.

Plan for the mobile crop

A wide desktop hero becomes a narrow, tall area on a phone. If you use the same image with object-fit: cover, the browser crops the sides, and a subject placed off-centre can disappear entirely.

There are two good solutions:

  1. Keep the subject in the centre of a wide image, with plenty of background on both sides that can be cropped.
  2. Use a separate mobile image with a portrait crop of the same scene, served with the HTML picture element or your site builder's responsive image settings.
ApproachBest for
One centred imageSimple scenes, textures, products in the middle
Separate desktop and mobile cropsPeople, products off-centre, detailed scenes

Format and compression

WebP is the best default for hero photos: around 25 to 35 percent smaller than JPG at the same quality, and supported by every current browser. AVIF can be smaller still, if your platform supports it.

VersionTypical file size at 1920 x 1080
JPG, quality 90400 to 700 KB
JPG, quality 80250 to 450 KB
WebP, quality 80150 to 280 KB
AVIF, quality 60100 to 200 KB

Photos with large smooth areas, such as skies or blurred backgrounds, compress very well. Busy scenes full of fine detail compress less, so if a hero is still too large at quality 75 to 80, consider a calmer image or a subtle blur behind your text.

The bulk image compressor resizes and converts hero images in one step. Set the width to 1920 or 2560 and choose WebP. For the mobile version, crop a portrait version first, then resize to around 1080 pixels wide.

Resize and compress hero images1600 px wide, free, runs in your browserOpen tool

Keep text out of the image

It is tempting to design the whole hero, with headline and buttons, as one image. It causes several problems:

  • Text shrinks on phones and becomes unreadable.
  • Search engines cannot read it, so your main headline adds nothing to SEO.
  • It cannot be translated or edited without a designer.
  • The file gets larger, because sharp text compresses poorly.

Place the headline and buttons as real text over the image instead. Add a gradient or a semi-transparent overlay behind the text so it stays readable on any part of the photo.

Loading the hero fast

The hero is usually the Largest Contentful Paint element, so how it loads affects Core Web Vitals directly:

  1. Do not lazy-load it. Lazy loading delays the most important image on the page.
  2. Mark it as high priority, with fetchpriority="high" in HTML or your builder's equivalent.
  3. Prefer an image element over a CSS background, which browsers discover later.
  4. Set width and height, or an aspect ratio, so the layout does not shift as it loads.

Hero images in Webflow

Webflow generates responsive image variants automatically for images added as image elements. To get the best result:

StepWhat to do
UploadA compressed 1920 to 2560 px WebP or JPG
ElementUse an Image element rather than a section background where possible
LoadingSet the hero image to Eager loading in the element settings
MobileUse a different image or object position at smaller breakpoints

Background images set on a section in Webflow are not served as responsive variants in the same way, so phones can download the full desktop file. If your hero uses a background, upload a well-compressed image and set a smaller image at the mobile breakpoint.

Hero images in Framer

Framer optimises uploaded images and serves suitable sizes automatically. Upload a high quality source around 2000 to 2500 pixels wide, set the image to fill its frame, and adjust the focal position so the subject stays visible on smaller breakpoints. Use a separate image for the phone breakpoint when the composition needs a different crop. Framer's own optimisation works best when the source is already reasonably sized, which also keeps your project file lighter.

Common hero image mistakes

MistakeResultFix
A 5 MB photo straight from a cameraSlow first view, poor LCPResize to 1920 px and convert to WebP
Subject placed at the far left or rightCut off on phonesCentre the subject or add a mobile crop
Headline baked into the imageUnreadable on phones, invisible to GoogleReal text over the image
Autoplaying slider of large imagesSeveral heavy downloads before the page settlesOne strong hero image
No overlay behind textText hard to read on parts of the photoGradient or tint behind the text

When to use video instead

A short, silent background video can work well for a hero, but it is much heavier than an image. If you use one, provide a well-compressed poster image that appears immediately, keep the video short and muted, and show only the poster on phones and slow connections. The poster then acts as the hero for most visitors, so prepare it exactly as you would a hero image. Use the JPG to WebP converter to make it light.

A hero image checklist

  1. Desktop version 1920 to 2560 pixels wide, under about 200 KB as WebP.
  2. Mobile version, or a centred subject that survives the crop.
  3. Headline and buttons as real text, with an overlay for contrast.
  4. Not lazy-loaded, high priority, with dimensions set.
  5. Tested on a phone, a laptop and a large monitor.

A hero prepared this way looks intentional on every screen, loads quickly enough to help rather than hurt your Core Web Vitals, and keeps your key message readable for every visitor.

Frequently asked questions

What size should a hero image be?

Between 1920 and 2560 pixels wide for full-width desktop heroes. Use a separate, narrower crop for phones, around 800 to 1200 pixels wide.

How big should a hero image file be?

Under about 200 KB for most sites. Saved as WebP at quality 75 to 82, a 1920 pixel hero usually fits comfortably.

Should I put text in a hero image?

It is better to place text as real HTML over the image. Text inside an image becomes too small on phones, cannot be translated or indexed, and makes the file larger.

Should the hero image be lazy-loaded?

No. The hero is usually the Largest Contentful Paint element. Lazy loading delays it. Mark it as high priority instead.