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.
Recommended hero image sizes
| Screen | Image width | Typical shape | Target file size |
|---|---|---|---|
| Large desktop | 2560 px | 16:9 or wider | Under 250 KB |
| Standard desktop | 1920 px | 16:9 or wider | Under 200 KB |
| Tablet | 1200 to 1600 px | 4:3 to 16:9 | Under 150 KB |
| Phone | 800 to 1200 px | 4:5 to 9:16 | Under 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:
- Keep the subject in the centre of a wide image, with plenty of background on both sides that can be cropped.
- 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.
| Approach | Best for |
|---|---|
| One centred image | Simple scenes, textures, products in the middle |
| Separate desktop and mobile crops | People, 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.
| Version | Typical file size at 1920 x 1080 |
|---|---|
| JPG, quality 90 | 400 to 700 KB |
| JPG, quality 80 | 250 to 450 KB |
| WebP, quality 80 | 150 to 280 KB |
| AVIF, quality 60 | 100 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 toolKeep 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:
- Do not lazy-load it. Lazy loading delays the most important image on the page.
- Mark it as high priority, with
fetchpriority="high"in HTML or your builder's equivalent. - Prefer an image element over a CSS background, which browsers discover later.
- 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:
| Step | What to do |
|---|---|
| Upload | A compressed 1920 to 2560 px WebP or JPG |
| Element | Use an Image element rather than a section background where possible |
| Loading | Set the hero image to Eager loading in the element settings |
| Mobile | Use 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
| Mistake | Result | Fix |
|---|---|---|
| A 5 MB photo straight from a camera | Slow first view, poor LCP | Resize to 1920 px and convert to WebP |
| Subject placed at the far left or right | Cut off on phones | Centre the subject or add a mobile crop |
| Headline baked into the image | Unreadable on phones, invisible to Google | Real text over the image |
| Autoplaying slider of large images | Several heavy downloads before the page settles | One strong hero image |
| No overlay behind text | Text hard to read on parts of the photo | Gradient 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
- Desktop version 1920 to 2560 pixels wide, under about 200 KB as WebP.
- Mobile version, or a centred subject that survives the crop.
- Headline and buttons as real text, with an overlay for contrast.
- Not lazy-loaded, high priority, with dimensions set.
- 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.







