Srcset Generator
Enter one image URL and width descriptor per line, then review and copy the generated HTML snippet.
A QUICK WALKTHROUGH
How to use this tool
- Enter URL and width pairs such as image-640.jpg 640w.
- Optionally add a sizes attribute value.
- Copy the generated srcset and img snippet.
Syntax-level validation
Each line must contain a non-empty URL and a positive integer width descriptor ending in w. URLs are escaped in the generated attribute.
No network inspection
The tool does not fetch or verify image URLs and does not make browser compatibility claims.
GOOD TO KNOW
Common questions
Does it optimize image widths?
No. It formats the widths you supply.
Can I use a sizes value?
Yes. Add a sizes attribute value and review the generated markup.