There is no single correct pixel size for a website homepage background. Choose an image based on the hero container’s rendered dimensions, the viewports it must support, and the device pixel ratios you intend to serve. If the background uses background-size: cover, it will fill the container by cropping where necessary, so plan the crop as carefully as the resolution.
Why there is no universal homepage background size
A homepage hero might be a short, wide strip on desktop, a tall viewport-filling panel on a phone, or a content-driven area whose height changes with its text. The same source image will be displayed at different sizes and cropped differently in each case. A number such as 1920 × 1080 can be a workable source for a particular design, but it is not an official or universal homepage requirement.
It helps to separate three decisions that are often lumped together as “image size”:
- Rendered dimensions: the width and height, in CSS pixels, of the element displaying the image at a particular viewport.
- Intrinsic dimensions: the pixel width and height of the image file itself.
- File weight: how many bytes the encoded image takes to download. Pixel dimensions and file weight are related, but they are not the same thing.
Start with the rendered area and the crop your design needs. Then choose the source resolution and compression. Making an image much larger does not guarantee a sharper or better-looking result, and making it smaller to save bytes can make it visibly soft on high-density screens.
Do these 3 things before closing this tab:
1Scan for outdated or missing drivers - takes under a minute2Clear out junk files and repair common Windows errors3Fix the driver behind crashes, sound loss and screen glitches#1 Best Overall
- CRISP CLARITY: This 23.8″ Philips V line monitor delivers crisp Full HD 1920x1080 visuals. Enjoy movies, shows and videos with remarkable detail
- INCREDIBLE CONTRAST: The VA panel produces brighter whites and deeper blacks. You get true-to-life images and more gradients with 16.7 million colors
- THE PERFECT VIEW: The 178/178 degree extra wide viewing angle prevents the shifting of colors when viewed from an offset angle, so you always get consistent colors
- WORK SEAMLESSLY: This sleek monitor is virtually bezel-free on three sides, so the screen looks even bigger for the viewer. This minimalistic design also allows for seamless multi-monitor setups that enhance your workflow and boost productivity
- A BETTER READING EXPERIENCE: For busy office workers, EasyRead mode provides a more paper-like experience for when viewing lengthy documents
Measure the hero before exporting an image
Measure the actual background container at the viewport widths that matter for the site. Record its rendered width and height in CSS pixels, and note how its height is determined. A fixed height, a viewport-relative height, and a height driven by headline or button content can produce different image requirements.
Do not assume the image covers the full browser window just because it is on the homepage. It may sit behind a centered content column, fill only the first section, or be constrained by a maximum-width layout. The relevant dimensions are those of the element with the background, not automatically the entire screen.
For each important breakpoint, check:
- The container’s rendered width and height.
- Whether its proportions change substantially between desktop and mobile.
- Where the subject or focal point sits in the source image.
- Whether text, navigation, or calls to action overlay the image and need readable contrast.
A useful resolution starting point is to match the source to the largest rendered dimensions it needs to cover, adjusted for the device pixel ratio (DPR) you choose to support. For example, web.dev’s responsive-image guidance uses a 500 × 500 CSS-pixel display area and a 1000 × 1000 intrinsic image as an example for DPR 2. That is an illustration of the relationship, not a prescribed homepage size. A DPR 3 target would require more source pixels for the same rendered dimensions, but serving that resolution to every visitor may transfer unnecessary bytes.
Choose how the image should fit: cover or contain
Use cover when the region must be filled
background-size: cover preserves the image’s aspect ratio while scaling it until the entire container is covered. If the image and container have different proportions, some of the image is cropped. A wide photograph filling a tall phone viewport may lose a substantial portion of its left and right sides; a tall image filling a wide desktop hero may lose content above or below.
The Tool Desk
Outbyte Driver Updater FREEFix the driver behind crashes, sound loss and screen glitchesFind Drivers →Outbyte PC Repair FREERepair Windows errors before they cause bigger problemsFix Now →Keep essential subjects away from edges that could be cut off, and set background-position to keep the focal point visible. The default centered crop may not be right for a face, product, or other subject positioned off-center. Preview the result at both wide and narrow sizes rather than judging the source file alone.
Rank #2
- CRISP CLARITY: This 22 inch class (21.5″ viewable) Philips V line monitor delivers crisp Full HD 1920x1080 visuals. Enjoy movies, shows and videos with remarkable detail
- 100HZ FAST REFRESH RATE: 100Hz brings your favorite movies and video games to life. Stream, binge, and play effortlessly
- SMOOTH ACTION WITH ADAPTIVE-SYNC: Adaptive-Sync technology ensures fluid action sequences and rapid response time. Every frame will be rendered smoothly with crystal clarity and without stutter
- INCREDIBLE CONTRAST: The VA panel produces brighter whites and deeper blacks. You get true-to-life images and more gradients with 16.7 million colors
- THE PERFECT VIEW: The 178/178 degree extra wide viewing angle prevents the shifting of colors when viewed from an offset angle, so you always get consistent colors
Use contain when the entire image must remain visible
A contain-style fit preserves the complete image rather than cropping it. If the source and container proportions differ, however, it can leave unused space around the image. That may be acceptable for a graphic or a composition where every part must remain visible, but it is often not the intended effect for a full-bleed hero.
Choose based on what the design requires: filling the area or showing the whole image. Do not export a larger file to try to solve a crop problem. A resolution increase cannot change the source aspect ratio; adjust the focal position, choose a different crop, or use a separate composition for that layout.
Decide whether to use one image or responsive candidates
One source file is simpler to manage. It can be a reasonable choice when the container proportions stay similar and the file is not needlessly large. But a single desktop-oriented image may send many more pixels than a small screen needs, and its subject may be poorly composed after a mobile crop.
Recommended Free Tools
Use responsive candidates when they provide a meaningful improvement in image fit or downloaded bytes. For an HTML image, srcset and sizes let the browser select among candidate files. For a CSS background, media queries can select a different background file for a viewport situation. Keep the candidate set manageable: every variant adds work in exporting, testing, and maintaining the site, so add one only when the difference is useful.
For a photographic hero, a desktop and mobile composition can be more useful than several nearly identical sizes if the narrow crop would otherwise cut off the subject. If the same composition works at both sizes, responsive resolution candidates can instead provide a smaller source for smaller displays. The choice depends on the layout and the image, not on a fixed number of variants.
Rank #3
- Clear visuals. Fluid motion: A 144Hz refresh rate and 1ms MPRT deliver smooth, tear‑free motion across work, gaming, and streaming for clearer, more fluid viewing.
- Eye comfort: TÜV Rheinland 3‑star* certification reduces harmful blue light while preserving stunning color quality without compromise. *TÜV Rheinland 3-star eye comfort certification.
- Wide viewing angle: Get consistent views across a wide 178° /178° viewing angle.
- In-Plane Switching (IPS): See excellent color accuracy and consistency across wide viewing angles with In-plane Switching (IPS) technology.
- Ultra-thin bezels: Maximize your viewing experience with thin bezels.
Prepare and compress the image separately from sizing it
After choosing the pixel dimensions and crop, compare output formats and compression at a quality level that still looks acceptable on the rendered page. WebP and AVIF can reduce bytes relative to JPEG or PNG, but there is no universally best format or compression setting for every image and use case.
Photographs generally tolerate lossy compression well. Inspect fine edges, small text, gradients, and high-contrast details closely: these can show artifacts before the rest of a photograph does. If the image itself contains lettering or sharp graphic edges, check that the chosen encoding does not make them look rough. Judge the compressed asset at the size visitors will actually see, not only zoomed in on the original.
Quick wins for a faster PC:
Repair Windows errors before they cause bigger problemsFix Now →Scan for outdated or missing drivers - takes under a minuteDriver Scan →Do not treat pixel dimensions as a substitute for compression, or compression as a substitute for correct dimensions. A needlessly large image can still be expensive after compression; an undersized image can still look blurry even if its file is small.
Implement a responsive CSS background
This example uses a wide image by default and selects a separate mobile crop at a narrow breakpoint. Replace the asset paths with files from your site, and adjust the breakpoint, position, and container height to match your layout. The example uses cover, so the background can crop at intermediate sizes too.
.home-hero {
min-height: 34rem;
background-image: url("/images/home-hero-wide.avif");
background-size: cover;
background-position: center 45%;
}
@media (max-width: 40rem) {
.home-hero {
min-height: 38rem;
background-image: url("/images/home-hero-mobile.avif");
background-position: 58% center;
}
}
Choose the focal position by checking the actual crop in the browser. A position such as 58% center is only an example; it is not a recommended setting for every image. If a breakpoint-specific image is unnecessary, omit the media query and use a single source, but verify that the crop remains acceptable across the widths your design supports.
Rank #4
- CURVED FOR ENHANCED ENGAGEMENT: An immersive viewing experience with a curved monitor that wraps more closely around your field of vision; It creates a wider view, enhancing depth perception and minimizing peripheral distraction
- SMOOTH PERFORMANCE FOR SEAMLESS CONTENT: Stay in the action when playing games, watching videos, or working on creative projects; The 100Hz refresh rate reduces lag and motion blur so you don't miss a thing in fast-paced moments¹
- MORE GAMING POWER: Gain the edge with optimizable game settings; Color and image contrast can be adjusted to see scenes more vividly and spot enemies hiding in the dark; Game Mode adjusts any game to fill the screen so you can view every detail²
- KEEP IT EASY ON THE EYES: Care for your eyes and stay comfortable, even during long sessions; Advanced eye comfort technology certified by TÜV reduces eye strain by minimizing blue light and reducing irritating screen flicker²
- INCREASED VERSATILITY: Connect to more; Plug devices straight into your monitor for increased flexibility, making your computing environment even more convenient
Consider an image element when the image has meaning
A CSS background is useful for decorative or layered presentation. If the image communicates content that should be available as an image in the page’s normal content flow, use an HTML image element instead and provide an appropriate text alternative. An image element can use srcset and sizes for responsive candidate selection. The choice is semantic as well as visual: do not hide meaningful content in a background merely to get a full-bleed effect.
For an above-the-fold hero, make sure the key image is not deferred as a lazy-loaded image. It is a priority resource because it appears immediately. A CSS background referenced from an external stylesheet may be discovered later than an image in HTML; for a critical background, a preload can help it become discoverable sooner. Use high loading priority sparingly and verify the rendered page rather than assuming a preload is beneficial.
Check the result at real viewport sizes
Review the page, not only the exported file. A background can look correct in an image editor and still crop the subject, conflict with overlaid text, or download more image data than a smaller layout needs.
- Open the homepage at the principal desktop and mobile widths used by the design.
- Check the hero’s displayed width and height, then inspect the subject’s position and any text over the background.
- Resize through intermediate widths to catch awkward crops between declared breakpoints.
- Check image sharpness at the target display size and on a high-density display if available.
- Inspect the page’s loading behavior and confirm the above-the-fold image is not lazy-loaded.
- Compare the downloaded asset size and visual quality after compression; revise the image or candidate set if the result is unnecessarily heavy or visibly degraded.
If the layout varies significantly across widths, repeat the crop check after changing the page content or container sizing. A heading wrapping onto an extra line can change a content-driven hero height and therefore its background crop.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Or skip the browser setup
To capture the rendered page at a URL and inspect the crop, use ScreenshotNeo, a website screenshot API and MCP server. Here is a one-call cURL example; replace the target URL and API key with your own values:
Best Value
- 【INTEGRATED SPEAKERS】Whether you're at work or in the midst of an intense gaming session, our built-in speakers provide rich and seamless audio, all while keeping your desk clutter-free.
- 【EASY ON THE EYES】 Protect your eyes and enhance your comfort with Blue-Light Shift technology. This feature reduces harmful blue light emissions from your screen, helping to alleviate eye strain during long hours of use and promoting healthier viewing habits.
- 【WIDEN YOUR PERSPECTIVE】Our sleek minimal bezel design ensures undivided attention. The nearly bezel-free display seamlessly connects in a dual monitor arrangement, delivering an unobstructed view that lets you focus on more at once, completely distraction-free.
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://example.com -o homepage.webp
See the ScreenshotNeo API documentation for request options. It accepts cookie and consent banners like a visitor and removes more than 60 known consent platforms, newsletter popups, and chat widgets before capture; each of those steps can be turned off. Bot checks, blank pages, timeouts, failed loads, and cache hits are not billed, and response headers report the page verdict and billing status. Its MCP server offers take_screenshot, get_page_info, and capture_pdf for Claude, Cursor, and other MCP clients. The free plan includes 1,000 screenshots per month with no card; paid plans start at $5 for 3,000 shots.
Sign up for ScreenshotNeo’s free plan to capture up to 1,000 screenshots a month without a card.
Troubleshooting common sizing problems
The subject disappears on mobile
The container’s aspect ratio has changed, so cover is cropping more from the sides or top and bottom. Adjust background-position to move the focal area into view, or supply a mobile-specific crop through a media query. If the design requires the entire source to remain visible, use a contain-style fit and accept that the container may not be filled.
The hero looks blurry on a high-density screen
Compare the rendered CSS dimensions with the source’s intrinsic pixel dimensions and the target DPR. A source that is adequate at DPR 1 may not provide enough pixels for a denser display. Choose a higher-resolution candidate where needed, or let responsive image selection serve an appropriate file instead of increasing every visitor’s download.
Outdated Drivers Are Slowing You Down
One free scan finds every outdated or missing driver and matches the right update for your exact hardware.Free scan · exact hardware matchWindows Errors? Fix Them Before They Spread
Repair common Windows errors and clear accumulated junk for a smoother, more stable PC - no reinstall needed.Free scan · no reinstallThe page downloads an unnecessarily large background
Check whether a smaller candidate can serve the actual rendered area, especially on narrow viewports. For CSS backgrounds, use media queries where they meaningfully reduce the asset or improve the crop. Also inspect compression and format: a correctly sized image may still be larger than necessary.
The hero appears late despite being at the top of the page
Confirm it is not lazy-loaded. If a critical background is referenced only in CSS, consider preloading it so the browser can discover it earlier. Do not add high-priority hints indiscriminately; verify whether the particular page’s loading behavior improves.
The crop changes unexpectedly after a content edit
Check whether the hero height is content-driven. A longer title or changed button wrapping can alter the container proportions, which changes the crop under cover. Retest the relevant viewport sizes after content and layout changes.
Quick Recap
A practical decision checklist
- Measure the actual hero container at key viewport sizes.
- Decide whether the whole image must be visible or the region must be filled.
- For a cover crop, protect the focal point with composition and positioning.
- Match intrinsic resolution to rendered size and the DPR you choose to support.
- Use responsive candidates or separate crops only when they produce a meaningful benefit.
- Compare image formats and compression visually, then review the live page and loading behavior.
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

