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

Make each website image for its actual purpose and display slot, then export and implement it so it stays clear, accessible, responsive, and quick to load. There is no single best file format or image size for every page: the right choice depends on what the image shows, how it will be used, and what browsers need to support.

Start with the image’s job

Before designing or exporting, decide what the image does in context. An image might explain something, decorate a page, act as a link or control, contain text the reader needs, or present complex data. That purpose determines its crop, accessibility text, and whether a visual alternative is enough. W3C’s guidance is that text alternatives should describe the information or function an image represents; WCAG 2.2 Success Criterion 1.1.1 sets the broader requirement for text alternatives to non-text content, subject to its listed exceptions.

Image purpose Practical treatment
Informative image Describe the relevant information in concise alt text. Include the detail that matters in the surrounding context.
Decorative image Use alt="" so assistive technology can skip it. Do not add a description merely because the image is visible.
Functional image, such as an image link Describe the action or destination, not just the image’s appearance.
Complex graphic or chart Provide a complete text equivalent, such as the important data or explanation in nearby text. A short alt description alone may not convey the graphic’s meaning.
Image containing necessary text Make sure the information is available as text as well; do not leave essential words accessible only inside the pixels.

This decision also helps prevent a common mistake: treating alt text as a caption or a place to repeat keywords. W3C advises putting the most important information first. Google Search Central calls alt text the most important attribute for providing metadata about an image, but its purpose is to describe the image usefully, not to stuff in search terms.

Design and export for the real display slot

Do not export one oversized, loosely cropped asset and expect every component to display it well. Identify where the image appears, how much space it occupies, and which subject or detail must remain visible. Crop for that component’s aspect ratio and focal point. If the crop can vary across screen sizes, keep the important subject within a safe area rather than at an edge that may be cut off.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Elebase USB to USB C Adapter for iPhone 18 Pro Max,USBC Car Charger Adapter
  • Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
  • Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
  • Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
  • Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
  • 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.

Prepare a small set of intrinsic image widths for the viewport sizes the site is likely to serve. The browser can then select a suitable source instead of downloading a much larger file for a small slot. Keep the image’s aspect ratio consistent unless a different crop is deliberately supplied for a different layout. Add explicit dimensions or an aspect ratio in the page so the browser can reserve the correct space before the image loads; this helps avoid layout shifts.

Choose a format based on the content

For many photographic or other raster images, WebP and AVIF are good formats to consider. MDN says raster images should generally prefer WebP or AVIF because they often compress better than PNG, JPEG, and GIF. “Generally” matters: the image’s content, encoder, browser support, and tolerance for visible artifacts affect the result.

Image type or requirement Format decision What to check
Photographs and many raster images Compare WebP and AVIF exports. Check the actual encoded size and inspect the result at its displayed size and at high density.
Screenshots, diagrams, logos, or line art Favor lossless output when compression artifacts would damage edges, small text, or fine detail. Inspect lettering, sharp boundaries, and flat-color regions rather than judging only the overall file size.
Compatibility fallback needed Keep a JPEG or PNG fallback where the site’s supported browsers require it. Verify that the fallback is present and that each format source points to the correct asset.

There is no universal percentage by which one format will shrink an image or a quality value that suits every image. Compare exports from the encoder and settings you actually use, then select the smallest version that still preserves the detail the image needs.

Rank #2
Anker USB-C Hub, 5-in-1 USB Hub for Laptops, 4K HDMI Multiport Adapter
  • 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
  • 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
  • Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
  • 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
  • What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.

Serve responsive formats with semantic HTML

Use an <img> element for content images. It makes the image available as content to crawlers and assistive technology. Use <picture> when you want to offer format alternatives or different art direction, and keep an <img> fallback. Do not rely on a CSS background for an image whose content needs to be indexed or conveyed to assistive technology.

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.

This example offers AVIF and WebP sources, followed by a JPEG fallback at two intrinsic widths. The sizes value tells the browser how wide the image is expected to display; adjust it to match the actual layout rather than copying 100vw blindly.

<picture>
  <source type="image/avif"
    srcset="hero-480.avif 480w, hero-960.avif 960w"
    sizes="100vw">
  <source type="image/webp"
    srcset="hero-480.webp 480w, hero-960.webp 960w"
    sizes="100vw">
  <img src="hero-960.jpg"
    srcset="hero-480.jpg 480w, hero-960.jpg 960w"
    sizes="100vw"
    width="960" height="540"
    alt="Descriptive, purpose-focused alternative text">
</picture>

Replace the example filenames with files that exist, and make sure each width descriptor matches the corresponding file’s intrinsic width. Set width and height to the dimensions of the fallback image; use the same aspect ratio for the alternate sources unless you intentionally use art direction. Supply useful alt text for an informative image, an empty alt value for a decorative one, or action-oriented text if the image is functional.

Rank #3
Sale
Anker USB C Hub, 7in1 Multi-Port USB Adapter, 4K@60Hz USBC to HDMI Splitter
  • Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
  • Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
  • Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
  • Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
  • What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.

Prioritize loading without harming layout

Loading strategy depends on where the image appears. Do not lazy-load the above-the-fold image likely to become the page’s Largest Contentful Paint (LCP). Lazy-load images farther down the page so they need not be fetched before the reader approaches them. Serve a source close to the rendered size, reserve the image’s space with dimensions or an aspect ratio, and keep URLs stable so caches and crawlers can reuse them.

