SEOSTUDIO™ · SEO & WEBMASTER

Which image width fits my responsive layout?

Calculate a target from the rendered image slot and pixel ratio, then compare it with the widths you actually have.

Compare image candidates

Measure the rendered slot. Separate existing export widths with spaces or commas, such as 640, 960, 1440.

Try an example

What problem does this tool solve?

Multiply a measured CSS slot by a target device pixel ratio, then round up to a whole pixel. The planner identifies the narrowest supplied candidate that meets that target. If all candidates are too small, it reports the largest file width and the remaining shortfall.

Ten practical questions answered

How do I measure a photo inside a card instead of the full phone screen?

Inspect the rendered image in the target viewport. Measure its own CSS box after the layout settles. A 390-pixel viewport can contain a much narrower card because of gutters and padding.

What does a target pixel ratio of 1.5 represent?

It models one and a half device pixels along an axis per CSS pixel. For a 301-pixel slot, the planner rounds 451.5 up to a 452-pixel target before picking a candidate.

Which numbers belong in the available widths field?

Enter actual intrinsic widths of exported files in whole pixels, for example 480, 800, 1200. A label such as hero-large or a CSS breakpoint does not tell you the image’s intrinsic width.

Why does the planner pick 960 when 768 is almost large enough?

Its rule selects the smallest available candidate that reaches the target. A 390-pixel slot at density 2 calls for 780. Choosing 960 covers that target while 768 falls short by 12.

What if the only file is narrower than the target?

The tool returns the largest available candidate and its shortfall. Inspect the source master and compare a new export visually before committing to a larger file.

Does twice the width mean twice the bytes?

File size depends on height, compression, color detail and output format. Inspect the encoded resources and transferred bytes. The width calculation alone carries no file-size prediction.

How do I handle a gallery that changes from three columns to one?

Measure one card at representative breakpoints and run each slot width separately. Keep the actual sizes expression and source list beside your results for review.

Should portrait and landscape crops share one candidate list?

Plan each crop independently if the picture element switches art direction. An adequately wide landscape file may still crop out the subject that readers need on a phone.

Can I use the result as proof of what the browser downloaded?

Read currentSrc and inspect the observed request on a test device. The user agent considers the declared source size, resource candidates and local conditions when it chooses.

Which experiment can show that a new export improved the page?

Add one candidate to a staging copy, keep viewport and content stable, then compare currentSrc, visual clarity and transferred bytes with the baseline. Retain the export only when the observed result meets the requirement.

How it works, with an example

Measure the slot at one breakpoint, choose a test density and list the intrinsic widths of actual exports. Run the calculation and compare its first adequate candidate with the resource selected in a real browser.

Practical example

A museum’s mobile exhibit photo occupies 390 CSS pixels at a target density of 3. The target is 1170 pixels. Of 640, 960 and 1440 pixels, the first width that covers it is 1440, with 270 pixels of headroom.

Additional use cases

  • Review an exhibit photo on a phone.
  • Check the largest available storefront banner.
  • Compare desktop and mobile gallery slots.

Technical reference: WHATWG HTML Living Standard · Responsive images · 24.11.2026

Frequently asked questions

Can the tool fetch my image CDN?

It evaluates numbers you enter. No CDN requests or account connections are required for the calculation.

Can I use decimal display densities?

Yes. Enter up to two decimal places between 0.5 and 5. Width inputs must be whole pixels.

Do candidates need to be sorted?

No. The planner sorts widths numerically and handles duplicate widths as a single candidate.

What happens on an exact match?

The selected width equals the target and reported headroom is zero.

Does this replace sizes in my markup?

No. Check the actual source-size expression against CSS and verify the loaded resource in the browser.

Related tools for your next step

Review responsive image delivery

You can request a free, no-obligation review of one affected template.

Request a free consultation →

SEOSTUDIO editorial team · Updated