Next.js automatically optimizes images using the Image component, supporting resizing, compression, and modern formats like WebP.