PlaceholderImage.co supports six image formats for placeholder images. Learn the differences, when to use each, and how to specify the format in your URL.
SVG placeholder images are the default format on PlaceholderImage.co. Because SVG is vector-based, a single SVG placeholder image looks crisp on every screen from a 100px thumbnail to a 4K display. SVG placeholder images are ideal for responsive web design because they automatically scale to fill their container without any pixelation.
UI mockups, responsive layouts, CSS backgrounds, any context where scalability matters
<img src="https://placeholderimage.co/600x400/1c1c1e/22c55e" width="600" height="400" alt="SVG placeholder image" /> PNG is the most widely used raster placeholder image format. Use PNG placeholder images when your framework requires a raster format, when you need guaranteed transparency support, or when using Next.js Image component with strict type checking. PlaceholderImage.co generates PNG placeholder images server-side using a high-performance WASM renderer.
React/Next.js projects, mobile apps (Flutter/React Native), anywhere raster format is required
<img src="https://placeholderimage.co/600x400/1c1c1e/22c55e/png" width="600" height="400" alt="PNG placeholder image" /> JPEG placeholder images provide the smallest file size among raster formats. While JPEG does not support transparency, it is the best choice for large-dimension placeholder images where bandwidth matters. Use JPEG placeholder images for hero banners, article covers, and background images.
Large banner images, photo-heavy layouts, anywhere bandwidth optimization is a priority
<img src="https://placeholderimage.co/600x400/1c1c1e/22c55e/jpg" width="600" height="400" alt="JPEG placeholder image" /> WebP placeholder images are recommended for modern web projects. WebP provides better compression than both PNG and JPEG, which improves page load speed and Core Web Vitals scores. Use WebP placeholder images in Next.js, Nuxt, Astro, or any modern framework that handles image optimization.
Modern web projects prioritizing performance, Core Web Vitals optimization
<img src="https://placeholderimage.co/600x400/1c1c1e/22c55e/webp" width="600" height="400" alt="WebP placeholder image" /> AVIF is the next-generation placeholder image format with the best compression of any format available today. On PlaceholderImage.co, AVIF requests are served as PNG on Cloudflare Pages due to WASM encoding limitations, but the URL and Content-Type are correctly specified.
Cutting-edge projects, future-proofing, browsers that support it
<img src="https://placeholderimage.co/600x400/1c1c1e/22c55e/avif" width="600" height="400" alt="AVIF placeholder image" /> GIF placeholder images offer maximum compatibility for legacy environments. While GIF is an older format, it remains useful for HTML email templates and environments that do not support modern formats. On PlaceholderImage.co, GIF placeholder images fall back to PNG output on the Cloudflare edge.
Legacy systems, HTML email templates, maximum compatibility requirements
<img src="https://placeholderimage.co/600x400/1c1c1e/22c55e/gif" width="600" height="400" alt="GIF placeholder image" /> | Format | Transparency | Scalable | File Size | Best Use | Browser Support |
|---|---|---|---|---|---|
| SVG | Yes | Infinite | Smallest | All web | All modern browsers |
| PNG | Yes | No | Medium | React / Native apps | Universal |
| JPEG | No | No | Small | Large banners | Universal |
| WebP | Yes | No | Smaller | Modern web perf | Chrome/FF/Safari 14+ |
| AVIF | Yes | No | Smallest raster | Cutting-edge projects | Chrome 85+/FF 93+ |
| GIF | Partial | No | Small | Legacy/email | Universal |