Drop images here
Supports PNG, JPG, GIF, BMP, TIFF, and WebP
Your converted images will appear here after dropping files above.
Supports PNG, JPG, GIF, BMP, TIFF, and WebP
<picture>
<source srcset="images/han-original.avif" type="image/avif">
<source srcset="images/han-original.webp" type="image/webp">
<img src="images/han-original.png" alt="Han with Veilside RX-7" loading="lazy" width="1200" height="800">
</picture>
✨ The browser automatically chooses the most efficient codec it supports (AVIF first, then WebP, falling back to PNG).
.hero-banner {
/* Fallback for older browsers */
background-image: url("images/han-original.png");
/* Next-gen image negotiation with AV1 & libwebp */
background-image: image-set(
url("images/han-original.avif") type("image/avif"),
url("images/han-original.webp") type("image/webp"),
url("images/han-original.png") type("image/png")
);
background-size: cover;
}
🚀 Modern CSS standard for responsive background images with zero JavaScript overhead.
import Image from 'next/image';
// In next.config.js:
// module.exports = { images: { formats: ['image/avif', 'image/webp'] } }
export default function Hero() {
return (
<Image
src="/images/han-original.webp"
alt="Han with Veilside RX-7"
width={1200}
height={800}
priority
/>
);
}
⚡ Next.js Image component handles automatic negotiation and edge caching when formats are enabled.