Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

There is no single correct resolution for a website background image. Choose pixels from the background element’s rendered CSS width and height, its aspect ratio at each responsive breakpoint, and the device pixel ratio (DPR) you intend to support. A practical estimate is CSS pixels × target DPR: a 320 CSS-pixel display at DPR 3 needs about 960 source pixels across. Use the smallest responsive candidate that stays sharp, and provide a different crop when background-size: cover removes important content.

Start with the rendered section, not a preset width

“1920×1080” is a common desktop asset size, but it is not a universal website-background requirement. A hero that is 1,440 CSS pixels wide and 28rem tall has different needs from a full-bleed banner, a card background, or a mobile section that is only 390 CSS pixels wide. The browser scales the source into the element you actually render.

Inspect the element at the breakpoints that matter and record its CSS width, height, and aspect ratio. Include the largest desktop viewport, a typical laptop, a tablet, and the narrowest supported phone. If the section height changes with content, measure its tallest practical state as well as its default state.

  • Rendered width and height: the CSS dimensions of the background container.
  • Aspect ratio: the relationship between source and container determines how much is cropped.
  • DPR: a DPR 2 screen can display twice as many device pixels across one CSS pixel as a DPR 1 screen.
  • Network and device constraints: a huge desktop file can impose an unnecessary mobile download.

Calculate source pixels with DPR

Multiply each rendered CSS dimension by the target DPR:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

source width = rendered CSS width × target DPR
source height = rendered CSS height × target DPR

#1 Best Overall
Sale
Dell 27 Monitor S2725QS, 4K UHD IPS, 120Hz, 5ms, FreeSync Premium
  • Improved ComfortView Plus: Reduces harmful blue light emissions to ≤35%, for all-day comfort without sacrificing color accuracy.
  • Refresh rate: A smooth, tear-free experience with AMD FreeSync Premium (refresh rate up to 120Hz) and an ultra-low 0.03ms response time create a captivating experience for work and play.
  • Vivid colors: Immerse yourself in breathtaking 4K visuals with in-plane switching technology. Enjoy vibrant colors with 99% sRGB. The 1500:1 contrast ratio and HDR readiness deliver excellent depth and detail.
  • Re-engineered sound quality: Enjoy more detailed sound with spacious audio featuring greater output power, deeper frequency response and more decibel range than the previous generation.
  • Ultra-thin bezel: Designed with a sleek, modern aesthetic and an ash white finish, this display features ultra-thin bezels for a refined, minimalist design.

For example, a 1,440 CSS-pixel-wide hero targeting DPR 2 needs approximately 2,880 source pixels across to cover that width at that density. This is arithmetic from the density relationship, not a mandatory preset. A 320 CSS-pixel display at DPR 3 corresponds to 960 device pixels across.

Serving more than roughly 2× density is often unnecessary guidance for ordinary images, but it is not a guarantee for every display or viewing distance. Test the result in the actual design. If a 2× candidate is visually indistinguishable from a 3× candidate, the smaller file is usually the better delivery choice.

Choose a practical candidate set

Instead of one extreme master file, generate a few candidates that match your layout. For a wide hero, that might mean a desktop candidate near the largest rendered width at 1× and 2×, plus a separate mobile asset. The exact pixel dimensions should come from your measurements, not from a universal list.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Situation What to size for Likely strategy
Fixed card or panel Its maximum CSS width and height One or two density candidates
Fluid desktop hero Largest supported container width and hero height Wide candidate, often with a 2× ceiling
Narrow mobile hero Phone CSS dimensions and portrait crop Smaller, possibly art-directed mobile image
Full-page background Viewport coverage at each layout mode Responsive variants; avoid one oversized file for all users

Understand background-size: cover cropping

cover scales the image until the entire container is filled. If the source and container have different aspect ratios, some source pixels are removed. A panoramic source can lose substantial left and right content in a tall phone hero; a portrait source can lose its top and bottom on a wide desktop.

