Image optimizer for websites

One image in. Every width and format a fast page needs out, with the HTML written for you.

Your files are processed on your device and not uploaded. Free, no sign-up. Privacy

In short

A phone with a 400 px screen should not download a 2000 px photo. Responsive images fix that: you publish a few widths, list them in srcset, and the browser picks the smallest one that looks sharp. This tool makes the files and writes the markup.

How to use the Image Optimizer online

  1. Drop one or more images.
  2. Set the widths, formats and the sizes attribute for your layout.
  3. Download the ZIP and paste the <picture> snippet into your HTML.
  • srcset written for you. Correct type, srcset, sizes, width and height attributes.
  • AVIF, WebP, JPG. Modern formats first, with a fallback every browser can show.
  • Never upscaled. Widths larger than your original are capped.
  • Nothing uploaded. Unreleased designs and client assets stay on your machine.

Good to know

What you get. For each width, a WebP (and AVIF if chosen) plus a JPG fallback, or PNG for images with transparency. Files are named photo-480.webp, photo-960.webp and so on, with a photo-picture.html snippet.

Why it helps Core Web Vitals. The largest image on a page usually decides Largest Contentful Paint. Smaller files in a modern format, sized to the screen, are the most direct way to bring it down. The snippet includes width and height, which stops the layout jumping (Cumulative Layout Shift), and loading="lazy".

Above the fold? For your main hero image, remove loading="lazy" and add fetchpriority="high" so the browser fetches it first.

FAQ

Image Optimizer: common questions

Which widths should I choose?

For a full-width image, 480, 960 and 1600 cover phones, tablets and laptops, including 2× screens. For a content column about 700 px wide, try 400, 800 and 1400.

What does the sizes attribute do?

It tells the browser how wide the image will be shown, before the CSS loads, so it can pick the right file from srcset. 100vw means the full viewport width.

Do I still need a JPG?

Only for very old browsers. Every current browser shows WebP. The JPG costs nothing to keep in the <picture> element and guarantees the image always appears.

Does this work with WordPress, Next.js or Astro?

Yes. Upload the files to your media folder and paste the snippet, or use the files with your framework’s image component.

Are my photos uploaded to a server?

No. Every tool on Gods of Image runs inside your browser. Your photos are processed on your own phone or computer and never leave it, which makes it safe for ID cards, signatures, family photos and documents.

Is it free? Is there a limit on files or size?

It is completely free: no sign-up, no watermark, no daily limit and no file-size cap. Your own device does the work, so the only limit is its memory.

Often used next