Optimize Images for the Web: Responsive Sizes and Ready HTML
Upload one image and get web-ready versions in up to three widths (640, 1280 and 1920 px) as AVIF, WebP and a JPEG or PNG fallback, plus a picture tag with srcset and sizes ready to paste. It's made for developers, webmasters and content editors who want lighter pages and better Core Web Vitals without a build tool.
How to use it
- 1Upload the image you plan to publish; processing starts right away.
- 2Review the generated versions and their file sizes compared with the original.
- 3Download all files in one ZIP.
- 4Copy the HTML snippet, upload the files to your site and fix the paths and alt text.
What the optimizer generates
| Format | Quality | Role |
|---|---|---|
| AVIF | 60% | Smallest files for browsers that support it |
| WebP | 80% | Main modern format, supported everywhere |
| JPEG (or PNG if transparent) | 82% | Fallback for old software |
Widths are 640, 1280 and 1920 px, but only those smaller than your original, plus the original width capped at 1920 px; images are never enlarged. AVIF appears only if your browser can encode it, which current Chrome and Edge can.
How to use the generated picture tag
The snippet lists each format with a srcset of widths, so the browser picks the lightest file the screen needs. The img tag includes width, height, loading="lazy" and decoding="async".
- Keep width and height: they reserve space and prevent layout shift (CLS).
- Remove loading="lazy" from the hero or first visible image, because lazy loading it delays Largest Contentful Paint (LCP).
- Adjust sizes if the image doesn't span the full width, for example (min-width: 1024px) 50vw, 100vw.
- Replace the placeholder alt with a short description.
Our web development team builds sites with this optimization in the pipeline.
FAQ
Use both inside a picture element. Browsers that support AVIF get the smallest file, the rest fall back to WebP, and very old software gets JPEG. AVIF often wins on photos, while WebP encodes faster and is supported more widely. The optimizer shows the sizes, so you can see the real saving.
srcset lists the same image in several widths, and sizes tells the browser how wide the image will appear on the page. The browser then downloads the smallest file that still looks sharp, so a phone gets the 640 px version instead of a 1920 px one. That cuts page weight without any JavaScript.
No. All versions are encoded in your browser with the Canvas API, and the image never leaves your device. That keeps unreleased designs private and lets you use the tool without an account. Processing time depends on the image size, the number of formats and the speed of your computer.
No. Lazy loading helps for images below the first screen, because they load only when the visitor scrolls near them. The main image visible on load should load immediately, ideally with fetchpriority="high", or your Largest Contentful Paint gets slower. Edit the snippet accordingly for hero images.
Need a website or marketing?
We build landing pages, corporate sites, and e-commerce. SEO, branding, and automation — all in one team.