About the Responsive Image srcset Generator
Responsive images let phones download small files and large screens get sharp ones. Describe your file naming with {w} where the width goes — images/photo-{w}.jpg — list the widths you have created, and describe how wide the image appears with the sizes attribute.
You get clean <img> markup with srcset, sizes, a fallback src, alt text and optional lazy loading, or a <picture> element with a WebP source and a JPEG or PNG fallback. Duplicate widths are removed and the list is sorted for you.
How to use the Responsive Image srcset Generator
- Enter the file pattern and widths.
- Set sizes, alt text and options.
- Copy or download the HTML.
Features
- Generation history: the last 10 results of your visit stay one click away
- srcset with w descriptors
- sizes and fallback src
- Lazy loading
- Optional WebP <picture>
Supported formats
- Plain text
Frequently asked questions
Does it resize my images?
No — it writes the HTML. Create the resized files with an image resizer first.
Is my text sent anywhere?
No. Everything runs in your browser, so nothing you paste is uploaded or stored.
Added · Last reviewed · Maintained by Sohail Khax · How we test tools