Keep faces, logos, product details, and other critical subjects near the intended focal area rather than at an edge. Then check the crop at every breakpoint. If one composition cannot preserve the subject, make a dedicated crop rather than shrinking the whole image to avoid cropping.

Control the focal point

Use background-position to choose which part remains visible:

Rank #2
Sale
LG 27US500-W Ultrafine Monitor 27-Inch 4K UHD (3840x2160) HDR10 IPS Borderless Design Reader Mode Flicker Safe Switch App HDMI DisplayPort - White
  • 4K UHD with 1000:1 Contrast Ratio - This UltraFine display with a 1000:1 contrast ratio displays deeper blacks and vivid colors in UHD clarity. With wide viewing angles, it gives creative professionals the ability to view and work with highly-detailed, digital imagery.
  • 4K HDR10 DCI-P3 - Explore HDR10 content the way it was meant to be seen with up to 90% DCI-P3 color gamut expression—an elevated color spectrum that brings brilliant color to life.
  • Onscreen Control - You can customize the workspace by splitting the display or adjusting basic monitor options with just a few mouse clicks.
  • Ergonomic Stand - The ergonomic stand makes it easy to flexibly adjust the tilt of the screen in the optimal position for you.
  • What's In The Box - Stand Body, Stand Base, Screws, Power Adapter, HDMI Cable, Quick Start Guide, Registration Card, Warranty.
.hero {
  background-image: url("hero-wide.webp");
  background-size: cover;
  background-position: center center;
}

.hero--top {
  background-position: center top;
}

Positioning can move the crop, but it cannot restore pixels that are outside the source. Treat it as a finishing control after selecting an appropriate aspect ratio.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Serve responsive and density-specific backgrounds

CSS media queries let you avoid sending a wide desktop source to every phone. They also let you select an art-directed crop when the composition changes.

.hero {
  min-height: 28rem;
  background-image: url("hero-small.webp");
  background-position: center;
  background-size: cover;
}

@media (min-width: 60rem) {
  .hero {
    background-image: url("hero-wide.webp");
  }
}

The 60rem breakpoint and filenames are illustrative. Set the breakpoint where your layout actually changes, and create each file for the container shape at that breakpoint.

For density alternatives within a CSS background, use image-set() where your browser-support policy permits:

.banner {
  background-image: image-set(
    url("banner.webp") 1x,
    url("[email protected]") 2x
  );
}

Combine density selection with media-query art direction when mobile needs a different composition. A high-density desktop file does not solve a portrait-crop problem.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Decide whether it should be a background at all

CSS backgrounds are appropriate for decoration: texture, atmosphere, or an image that conveys no required information. If the image communicates a product, person, chart, instruction, or other content, use an HTML <img> instead. You can provide alternative text, responsive image markup, and clearer loading behavior. HTML images generally receive higher loading priority than CSS backgrounds.

Rank #3
Sale
Dell 32 Monitor S3225QS, 4K UHD VA, 120Hz, FreeSync Premium, Eye Comfort
  • Improved ComfortView Plus: Reduces harmful blue light emissions to ≤35%, for all-day comfort without sacrificing color accuracy.
  • Refresh rate: A smooth, tear-free experience with AMD FreeSync Premium (refresh rate up to 120Hz) and an ultra-low 0.03ms response time create a captivating experience for work and play.
  • Vivid colors: Immerse yourself in 4K visuals with a VA panel. Enjoy true-to-life colors with 99% sRGB and 95% DCI-P3 coverage. The 1500:1 contrast ratio and HDR readiness deliver excellent depth and detail.
  • Re-engineered sound quality: Enjoy more detailed sound with spacious audio featuring greater output power, deeper frequency response and more decibel range than the previous generation.
  • Ultra-thin bezel: Designed with a sleek, modern aesthetic and an ash white finish, this display features ultra-thin bezels for a refined, minimalist design.

For meaningful artwork, a typical responsive pattern is:

