Drag the quality slider to see how file sizes change across formats. AVIF stays smallest at every quality level. Sizes shown for a typical 1600×900 photo.
Pick a browser profile below. Watch which <source> it chooses — the first one whose type it supports. Order matters: best format first.
The <picture> and <source> are invisible wrappers. The <img> is the real element — it holds alt, width, height, loading, and CSS targets it.
Set the real layout (how wide the image actually renders) and the sizes value you wrote. See how much bandwidth a wrong sizes wastes.
Type or pick a srcset + sizes combination. The validator checks the rules browsers enforce: descriptor consistency, sizes presence, and decimal-width errors.
Compare how the hero (LCP) image loads under two strategies. The cyan line marks when LCP fires — earlier is better.