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

There is no single aspect ratio that works for every website header. Choose a ratio that matches the header’s visible container at the screen sizes you support, then decide whether the image should crop to fill that container or remain entirely visible. For a full-width hero, 16:9 is a reasonable starting point—not a universal rule. The U.S. National Science Foundation (NSF), for example, recommends a 1920 × 1080-pixel hero image for high quality on large monitors and also lists 1366 × 768 pixels as a lower-detail option. Those are NSF specifications for its own guidance, not a standard every site must follow.

Start with the shape of the displayed header

The relevant ratio is the ratio of the box your visitor sees, not just the dimensions of the file you upload. A source image can be 16:9 while the design displays it in a much wider, shorter banner, or in a tall mobile hero. If the box and image have different shapes, the browser must either crop the image, leave unused space, or distort it. Distortion is generally the outcome to avoid.

First find out how the header is actually rendered at desktop and mobile widths. Measure or inspect its displayed width and height, including any fixed height or maximum-height rules. A full-width image with an automatic height retains its source proportions; a hero with a deliberately constrained height has its own box ratio, which may change at breakpoints.

Use a component specification when one exists

If your site uses a design system or a content-management component with documented image requirements, start there. The NSF’s author guidance calls a hero image “principally a wide format” and identifies 1920 × 1080 pixels (16:9) as its preferred full-size image, with 1366 × 768 pixels (also 16:9) as a lower-detail alternative. Its stated minimum ratio of 1.7:1 is NSF-specific guidance, not a general web requirement. Another component library may prescribe a different shape.

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

If no specification exists, treat 16:9 as a starting point

For a conventional full-width hero, 16:9 is a useful first composition to test. It is not automatically the right final crop: a short, wide display area will trim the top and bottom when filled, while a narrow screen may trim the sides. Build and test the actual component before committing to a single image export.

#1 Best Overall
Sale
Philips 24 Inch Computer Monitor FHD 100Hz VA VESA Flicker-Free, 241V8LB
  • 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

Choose between a natural image and a fixed-ratio hero

There are two common approaches, and they solve different layout problems:

  • Preserve the image’s natural proportions. Let its height follow its width. This keeps the full image visible without cropping but means the header height changes with screen width.
  • Set the container’s dimensions or aspect ratio intentionally. This gives you more predictable control over the hero’s height, but the image may need cropping or may not fill the box.

Use a fixed-ratio box when the design depends on consistent hero height or when text and other components must line up predictably. Use natural proportions when showing the entire image matters more than maintaining a particular header height. Avoid choosing dimensions solely because they match a popular image size: the visible result should work with the site’s layout and content.

Rank #2
Philips 22 Inch Computer Monitor FHD 100Hz VA VESA Flicker-Free, 221V8LB
  • 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

Decide how the image should fit

For an image displayed inside a fixed-size box, CSS object-fit determines what happens when the image and box do not share the same ratio.

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

Use cover when filling the box matters most

object-fit: cover scales an image until the box is filled, cropping the parts that extend beyond its edges. This is often suitable for decorative hero photography, provided the subject remains visible after the crop.

Rank #3
Sale
Dell 24 Monitor - SE2426H - 23.8-inch FHD (1920x1080) 144Hz 1ms Display, in-Plane Switching (IPS) Technology, AMD FreeSync™, TÜV 3-Star 2X HDMI, Tilt
  • 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.
.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

object-position changes which part of the image stays in view. If a person or product is off center, shift the crop toward that focal point rather than assuming a centered crop will work. Check the result at each important layout width; the same position can work on desktop and fail on mobile.

Use contain when the entire image must remain visible

object-fit: contain scales the whole image to fit inside the box without cropping. When the ratios differ, empty space can remain around it. This is preferable when all the image’s content must be visible, but the surrounding space should be an intentional part of the design rather than an unexpected band that makes the header look broken.

Rank #4
Samsung 27" Essential S3 (S36GD) Series FHD 1800R Curved Computer Monitor
  • 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

Do not stretch an image to force a match

Giving an image an arbitrary width and height without preserving its proportions can make people, products and shapes look unnaturally wide or tall. If the box must keep a particular shape, choose an appropriate crop or use a source image composed for it.

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

Plan a separate mobile composition when necessary

A wide desktop image does not necessarily make a good narrow-screen image. On a phone, a centered crop can discard subjects near either edge. Conversely, a tall mobile header can take up too much of the available screen and push the page’s useful content down.

Best Value
Sale
Sceptre New 22-Inch Gaming Monitor, FHD 1080p, Up to 144Hz, HDMI, DisplayPort, Built-in Speakers, Machine Black (E225W-FW144 Series, 2026)
  • 【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.

