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.
Your Image Details
Optimization Checklist
Suggested srcset Breakpoints
Serve appropriately sized images to each device to avoid sending oversized images to mobile users.
Format Selection Reference
| Format | Best For | Transparency | Savings vs JPEG |
|---|---|---|---|
| AVIF | Photos, complex images | Yes | ~50% smaller |
| WebP | Photos, UI images | Yes | ~30% smaller |
| SVG | Icons, logos, illustrations | Yes | Vector (scalable) |
| JPEG | Photos (legacy fallback) | No | Baseline |
| PNG | Screenshots, transparency (legacy) | Yes | Often larger |
| GIF | Avoid — use video/WebP instead | 1-bit only | Very large |
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.
Related Products
on GumroadDevToolkit Starter Kit
A ready-to-deploy developer tools website with 12 built-in tools. Astro + Preact + Tailwind. Deploy to Cloudflare Pages for free. Built-in SEO, dark mode, and ad-ready layout.
Buy on Gumroad →TypeScript Quick Reference Toolkit
5 practical reference files for TypeScript developers: cheatsheet, TS vs JS comparison, 20 utility types with real examples, tsconfig best practices template, and 15 common mistakes guide. Print it. Keep it on your desk.
Buy on Gumroad →Developer Productivity Bundle
Stop rebuilding the same setup every project. 51 VSCode snippets, 40 Git aliases, 5 Docker Compose stacks, 5 GitHub Actions workflows, 5 README templates, and a dotfiles kit. Set up a professional dev environment in under an hour.
Buy on Gumroad →You Might Also Need
Webhook Tester
Generate realistic webhook test payloads for GitHub, Stripe, Slack, and custom services. Get a curl command to send the payload to your local endpoint. Inspect headers, payload size, and content-type.
Open free tool →
WebSocket Tester
Connect to any WebSocket server, send and receive messages in real time, and inspect the message log with timestamps and byte sizes. Free online WebSocket client.
Open free tool →
WebP Converter
Convert PNG, JPG, or GIF images to WebP format in your browser. Drag-and-drop upload, quality slider, before/after file size comparison. No files sent to any server.
Open free tool →
More Free Tools
Related Articles
SVG Optimization Techniques: Reduce File Size by 70% Without Quality Loss
Step-by-step SVG optimization guide. Use SVGO, manual techniques, and build tool integration to cut SVG file sizes by 50-80% while preserving visual quality.
Zed Editor 2026: Is It Ready to Replace VS Code for Developers?
Zed is a high-performance code editor built in Rust that challenges VS Code with blazing-fast startup, native multiplayer collaboration, and integrated AI features. Is it ready for daily use in 2026?
WebAssembly (WASM) for Web Developers: A Practical Guide (2026)
Learn WebAssembly (WASM) from scratch — what it is, when to use it, how to compile Rust and C++ to WASM, real-world use cases, and tools every web developer needs to know.
Best Load Testing Tools for Developers in 2025: k6, JMeter, Locust, and More
A practical comparison of load testing tools in 2025 — k6, JMeter, Locust, Gatling, and Artillery — covering scripting ease, CI integration, cloud execution, and when each tool fits your testing needs.
JavaScript Minifier Online: Compress and Minify JS Files Free
Minify JavaScript online for free. Reduce JS file size by removing whitespace, comments, and shortening variable names. Learn when to minify, how it works, and best practices.
Enjoying this tool? Get more like it.
Weekly developer tool guides, productivity playbooks & AI tricks. Free. No spam.
Unlock AI-Powered Dev Tools
- ⚡ AI Code Review, Doc Generator & SQL Builder
- ⚡ All premium templates & early access
- ⚡ Member discounts on Gumroad products
$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.
MIT licensed · Instant download · No subscription
See what's included → Browse all deals →