Skip to content
Performance·Intermediate·Conceptual·1 min read

Should every image be converted to AVIF?

Short interview answer

AVIF gives the best compression for most photos, but encode time is high and some very simple graphics compress better or equivalently as optimized PNG or SVG. Serve AVIF with a WebP and then a universally supported fallback, and let the browser pick.

Key takeaway

Explain the underlying mental model clearly, then support it with a concrete example and its trade-offs.

← Back to Image and asset optimization

Related questions