Best website hero image size for a fast LCP (with a KB table)
A hero image that is the wrong size is the most common reason a homepage feels slow. Here are the pixel dimensions, file-size targets and formats that keep a hero sharp on a 4K monitor and quick on a budget phone, with a Hyderabad real-estate site as the worked example.
· 5 min read · 852 views · by the Cortex Digital Hub team
Export your hero at 1920 pixels wide, drop it here and set the target to 200 KB. Compare the result side by side, then download the WebP or JPG your site needs. Free · runs on your device
Compress the image → → Opens Image Compressor · runs in your browser
The hero is the first thing a visitor sees and, on most sites, the biggest file on the page. Get its size right and the page feels instant; get it wrong and every other optimisation is wasted, because the browser is still pulling down a 2 MB photo while the visitor reaches for the back button. This guide covers pixel dimensions, file-size targets, format choice and what LCP means in plain words, with a Hyderabad real-estate project site as the running example.
Pixel dimensions: 1920 wide is enough
A full-width desktop hero does not need to match the largest monitor on sale. At 1920×1080, the image covers a full-HD screen pixel for pixel and still looks sharp on a 2560-wide monitor because the browser scales it up slightly and the eye does not notice on a photo. Going to 3840 wide quadruples the file size for a difference almost nobody can see.
If your layout is contained (the hero sits in a centred column rather than edge to edge), 1600×900 is plenty. Keep the aspect ratio at 16:9 or 2:1; wider than 2.4:1 starts to look like a letterbox on laptops.
Mobile is a different crop, not a smaller copy of the desktop image. A 16:9 image shrunk to a 390-pixel-wide screen becomes a thin strip. A portrait crop of around 1080×1350 (the shape of an Instagram portrait post) fills the screen, keeps the subject large and weighs a third of the desktop file.
File size: stay under 200 KB
The number that decides how fast the hero appears is kilobytes, not pixels. A 1920×1080 photo straight out of a camera or a stock library is typically 1.5 to 3 MB as a JPG. The same image compressed properly is 120 to 180 KB with no visible difference at normal viewing distance.
Set the target before you export. Run the file through the Image Compressor with 200 KB as the target, or use the compress image to 200 KB preset, and compare the before and after at full size. On a photograph, a quality setting around 75 to 80 is where the file shrinks dramatically and the image still looks untouched. Text overlays and logos belong in SVG or PNG and should not be baked into the photo at all.
The mobile crop should come in under 100 KB. A 1080×1350 WebP at quality 75 is usually 60 to 90 KB.
Format: WebP by default, AVIF when you can
For photographs, JPG is the baseline, WebP is the sensible upgrade and AVIF is the smallest of the three. Converting a compressed JPG hero with the JPG to WebP converter typically cuts another 25 to 35 percent at the same visual quality. JPG to AVIF goes further, often 40 to 50 percent smaller than the JPG, but AVIF encoding is slower and a handful of older in-app browsers still do not decode it, so serve it inside a picture element with a WebP or JPG fallback rather than on its own.
Avoid PNG for a photographic hero. A 1920-wide PNG photo is routinely 3 to 5 MB because PNG stores every pixel losslessly, which is the right choice for a logo and the wrong one for a sunset. The JPG vs PNG vs WebP guide covers the trade-offs in more detail.
LCP in plain words
Largest Contentful Paint is one of the three Core Web Vitals, and it is the one your hero controls. It measures the time from the moment the page starts loading until the largest element in the first screen has finished painting. On nearly every marketing site that element is the hero image. Under 2.5 seconds is rated good; over 4 seconds is rated poor, and the rating affects how the page ranks in search as well as how it feels.
The hero's size feeds LCP directly. On a 4G connection delivering about 5 Mbps, a 2 MB hero takes over 3 seconds to download before it can even start decoding. The same hero at 180 KB arrives in under half a second. Nothing else on the page moves the number as much as that one file.
Two smaller things help too. Load the hero with high fetch priority and without lazy loading, so the browser requests it first. And set the width and height attributes on the image tag, so the layout does not jump when the file arrives.
Serve the right file to the right screen
A single image for all devices means the phone downloads desktop pixels it then crops away. The fix is srcset: you export the same image at two or three widths (say 800, 1280 and 1920 pixels), list them in the image tag with their widths, and the browser picks the smallest one that fills the visitor's screen. Pair it with a picture element to swap the portrait crop in for phones. The Image Resizer makes the width variants in a minute, and the compressor handles each one.
| Placement | Pixel size | Format | Target KB |
|---|---|---|---|
| Full-width desktop hero | 1920×1080 | WebP (JPG fallback) | under 200 |
| Contained desktop hero | 1600×900 | WebP (JPG fallback) | under 150 |
| Tablet hero | 1280×720 | WebP | under 120 |
| Mobile hero (portrait crop) | 1080×1350 | WebP | under 100 |
| Logo or text overlay on the hero | any | SVG or PNG | under 30 |
| Open Graph share image | 1200×630 | JPG or PNG | under 300 |
A worked example: a Hyderabad project site
Take a developer launching a gated-villa project in Kokapet. The agency delivers a drone shot of the clubhouse at 6000×4000, 9.4 MB as a JPG. Dropped straight onto the homepage, it gives the site an LCP of nearly 6 seconds on a mid-range phone, which is how most of the leads from the ad campaign will arrive.
The fix takes ten minutes. Crop the drone shot to 16:9 and resize to 1920×1080. Compress to 200 KB; the result is 172 KB and the clubhouse still looks like a brochure. Convert to WebP: 118 KB. Make the mobile crop, a 1080×1350 portrait that keeps the pool and the facade: 71 KB as WebP. Put both in a picture element with the JPG as fallback. LCP on the same phone drops to 1.4 seconds without touching anything else.
Checklist before you publish the hero
Export at 1920 wide for desktop and 1080×1350 for mobile, not larger. Compress to under 200 KB desktop and 100 KB mobile, checking the result at full size. Convert to WebP, with AVIF as a bonus if your build supports fallbacks. Keep logos and text in their own SVG or PNG layer. Load the hero eagerly and set its dimensions in the tag. Every step runs in the browser on your own machine, so the agency's original files never go anywhere.
Frequently asked questions
What is the best size for a website hero image?
For a full-width desktop hero, 1920×1080 pixels covers almost every screen; 1600×900 is fine for sites with a contained layout. Serve a separate mobile crop around 1080×1350 so phones are not downloading desktop pixels they crop away.
How many KB should a hero image be?
Aim for under 200 KB for the desktop version and under 100 KB for the mobile version. A well-compressed 1920-pixel WebP photo lands between 120 and 180 KB with no visible loss.
What does LCP mean?
Largest Contentful Paint is the time from the page starting to load until the largest visible element, usually the hero image, finishes painting. Under 2.5 seconds counts as good, and the hero's file size is the biggest lever you control.
Should I use WebP or AVIF for the hero?
WebP is the safe default: 25 to 35 percent smaller than JPG, supported by every current browser. AVIF is smaller still but encodes slowly and a few older in-app browsers still fall back, so serve it with a WebP or JPG fallback.