Runs in your browser · nothing uploaded

Compress Hero and Banner Images

The big image at the top of your homepage is often the heaviest file on the whole site, and it's the first thing visitors wait for. Resize and convert it here so it fills wide screens beautifully without making people stare at an empty header.

Why the hero image deserves special care

A full-width hero usually sits above the fold, so it's frequently the largest element the browser paints when the page first loads. That makes it the usual candidate for Largest Contentful Paint, the Core Web Vitals metric Google uses to judge loading speed. A 5 MB hero can delay that moment by seconds on a phone connection, while a well-compressed one often lands in the low hundreds of kilobytes.

Hero images are also forgiving: they're often covered by text overlays, gradients or a dark tint, which hides minor compression artifacts. That means you can usually compress them harder than product photos.

Recommended hero settings

Use WebP for the smallest file. Set max width to 1920px, which covers most desktop monitors. Only go to 2560px if your design is meant to look sharp on large high-density displays and you've confirmed the extra weight is acceptable. Start at 75% quality and lower it to around 65% if the image sits behind a text overlay; watch the preview for banding in skies and soft gradients, which is the first artifact to appear. For mobile layouts, consider exporting a second version at 1024px and serving it with responsive image markup.

Questions

What is the best size for a website hero image?

1920 pixels wide covers the vast majority of desktop screens. Height depends on your design; many heroes are around 600 to 1080 pixels tall. Exporting at 1920px wide in WebP at around 70–75% quality is a strong starting point for most sites.

Why does my hero image look banded after compression?

Smooth gradients like skies and studio backdrops show compression first as visible stripes. Raise the quality a few points until the banding disappears, or add subtle texture or an overlay in your design, which hides it.

Should hero images be WebP or JPG?

WebP is usually noticeably smaller at the same visual quality and works in all current major browsers. Use JPG only if your website builder rejects WebP uploads or you must support very old browsers.

Want a website that loads in under a second? We build them from $299.

See web development

More ways to use the Image Compressor