# Responsive Images

> Each screen gets an image of the right size. Phones load small files.

**Field:** Design  
**Category:** Web Design  
**Also known as:** Responsive Image, srcset, Picture Element, Adaptive Images

## Think of it like

A café pours a small cup for a small kid. A big person gets a big cup.

## Definition

Responsive images send each screen a picture of the right size. The page lists a few sizes of the same image. The browser picks the smallest one that still looks sharp on that screen. A phone downloads a small file and a big screen gets a large one. The picture element can also swap in a different crop for small screens.

## Example

Emma's hero photo comes in 480, 960 and 1920 pixel widths. Phones load the small one and save over a megabyte.

## Example code

```html
<img src="cake-960.jpg"
  srcset="cake-480.jpg 480w, cake-960.jpg 960w, cake-1920.jpg 1920w"
  sizes="(max-width: 600px) 100vw, 50vw"
  alt="A slice of lemon cake on a white plate">
```

Three sizes of one photo. The browser picks the smallest that still looks sharp.

## Why it matters

Images are often the heaviest part of a page. Sending the right size makes pages load much faster on phones.

## Common mistake

Shrinking a huge image with code. The phone still downloads the whole big file.

## Three principles

- **Several sizes.** Of the same picture.
- **Browser chooses.** Smallest that looks sharp.
- **Crop for small.** A tighter shot on phones.

## Related terms

- [Responsive Web Design](https://learn.benibix.com/term/design/responsive-web-design)
- [Image Compression](https://learn.benibix.com/term/design/image-compression)
- [Aspect Ratio](https://learn.benibix.com/term/design/aspect-ratio)
- [Hero Section](https://learn.benibix.com/term/design/hero-section)
- [HyperText Markup Language (HTML)](https://learn.benibix.com/term/development/html)

![The same six cards on three screens. A phone shows them in one column, a tablet in two columns, and a wide screen in three columns.](https://learn.benibix.com/diagrams/responsive-layout.svg)

---

Source: https://learn.benibix.com/term/design/responsive-images
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
