Responsive image generator
Drop a full-size photo and get the set of widths your layout needs, in WebP or AVIF with JPG fallbacks, together with the img srcset and the picture element that serves them, lazy loading included.
- Free, no sign-up
- No upload
- Full resolution kept
How it works
Three steps, under a minute
Drop a full-size photo and get the set of widths your layout needs, in WebP or AVIF with JPG fallbacks, together with the img srcset and the picture element that serves them, lazy loading included. Everything is resized and encoded on your device.
- 1
Add your files
Set the widths you need; the defaults cover phones to large desktops. Pick WebP or AVIF and a quality.
- 2
Process
Drop the full-size image. Widths larger than the source are skipped.
- 3
Download
Download the ZIP, copy the picture element, and edit the sizes attribute to match your layout.
What you get
Everything you need, nothing uploaded
Any list of widths, encoded in WebP, AVIF or JPG, with optional JPG fallbacks.
srcset img tag and picture element with width, height, loading="lazy" and decoding="async".
ZIP download with file names that match the snippet.
No upload, no account.
Quality and size
Why width, height and sizes matter
width and height on the img tag let the browser reserve the right space before the image loads, which stops the page jumping. The sizes attribute tells the browser how wide the image will be displayed at each breakpoint so it can pick the smallest file that is still sharp; without it, the browser assumes full viewport width and downloads more than needed. Edit the generated sizes value to match your CSS.
In depth
Which widths to generate
Start from your layout: the widest the image is ever displayed, times two for high-density screens, is the largest width you need. Then add two or three smaller steps for tablets and phones. Five sizes is plenty; more only adds files. For a 768-pixel column, 480, 768, 1024 and 1536 covers everything.
FAQ
Frequently asked questions
Can’t find an answer? The guides cover formats, sizes and privacy in depth.
Read the guidesIs my file uploaded?
No. Everything on this page runs in your browser and the file never leaves your device. The Network tab in the developer tools shows no upload while the tool works.
Do I need the JPG fallbacks?
Every current browser displays WebP, so for most sites WebP alone is fine. AVIF is newer and the picture element with a fallback is the safe way to serve it.
Can I generate sizes larger than the original?
No. Enlarging only adds blur; those widths are skipped and the page says so.
Related tools
More free tools
Done here? Make it look great.
Adjust, retouch and add effects in the full editor. Still 100% on your device.