Comparing PNG, JPEG, WEBP, AVIF and GIF to find the best format for your website screenshots
Capturing full-page screenshots is a balance of image quality, performance, and storage. Below, we explore the five most common formats - PNG, JPEG, WEBP, AVIF, and GIF - and help you understand which is best for your needs. We'll also show you how compression affects image quality and file size.
Below we compare screenshots of two different websites (bbc.com and stripe.com) across all five formats, showing both 100% quality and 80% quality versions with file sizes.
Format | Original Size | 80% Quality Size | Size Reduction |
---|---|---|---|
PNG | 456KB | 157KB | 66% |
JPEG | 259KB | 83KB | 68% |
GIF | 183KB | 183KB | 0% |
AVIF | 135KB | 76KB | 44% |
WEBP | 123KB | 67KB | 46% |
https://api.addscreenshots.com/screenshots
?apikey=YOUR_API_KEY
&format=png
&url=https://bbc.com
https://api.addscreenshots.com/screenshots
?apikey=YOUR_API_KEY
&format=jpeg
&url=https://bbc.com
https://api.addscreenshots.com/screenshots
?apikey=YOUR_API_KEY
&format=webp
&url=https://bbc.com
https://api.addscreenshots.com/screenshots
?apikey=YOUR_API_KEY
&format=avif
&url=https://bbc.com
https://api.addscreenshots.com/screenshots
?apikey=YOUR_API_KEY
&format=gif
&url=https://bbc.com
Your API key can be found on the API Keys page. Need an API Key? Sign up to get started.
For internal applications, replace YOUR_API_KEY with your own unique API Key.
For public facing websites or hotlinks, generate a signed URL.
Format | Original Size | 80% Quality Size | Size Reduction |
---|---|---|---|
JPEG | 164KB | 51KB | 69% |
PNG | 109KB | 29KB | 73% |
GIF | 59KB | 59KB | 0% |
WEBP | 63KB | 36KB | 43% |
AVIF | 48KB | 30KB | 38% |
https://api.addscreenshots.com/screenshots
?apikey=YOUR_API_KEY
&format=png
&url=https://stripe.com
https://api.addscreenshots.com/screenshots
?apikey=YOUR_API_KEY
&format=jpeg
&url=https://stripe.com
https://api.addscreenshots.com/screenshots
?apikey=YOUR_API_KEY
&format=webp
&url=https://stripe.com
https://api.addscreenshots.com/screenshots
?apikey=YOUR_API_KEY
&format=avif
&url=https://stripe.com
https://api.addscreenshots.com/screenshots
?apikey=YOUR_API_KEY
&format=gif
&url=https://stripe.com
Your API key can be found on the API Keys page. Need an API Key? Sign up to get started.
For internal applications, replace YOUR_API_KEY with your own unique API Key.
For public facing websites or hotlinks, generate a signed URL.
Format | Best Use Cases | File Size | Quality | Browser Support |
---|---|---|---|---|
PNG | Documentation, UI mockups, text-heavy screenshots | Largest | Lossless | Universal |
JPEG | Photographic content, e-commerce, general web screenshots | Medium | Lossy | Universal |
WEBP | Modern websites, performance-critical applications | Small | Lossy/Lossless | Modern browsers |
AVIF | High-traffic sites, CDNs, bandwidth-sensitive applications | Smallest | Lossy/Lossless | Most Modern browsers |
GIF | Animated demonstrations, UI tutorials | Medium-Large | Limited colors | Universal |
PNG (Portable Network Graphics) is a lossless image format that preserves all image data. It's ideal for:
Best for: Documentation, UI mockups, and any screenshot where detail preservation is critical.
JPEG (Joint Photographic Experts Group) is a lossy compression format that reduces file size by discarding some image data. It's ideal for:
Best for: E-commerce product screenshots, blog post images, and general website screenshots.
WEBP is a modern image format developed by Google that offers superior compression compared to JPEG and PNG. It's ideal for:
Best for: Modern websites, mobile applications, and any scenario where performance is prioritized.
AVIF (AV1 Image File Format) is the newest image format, offering exceptional compression while maintaining high quality. It's ideal for:
Best for: High-traffic websites, mobile applications, and content delivery networks where bandwidth costs matter.
GIF (Graphics Interchange Format) is a bitmap image format that supports animation. It's ideal for:
Best for: UI demonstrations, animated tutorials, and interactive feature showcases.
Our screenshot API allows you to control image quality through compression. The examples above show both 100% quality and 80% quality versions of the same screenshots. Here's what you need to know:
Pro Tip: For most website screenshots, 80% quality provides an excellent balance between file size and visual quality. You can adjust this value in the API to find the perfect balance for your specific needs.