<picture>
  <source media="(max-width: 59.99rem)" srcset="hero-mobile.webp">
  <img src="hero-wide.webp" alt="Description of the scene or subject">
</picture>

Do not put essential text only inside a background bitmap. Keep text as HTML so it remains accessible, selectable, and adaptable.

Optimize bytes after pixels and crops are correct

First settle the required dimensions and composition; then compress. Select a format and quality level according to the image content and the visual tolerance of the page. Photographic scenes, gradients, illustrations, and transparency have different compression behavior. Compare the encoded file in the real section, not in an image editor alone.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  • Export only the largest dimensions a supported layout needs.
  • Provide a smaller candidate for narrow screens when the desktop source would be wasteful.
  • Lazy-load below-the-fold decorative backgrounds where your implementation supports it, while keeping a critical hero from delaying the first view.
  • Inspect transferred bytes on a throttled mobile connection.
  • Do not rely on an arbitrary universal kilobyte limit; the appropriate size depends on dimensions, content, format, and quality.

A repeatable sizing workflow

  1. Map the layout: identify every element using the background and record CSS width, height, and breakpoint behavior.
  2. Classify the image: use CSS for decoration; switch to an HTML image when the visual carries information.
  3. Calculate density dimensions: multiply measured CSS dimensions by the target DPR, usually beginning with 1× and 2× candidates.
  4. Check aspect ratios: preview cover at wide, medium, and narrow viewports and mark any cropped subject.
  5. Art-direct where needed: create a mobile crop or another breakpoint-specific composition when positioning alone cannot work.
  6. Implement selection: use media queries, image-set(), or responsive HTML image markup.
  7. Compress and verify: compare quality, file bytes, and loading behavior on the actual page.
  8. Recheck after redesigns: a changed hero height or grid width changes the correct source dimensions.

Common mistakes and their fixes

Using a “standard” 1920-pixel background everywhere

Cause: the asset was chosen before the container was measured. Fix: calculate from the largest rendered CSS dimensions and provide smaller responsive candidates.

The phone view cuts off the subject

Cause: cover is cropping an incompatible aspect ratio. Fix: reposition the focal point or create a portrait-oriented mobile crop.

The image looks soft on high-density screens

Cause: the source has too few device pixels for its CSS display size. Fix: supply a candidate calculated for the target DPR, then verify that the extra pixels produce visible benefit.

Rank #4
Samsung 27" Odyssey G5 (G51F) Series QHD (1440P) Gaming Monitor
  • QHD Resolution (2560 x 1440) has 1.7 times the pixel density of Full HD for incredibly detailed pinsharp images
  • HDR10 provides brighter highlights and nuanced shadow for added depth - making every scene feel more vivid and realistic
  • The 180Hz refresh rate minimizes lag for gameplay with ultra-smooth action. Plus, the 1ms response time helps capture your moves in real-time, allowing you to react fast for gaming precision
  • AMD FreeSync reduces choppiness, screen lag and image tearing, ensuring that your fast-paced, complex in-game action is stable with minimal stutter
  • Ergonomic stand allows for tilt, pivot and height adjustments to maximize gaming comfort

Mobile users download the desktop file

Cause: one CSS URL is used at every breakpoint. Fix: select a smaller mobile source with a media query or use responsive HTML image markup when the image is meaningful.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Important information disappears for assistive technology

Cause: content was embedded in a decorative background. Fix: move it into HTML and provide useful alternative text.

The page feels slow despite a compressed file

Cause: the image is still oversized for the rendered area, is requested too early, or competes with more important resources. Fix: reduce candidate dimensions, defer noncritical backgrounds, and inspect the request waterfall on a representative mobile connection.

Test the result before publishing

  • Resize the viewport through every CSS breakpoint, not just desktop and one phone preset.
  • Check DPR 1, 2, and 3 simulations where your audience warrants them.
  • Verify the focal subject remains visible with cover.
  • Look for visible softness, ringing, banding, and compression artifacts at the final display size.
  • Confirm that CSS text remains readable over the image and that contrast survives the crop.
  • Measure transferred bytes and load timing on a throttled connection.
  • Confirm that a decorative background is not being used as a substitute for alternative text.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Or skip the browser setup