Check the smallest screen width you intend to support, along with intermediate sizes where the crop may change. If one source cannot keep the important subject in frame at both ends of the range, provide a distinct mobile composition rather than stretching the desktop image or accepting a damaging crop.

<picture>
  <source
    media="(max-width: 600px)"
    srcset="/images/hero-mobile.webp"
  >
  <img
    src="/images/hero-wide.webp"
    width="1920"
    height="1080"
    alt="A concise description of the image"
  >
</picture>

Replace the example paths, breakpoint and dimensions with the files and layout your site actually uses. The picture element lets the browser select a different composition for a matching media condition; it does not by itself decide how an image fills a fixed-height box. Apply fit and positioning styles if your layout requires them.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Prepare the asset and keep layout stable while it loads

  • Provide enough source detail. The asset needs sufficient resolution for its largest rendered size. The NSF’s 1920 × 1080 recommendation is one organization’s guidance for a high-quality, full-size hero, not a rule for every site or every device.
  • Set dimensions or reserve a ratio. Include width and height attributes where applicable, or reserve the intended space with layout CSS. This helps the browser allocate space before the image loads and reduces content shifting.
  • Use responsive sources where they help. Different display widths may need different source sizes, and significantly different compositions may need different files. Do not serve a needlessly large asset to every small screen.
  • Keep essential copy in HTML. Put the heading and other important text in a separate accessible text layer rather than baking it into the image. Cropping, responsive layouts or an obscuring overlay can hide text that is part of the pixels.
  • Check text contrast and overlap. A hero may place live text over an image, but the combination must remain legible across the crop and at the supported screen sizes. If the background changes under the text, the same overlay treatment may not work everywhere.

A practical workflow for choosing the ratio

  1. Check the component requirements. Look for a CMS field, design-system specification or site guidance that defines image dimensions, ratio or crop behavior.
  2. Measure the rendered box. Record the hero’s width and height on desktop and mobile. For each, calculate width divided by height to understand the box ratio.
  3. Choose natural height or a constrained box. Decide whether the design should preserve the full source image or maintain a consistent hero shape.
  4. Compose around the important subject. Leave crop tolerance around focal content if you plan to use cover. Prepare a separate mobile image if a single crop cannot work at both sizes.
  5. Implement the fit behavior. Use cover to fill with cropping, or contain to preserve the entire image with possible empty space. Set object-position to adjust the focal point.
  6. Test the actual page at narrow and wide widths. Look for cut-off subjects, unintended empty bands, overly tall mobile headers, obscured text and layout movement while the image loads.
  7. Adjust the asset or layout, not just the nominal ratio. If the crop fails, revise the source composition, focal position, responsive asset or container dimensions.

Or skip the browser setup

If you need a captured image of the rendered page to review a header crop, you can request a screenshot without setting up a browser automation script. ScreenshotNeo is a website screenshot API and MCP server. One GET request can return a PNG, JPEG, WebP or PDF; its cleanup options accept consent banners and remove more than 60 known consent platforms, newsletter popups and chat widgets before capture. Each step can be turned off. Bot checks or CAPTCHAs, blank pages, timeouts, failed loads and cache hits are not billed, and responses identify the page verdict and billing status in headers. AI agents can also use its MCP tools, including take_screenshot, get_page_info and capture_pdf. See the ScreenshotNeo API documentation for request options.

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

This cURL example captures a page as WebP; replace the target URL and supply your API key:

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

ScreenshotNeo offers 1,000 screenshots per month free with no card; paid plans start at $5 for 3,000 shots. Sign up for ScreenshotNeo’s free plan.

Common header-image problems and fixes

  • The subject disappears on mobile: the image is being cropped to fit a different-shaped box. Change object-position, revise the mobile container or provide a mobile composition.
  • The image has empty bands: the image is likely being contained in a box with a different ratio. If filling the box is more important than showing every edge, use cover; otherwise design the surrounding space deliberately.
  • The hero is unexpectedly tall on a phone: a naturally proportional, wide image can produce a large height at narrow widths, or the mobile layout may not constrain it. Set a deliberate responsive layout or use a separate mobile composition.
  • People or objects look distorted: the rendered dimensions are not preserving the image’s proportions. Remove the stretching; preserve natural sizing or use an intentional crop.
  • Text embedded in the image is cut off: the crop is removing part of the source. Move essential copy into HTML and keep it separate from the decorative image.
  • Content jumps when the image appears: the browser did not have reserved dimensions or ratio information. Add image dimensions or reserve the layout space in CSS.

What not to infer from a ratio

A ratio is a layout and composition choice, not evidence that a page will load faster, rank better or convert more visitors. The cited guidance does not establish an engagement, conversion or performance advantage for 16:9 or any other header ratio. Optimize the actual asset and layout for the visual result, responsiveness and loading behavior your site needs.

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.

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