Account

What new tool do you want?

Image Tools

Responsive Image Generator (srcset & picture)

Turn one large image into a set of resized AVIF, WebP and JPEG (or PNG) files and get the ready-to-paste <picture> HTML with srcset, sizes, width, height, alt text and lazy loading. Download every file and the snippet as one ZIP.

How to use

  1. 1Drop the largest, best-quality version of the image.
  2. 2Check the widths, formats, quality and how wide the image is shown on your page (sizes), and add alt text.
  3. 3Press Generate, copy the HTML, and download the ZIP with every file and the snippet.

Frequently asked questions

What do srcset and sizes do?

srcset lists the same image at several widths ('hero-640w.webp 640w, …'). sizes tells the browser how wide the image will be on screen at different viewport widths. The browser combines that with the screen's pixel density and downloads the smallest file that's sharp enough, so a phone doesn't download a 2,560-pixel image.

Why a <picture> element?

Each <source> offers the same widths in a newer format. Browsers pick the first format they support, AVIF then WebP, and fall back to the <img>'s JPEG or PNG otherwise. If you choose a single format you get a plain <img> with srcset instead.

Why are width and height in the HTML?

They let the browser reserve the right amount of space before the image loads, so the page doesn't jump (Cumulative Layout Shift, one of Google's Core Web Vitals). CSS like max-width: 100%; height: auto; keeps it responsive.

Should every image be lazy-loaded?

No. Lazy-load images further down the page. The main image at the top (often the Largest Contentful Paint element) should load straight away: untick lazy-load for it and the snippet uses fetchpriority="high" instead.

Is my image uploaded?

No. Resizing and encoding happen in your browser.

Sources

Choosing widths

The default list runs from 320 px up to the original width (at most 2,560 px), so it covers small phones up to large high-density screens. You need more steps if the image fills the screen, fewer if it's always shown small: an image that's never wider than 400 CSS pixels needs files up to about 800 px for 2× screens, and the browser won't use anything bigger. The tool never enlarges the original.

Example: a blog post header

A 3,000 × 1,688 photo is shown at the full width of a 768-pixel content column. Choose the 'Content column (max 768 px)' sizes preset, keep AVIF, WebP and JPEG, quality 80, and untick lazy-load because it's the first thing on the page. The ZIP holds 30 files (10 widths × 3 formats) and snippet.html; upload the images to /images/ and paste the snippet where the header goes.

Formats and quality

AVIF is usually the smallest, then WebP, then JPEG, at a similar look. The quality slider applies to all of them, with AVIF's scale adjusted because it reaches the same look at a lower number. PNG is used as the fallback when the image has transparency, since JPEG can't store it. The size table shows exactly what each choice costs.

Related tools

More: Image Tools