If you need rendered screenshots to inspect background crops across URLs, ScreenshotNeo provides a website screenshot API and MCP server. It accepts consent banners before capture, removes more than 60 known consent platforms plus newsletter popups and chat widgets, and bills only clean shots. Bot checks, CAPTCHAs, blank pages, timeouts, failed loads, and cache hits are not billed, with the result identified by X-Page-Verdict and X-Billed headers.

One GET request returns PNG, JPEG, WebP, or a PDF. The API supports full-page and CSS-selector captures, device presets and custom viewports, retina scale, dark mode, lazy-image loading, custom CSS and JavaScript, click and wait actions, request blocking, headers, cookies, user agents, authorization, timezone and geolocation, transparent backgrounds, resizing, cache TTLs, signed links, asynchronous webhooks, bulk capture of up to 100 URLs per call, usage reporting, and an OpenAPI specification. Its parameter names are compatible with those used by other screenshot APIs.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Use the ScreenshotNeo documentation for the complete option list. A basic cURL capture is:

curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp

Python:

import requests
r = requests.get("https://api.screenshotneo.com/v1/shot", params={"access_key": "YOUR_API_KEY", "url": "https://stripe.com"}, timeout=90)
open("shot.webp", "wb").write(r.content)

Node.js:

const q = new URLSearchParams({ access_key: 'YOUR_API_KEY', url: 'https://stripe.com' });
const res = await fetch(`https://api.screenshotneo.com/v1/shot?${q}`);

The Free plan includes 1,000 screenshots per month with no card. Paid plans start at $5 for 3,000 screenshots; every feature is included on every plan, and yearly billing provides two months free. Create a free ScreenshotNeo account to capture your pages without adding a card.

Best Value
Sale
Dell 27 Monitor S2725QC, 4K UHD IPS, 120Hz, 99% sRGB, 4ms, FreeSync Premium
  • Low blue light: The improved ComfortView Plus reduces harmful blue light emissions to ≤35%, for all-day comfort without sacrificing color accuracy.
  • Refresh rate: A smooth, tear-free experience with AMD FreeSync Premium (refresh rate up to 120Hz) and an ultra-low 0.03ms response time create a captivating experience for work and play.
  • Vivid colors: Immerse yourself in breathtaking 4K visuals with in-plane switching technology. Enjoy vibrant colors with 99% sRGB. The 1500:1 contrast ratio and HDR readiness deliver excellent depth and detail.
  • Re-engineered sound quality: Enjoy more detailed sound with spacious audio featuring greater output power, deeper frequency response and more decibel range than the previous generation.
  • Easy connectivity: Keep your desk organized and clutter-free with a single USB-C cable (up to 65W power delivery).

FAQ

Is 1920×1080 always enough?

No. It may be excessive for a small panel and insufficient for a very wide or high-density section. Measure the rendered container and multiply by the target DPR.

Should I export at 3× for every phone?

Not automatically. A 3× source can add bytes without visible improvement. Start with the density your design and audience justify, compare the result, and keep the smallest candidate that looks sharp.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Can I prevent all cropping with cover?

No. cover guarantees that the container is filled, not that every source pixel remains visible. Use a compatible crop, a different position, or a separate asset.

Frequently Asked Questions

Does a background image need to match the monitor’s physical resolution?

No. CSS layout dimensions and device pixel ratio determine the useful source dimensions; the monitor’s marketing resolution alone does not.

When is a CSS background preferable to an HTML image?

Use a CSS background for decoration. Use an HTML image when the visual conveys information, needs alternative text, or benefits from responsive image markup.

What should I change after a redesign?

Re-measure the background container at each breakpoint, recalculate density dimensions, and recheck the crop and transferred bytes.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

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.