Check the page on a slow connection and in real mobile layouts. A desktop preview alone will not reveal whether the page downloads unnecessarily large files for narrow slots, whether a crop loses its subject, or whether loading images shifts the layout.

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

Google Search Central’s stated “good” Core Web Vitals targets are LCP at or below 2.5 seconds, INP below 200 milliseconds, and CLS below 0.1. These are page-level targets, not guarantees that an individual image will load within a given time. Use them to assess the experience alongside inspection of the image’s size, loading priority, and reserved layout space.

Rank #4
Sale
UGREEN USB to USB C Adapter Combo 4-Pack, 10Gbps USB C Converter Space Gray
  • Dual Converters, Infinite Potential:Includes 2× USB C male to USB A female adapters and 2× USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
  • Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
  • Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
  • Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
  • Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft

Write alt text that works in context

Write alt text for what the image contributes to this particular page, not as a generic inventory of everything visible. A product image may need to identify the relevant model or feature; the same photo used as decoration may need an empty alt attribute instead. If the image is a link, the alternative should make the link’s action or destination clear.

  • Lead with the key information the reader would otherwise miss.
  • Keep the wording concise, and avoid repeating nearby text without a reason.
  • Do not add keywords that do not describe the image’s purpose.
  • For a chart or complex diagram, provide its important data or explanation in surrounding text.
  • For decorative images, use alt=""; do not omit the attribute or write a caption in its place.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Build a repeatable image quality check

A good image workflow checks more than whether the file opens. Review every asset in the context in which it will appear, because the crop, size, text alternative, and loading behavior depend on that context.

  1. Confirm the purpose. Classify the image as informative, decorative, functional, text-bearing, or complex data, and decide what its alternative needs to communicate.
  2. Check the slot and crop. Preview the intended component on desktop and mobile, including the focal point and safe area. Confirm that alternate crops do not hide important subjects.
  3. Compare the exports. Test the likely raster formats and widths. Inspect fine lines, text, edges, and high-density rendering as well as file size.
  4. Validate the markup. Confirm that the picture sources and srcset widths refer to real files, that the fallback works, and that dimensions reserve the right aspect ratio.
  5. Test accessibility and meaning. Use a screen reader or an automated accessibility audit. Turn images off and check whether the page still communicates the essential information.
  6. Check real loading behavior. Inspect the page on a slow connection and a real mobile layout. Make sure the likely LCP image is not lazy-loaded and that below-the-fold images do not have unnecessary priority.

Keep asset naming and export steps consistent within a project so it is easier to identify the correct crop, width, and format later. Recheck the page after a redesign: a previously suitable width or crop may no longer match the component.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Best Value
Anker USB C Hub, 5-in-1 USBC to HDMI Splitter with 4K Display
  • 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
  • Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
  • Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
  • HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
  • What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.

Troubleshoot common image problems

  • The image looks soft or pixelated. Check whether the browser selected a source that is too small for the rendered size or a high-density display. Export a suitable intrinsic width and verify the selected file in the actual layout.
  • Text, edges, or line art look damaged. Compare a lossless export; lossy compression artifacts that are unobtrusive in a photograph can be obvious on sharp graphics.
  • The wrong format or fallback appears. Confirm the file paths, MIME type declarations, srcset descriptors, and sizes value. Check that the fallback src points to a valid image.
  • The subject is cropped on mobile. Review the focal point and safe area at the mobile component dimensions. If one crop cannot serve both layouts, use a deliberate art-direction source in <picture>.
  • The page jumps when images load. Set explicit width and height or a suitable aspect ratio so the browser reserves space before loading.
  • Meaning disappears when images are turned off. Add a text equivalent for information that exists only in the image, especially for charts, diagrams, and text embedded in pixels.
  • The page feels slow despite modern formats. Check whether the page is serving files much larger than their rendered slots, whether the likely LCP image has been lazy-loaded, and whether below-the-fold images can be deferred.

Or skip the browser setup

If what you need is a clean capture of a live webpage rather than a designed or edited image, ScreenshotNeo can return a screenshot in PNG, JPEG, or WebP, or a PDF, from one GET request. It is a website screenshot API and MCP server from Yorker Media, not a replacement for choosing the right crop, writing alt text, or preparing responsive assets.

For example, this cURL call saves a WebP capture of Stripe’s page. See the ScreenshotNeo API documentation for the request options.

curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp
  • Cookie and consent banners are accepted like a visitor, and 60+ known consent platforms, newsletter popups, and chat widgets are removed before capture; each step can be turned off.
  • Bot checks or CAPTCHAs, blank pages, timeouts, failed loads, and cache hits cost nothing. Responses include X-Page-Verdict and X-Billed headers.
  • An MCP server offers take_screenshot, get_page_info, and capture_pdf tools 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; every feature is on every plan.

Sign up for ScreenshotNeo’s free plan to get 1,000 screenshots a month with no card.

Frequently Asked Questions

Is there one image quality setting that works for every site image?

No. The result depends on the source image, encoder, format, and how much visible compression the content can tolerate. Compare the exports at the size and density where readers will see them.

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.