Skip to main content

Image Optimizer Checklist

Enter your image details to get a personalized optimization checklist. Covers format selection, compression targets, lazy loading, srcset breakpoints, and CDN recommendations — all running in your browser.

✓ Format recommendations ✓ Compression targets ✓ srcset breakpoints ✓ Runs 100% in your browser

Your Image Details

Frequently Asked Questions

What is the best image format for the web in 2024?▼

WebP is the modern default — it's ~30% smaller than JPEG at the same quality and is supported by all major browsers. AVIF is even better (~50% smaller than JPEG) but encoding is slower. For photographs, use WebP or AVIF. For icons and logos with transparency, use WebP or SVG. For vector graphics, always use SVG.

What image dimensions should I use for a hero/banner?▼

A typical desktop hero is 1200–1920px wide. However, you should serve responsive images with srcset, providing at least three sizes: 400w (mobile), 800w (tablet), 1200w (desktop). Never serve a 1920px image to a 375px mobile device — that wastes bandwidth and hurts LCP.

What is lazy loading and when should I use it?▼

Lazy loading defers off-screen images until the user scrolls near them. Use loading='lazy' on all images below the fold. Never lazy-load above-fold images (hero, logo) as it delays LCP. The browser natively supports this attribute in all modern browsers — no JavaScript library needed.

What compression level should I use for JPEG and WebP?▼

For JPEG: quality 70–85 is the sweet spot — visually lossless for most photos. Below 60 introduces visible artifacts. For WebP: quality 75–85 gives better results than equivalent JPEG quality. For thumbnails or card images: quality 60–70 is fine. Always check visually after compression.

What are width and height attributes for?▼

Setting explicit width and height on <img> elements lets the browser reserve space before the image loads, preventing Cumulative Layout Shift (CLS). It also enables the browser to calculate the aspect ratio before the image downloads. This is required for good CLS scores in Core Web Vitals.

Should I use a CDN for images?▼

Yes — a CDN dramatically improves image delivery for global users by serving images from edge nodes close to each visitor. Image CDNs like Cloudinary, Imgix, and Cloudflare Images also offer automatic format conversion (WebP/AVIF), resizing, and compression on the fly, so you don't need to manually convert every image.

Share this tool: X / Twitter LinkedIn
✓ 60,000+ developers use DevPlaybook ★★★★★ 4.8 / 5 on Gumroad ✓ MIT licensed · Instant download ✓ No login required

Related Products

on Gumroad

You Might Also Need

More Free Tools

Enjoying this tool? Get more like it.

Weekly developer tool guides, productivity playbooks & AI tricks. Free. No spam.

DevPlaybook Pro 7 days free

Unlock AI-Powered Dev Tools

  • ⚡ AI Code Review, Doc Generator & SQL Builder
  • ⚡ All premium templates & early access
  • ⚡ Member discounts on Gumroad products
Start Free Trial →

$9/mo after trial · Cancel anytime

Want the full toolkit?

Get DevPlaybook Pro

Every template, guide, boilerplate, and automation script in one bundle. 13 premium products — grab them all at once and save big.

$79
$241 separately Save $162 (67% off)
Get DevPlaybook Pro — $79 →

MIT licensed · Instant download · No subscription

See what's included → Browse all deals →