{"id":4872307,"date":"2022-10-25T08:42:14","date_gmt":"2022-10-25T06:42:14","guid":{"rendered":"https:\/\/wp-rocket.me\/?post_type=core_web_vitals_hub&#038;p=4872307"},"modified":"2024-11-05T13:36:30","modified_gmt":"2024-11-05T12:36:30","slug":"serve-images-next-gen-formats","status":"publish","type":"core_web_vitals_hub","link":"https:\/\/wp-rocket.me\/google-core-web-vitals-wordpress\/serve-images-next-gen-formats\/","title":{"rendered":"How to Serve Images in Next-Gen Formats"},"content":{"rendered":"<p>Google recommends you serve images in next-gen formats to prevent your WordPress site from loading slowly. According to them, next-gen formats provide better compression features than traditional PNG or JPEG formats.&nbsp;<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"447\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/Google-recommends-serving-images-in-next-gen-formats-Source-PSI-.png\" alt=\"\" class=\"wp-image-4872315\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/Google-recommends-serving-images-in-next-gen-formats-Source-PSI-.png 800w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/Google-recommends-serving-images-in-next-gen-formats-Source-PSI--310x173.png 310w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/Google-recommends-serving-images-in-next-gen-formats-Source-PSI--768x429.png 768w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/Google-recommends-serving-images-in-next-gen-formats-Source-PSI--107x60.png 107w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/Google-recommends-serving-images-in-next-gen-formats-Source-PSI--161x90.png 161w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><figcaption class=\"wp-element-caption\">Google recommends serving images in next-gen formats &#8211; Source: <a href=\"https:\/\/pagespeed.web.dev\/\">PSI<\/a><br><\/figcaption><\/figure><p>In this article, we explain what next-gen formats are and how to use them easily in WordPress.&nbsp;<\/p><h2 class=\"wp-block-heading\">What Serve Images in Next-Gen Formats Means<\/h2><p>Serve images in next-gen formats means converting them from older existing formats (JPEG or PNG) to WebP or AVIF &#8211; which are both <strong>optimized for the web.&nbsp;<\/strong><\/p><h3 class=\"wp-block-heading\">What are Next-Gen Formats<\/h3><p>Next-gen formats such as WebP or AVIF provide superior compression features compared to all the other web image formats.&nbsp;<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"533\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/Next-gen-formats-better-compression-rate-and-preserved-quality-Source-WP-Rocket-.png\" alt=\"Next-gen formats: better compression rate and preserved quality - Source: WP Rocket \" class=\"wp-image-4872327\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/Next-gen-formats-better-compression-rate-and-preserved-quality-Source-WP-Rocket-.png 800w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/Next-gen-formats-better-compression-rate-and-preserved-quality-Source-WP-Rocket--293x195.png 293w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/Next-gen-formats-better-compression-rate-and-preserved-quality-Source-WP-Rocket--768x512.png 768w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/Next-gen-formats-better-compression-rate-and-preserved-quality-Source-WP-Rocket--90x60.png 90w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/Next-gen-formats-better-compression-rate-and-preserved-quality-Source-WP-Rocket--135x90.png 135w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><figcaption class=\"wp-element-caption\">Next-gen formats: better compression rate and preserved quality &#8211; Source: <a href=\"https:\/\/wp-rocket.me\/features\/\">WP Rocket<\/a><\/figcaption><\/figure><p><br><strong>AVIF: <\/strong>The AV1 image file format (AVIF) is an open-source image format for storing still and animated images. It was released in February 2019 by the <a href=\"https:\/\/aomedia.org\/\">Alliance for Open Media<\/a>. AVIF supports lossy and lossless compression to produce high-quality photos and compresses much better than most popular formats on the web today (JPEG, PNG WebP, JPEG 2000, etc.). AVIF can make you save up to 50% on the total file size.<\/p><p><strong>WebP:<\/strong> Introduced by Google in 2010, WebP is also a modern image format that provides superior lossless and lossy compression for images on the web. On average, Google&#8217;s developers suggest that a WebP image with lossy compression could be 25% to 34% smaller than a comparable JPEG file.<\/p><p>To show you an example, this is how an image looks in JPEG and WebP (quite similar, isn\u2019t it?)<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"377\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/Unaltered-image-quality-JPEG-vs-WebP-Source-Developers.Google-.png\" alt=\"Unaltered image quality (JPEG vs WebP) - Source: Developers.Google\n\" class=\"wp-image-4872338\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/Unaltered-image-quality-JPEG-vs-WebP-Source-Developers.Google-.png 800w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/Unaltered-image-quality-JPEG-vs-WebP-Source-Developers.Google--310x146.png 310w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/Unaltered-image-quality-JPEG-vs-WebP-Source-Developers.Google--768x362.png 768w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/Unaltered-image-quality-JPEG-vs-WebP-Source-Developers.Google--127x60.png 127w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/Unaltered-image-quality-JPEG-vs-WebP-Source-Developers.Google--191x90.png 191w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><figcaption class=\"wp-element-caption\">Unaltered image quality (JPEG vs WebP) &#8211; Source: <a href=\"https:\/\/developers.google.com\/speed\/webp\/gallery\">Developers.Google<\/a><br><\/figcaption><\/figure><p>By serving your images in next-gen formats, you will get a smaller file size while displaying high-quality visual content to visitors.&nbsp;<\/p><h4 class=\"wp-block-heading\">Impact on the Image Quality When Using Next-Gen Formats<\/h4><p>WebP provides a lossy and lossless compression for images on the web. However, even in lossy compression (right), the change is invisible to the human eye:&nbsp;<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"360\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/Image-quality-PNG-vs-WebP-Source-Developers.Google.png\" alt=\"Next-gen Format and Browser Compatibility\n\" class=\"wp-image-4872347\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/Image-quality-PNG-vs-WebP-Source-Developers.Google.png 800w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/Image-quality-PNG-vs-WebP-Source-Developers.Google-310x140.png 310w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/Image-quality-PNG-vs-WebP-Source-Developers.Google-768x346.png 768w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/Image-quality-PNG-vs-WebP-Source-Developers.Google-133x60.png 133w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/Image-quality-PNG-vs-WebP-Source-Developers.Google-200x90.png 200w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><figcaption class=\"wp-element-caption\">Next-gen Format and Browser Compatibility<\/figcaption><\/figure><p>Those new formats are supported by many browsers, but some are still lagging behind. WebP is the most supported format compared to AVIF.<\/p><p>According to PageSpeed Insights, here\u2019s the latest compatibility list:<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"533\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/Browsers-that-support-AVIF-and-WEBP-next-gen-formats-October-2022-Source-WP-Rocket.png\" alt=\"Browsers that support AVIF and WEBP next-gen formats (October 2022) - Source: WP Rocket\n\" class=\"wp-image-4872355\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/Browsers-that-support-AVIF-and-WEBP-next-gen-formats-October-2022-Source-WP-Rocket.png 800w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/Browsers-that-support-AVIF-and-WEBP-next-gen-formats-October-2022-Source-WP-Rocket-293x195.png 293w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/Browsers-that-support-AVIF-and-WEBP-next-gen-formats-October-2022-Source-WP-Rocket-768x512.png 768w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/Browsers-that-support-AVIF-and-WEBP-next-gen-formats-October-2022-Source-WP-Rocket-90x60.png 90w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/Browsers-that-support-AVIF-and-WEBP-next-gen-formats-October-2022-Source-WP-Rocket-135x90.png 135w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><figcaption class=\"wp-element-caption\">Browsers that support AVIF and WEBP next-gen formats (October 2022) &#8211; Source: <a href=\"https:\/\/wp-rocket.me\/\">WP Rocket<\/a><br><\/figcaption><\/figure><h3 class=\"wp-block-heading\">What the PageSpeed Insights Recommendation Means<\/h3><p>If you are getting the \u201cServe images in next-gen formats\u201d recommendation when running a performance test on PageSpeed Insights, it means you should better optimize your images and convert them to WebP or AVIF.&nbsp;<\/p><p>Let\u2019s explain what PSI\u2019s reasoning is behind this report.&nbsp;<\/p><p>In the figure below, PageSpeed Insights estimates that 2.7 s could be saved by simply converting the images to WebP or AVIF. The compression would be much more efficient than our current JPEG image, resulting in smaller file size and a faster loading page.&nbsp;<\/p><figure class=\"wp-block-table\"><table><tbody><tr><td>File size (JPEG) = 66.9 KB &nbsp; vs&nbsp; &nbsp; File size (WEBP) = 29.8 KB% of estimated savings while keeping the same quality = 56%<\/td><\/tr><\/tbody><\/table><\/figure><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"447\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/Google-recommending-to-serve-images-in-next-gen-formats-to-save-2.7s-of-loading-time-Source-PSI.png\" alt=\"Google recommending to serve images in next-gen formats to save 2.7s of loading time - Source: PSI\" class=\"wp-image-4872364\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/Google-recommending-to-serve-images-in-next-gen-formats-to-save-2.7s-of-loading-time-Source-PSI.png 800w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/Google-recommending-to-serve-images-in-next-gen-formats-to-save-2.7s-of-loading-time-Source-PSI-310x173.png 310w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/Google-recommending-to-serve-images-in-next-gen-formats-to-save-2.7s-of-loading-time-Source-PSI-768x429.png 768w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/Google-recommending-to-serve-images-in-next-gen-formats-to-save-2.7s-of-loading-time-Source-PSI-107x60.png 107w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/Google-recommending-to-serve-images-in-next-gen-formats-to-save-2.7s-of-loading-time-Source-PSI-161x90.png 161w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><figcaption class=\"wp-element-caption\">Google recommending to serve images in next-gen formats to save 2.7s of loading time &#8211; Source: <a href=\"https:\/\/pagespeed.web.dev\/\">PSI<\/a><\/figcaption><\/figure><figure class=\"wp-block-table\"><table><tbody><tr><td>\ud83d\udca1Hint: If you are not familiar with Lighthouse and PageSpeed Insights reports, read our full guide about <a href=\"https:\/\/wp-rocket.me\/lighthouse-performance-score-wordpress\/\">how to improve the Lighthouse performance score and metrics on WordPress<\/a>.<\/td><\/tr><\/tbody><\/table><\/figure><p>To calculate the total savings and create the final report, Lighthouse follows 3 steps:&nbsp;<\/p><ol class=\"wp-block-list\"><li>It scans the images on web pages that are not using a next-gen format: JPEG, PNG, BMP, etc.&nbsp;<\/li>\n\n<li>It converts them to WebP and estimates what would be the new file size when using a better compression&nbsp;<\/li>\n\n<li>It reports those estimated savings in the \u201cOpportunities\u201d section.<\/li><\/ol><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"533\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/How-Lighthouse-calculates-the-savings-when-generating-the-report-Source-WP-Rocket.png\" alt=\"How Lighthouse calculates the savings when generating the report - Source: WP Rocket\n\" class=\"wp-image-4872372\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/How-Lighthouse-calculates-the-savings-when-generating-the-report-Source-WP-Rocket.png 800w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/How-Lighthouse-calculates-the-savings-when-generating-the-report-Source-WP-Rocket-293x195.png 293w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/How-Lighthouse-calculates-the-savings-when-generating-the-report-Source-WP-Rocket-768x512.png 768w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/How-Lighthouse-calculates-the-savings-when-generating-the-report-Source-WP-Rocket-90x60.png 90w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/How-Lighthouse-calculates-the-savings-when-generating-the-report-Source-WP-Rocket-135x90.png 135w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><figcaption class=\"wp-element-caption\">How Lighthouse calculates the savings when generating the report &#8211; Source: <a href=\"https:\/\/wp-rocket.me\/\">WP Rocket<\/a><br><\/figcaption><\/figure><p>If you don\u2019t see all your images on the report, that means the potential saving of a particular image was less than 8KB. In that case, they are optimized enough for Lighthouse, who will ignore them when scanning your page.<\/p><p>Now that you know more about WebP and AVIF next-gen formats, it\u2019s important to highlight their actual impact on performance.<\/p><h2 class=\"wp-block-heading\">Why Next-Gen Formats Are Crucial for Performance: 3 Benefits<\/h2><p>Next-gen formats are great for your website performance because they compress your images more efficiently, reducing the page&#8217;s total loading time.\u00a0<\/p><h3 class=\"wp-block-heading\">Benefit #1 &#8211; A faster loading page<\/h3><p>In 2022, visual content like photos and videos is key to catching visitors\u2019 attention. However, websites with many unoptimized media embedded into the page often result in higher loading times. Finally, with mobile-friendly images, mobile users will consume less cellular data and won\u2019t wait too long for the page to be fully loaded.&nbsp;<\/p><p>To illustrate with an example, I created a simple WordPress page with 12 JPEG pictures:<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"1277\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/demo-site-next-gen.png\" alt=\"\" class=\"wp-image-4872379\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/demo-site-next-gen.png 800w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/demo-site-next-gen-122x195.png 122w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/demo-site-next-gen-768x1226.png 768w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/demo-site-next-gen-38x60.png 38w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/demo-site-next-gen-56x90.png 56w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><figcaption class=\"wp-element-caption\">WordPress page with images<\/figcaption><\/figure><p>I ran an audit on GTmetrix and put the data in the first column below.&nbsp;<\/p><p>Then, I converted those pictures to WebP, ran the performance test again, and wrote down the results in the last column.&nbsp;<\/p><p>The conclusion is clear: WebP images made my page smaller, lighter, and load faster.&nbsp;<\/p><figure class=\"wp-block-table\"><table><tbody><tr><td><\/td><td><strong>With images in JPEG<\/strong><\/td><td><strong>With images in WEBP<\/strong><\/td><\/tr><tr><td><strong>Page size<\/strong><\/td><td>1.3 MB<\/td><td>714 KB<\/td><\/tr><tr><td><strong>HTTP requests<\/strong><\/td><td>24&nbsp;<\/td><td>12<\/td><\/tr><tr><td><strong>Page load time&nbsp;<\/strong><\/td><td>2.895 s<\/td><td>1.789 s<\/td><\/tr><\/tbody><\/table><\/figure><h3 class=\"wp-block-heading\">Benefit #2 &#8211; Healthy <a href=\"https:\/\/wp-rocket.me\/google-core-web-vitals-wordpress\/\"><strong>Core Web Vitals<\/strong><\/a> and better PSI scores<\/h3><p>Google uses three key metrics to measure the user experience of a web page. You may have heard much about them in the last couple of years. They are called the Core Web Vitals. Image optimization processes &#8211; including converting images to next-gen formats &#8211; mainly impact the two following Core Web Vitals:<\/p><ul class=\"wp-block-list\"><li><a href=\"https:\/\/wp-rocket.me\/google-core-web-vitals-wordpress\/improve-cumulative-layout-shift\/\">Cumulative Layout Shift<\/a> (CLS) measures any sudden shifts in the layout. If you make sure that your images load quickly, then you won\u2019t cause any unexpected layout shifts to the page.&nbsp;<\/li>\n\n<li><a href=\"https:\/\/wp-rocket.me\/google-core-web-vitals-wordpress\/improve-largest-contentful-paint\/\">Largest Contentful Paint <\/a>(LCP) represents how quickly the main content of a web page is loaded. If your LCP is an image, it needs to be loaded as soon as possible if you want to keep a green score. Converting it to WebP is the way to ensure that users can see the most important content load quickly.&nbsp;<\/li><\/ul><h3 class=\"wp-block-heading\">Benefit #3 &#8211; Save space on your server without compromising quality<\/h3><p>Next-gen formats are made<em> for the web, <\/em>meaning they are optimized to weigh lighter and save bandwidth. WebP and AVIF formats offer the dual advantage of taking up less data while maintaining a very high level of quality.<\/p><p>As you can see in our comparison figures below, the images served in WebP are much lighter than the JPEG ones:<\/p><p><strong>JPEG Images (file size):&nbsp;<\/strong><\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"470\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/Image-files-are-larger-when-served-in-the-JPEG-format-Source-Google-Dev-Tools.png\" alt=\"Image files are larger when served in the JPEG format - Source: Google Dev Tools\n\" class=\"wp-image-4872386\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/Image-files-are-larger-when-served-in-the-JPEG-format-Source-Google-Dev-Tools.png 800w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/Image-files-are-larger-when-served-in-the-JPEG-format-Source-Google-Dev-Tools-310x182.png 310w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/Image-files-are-larger-when-served-in-the-JPEG-format-Source-Google-Dev-Tools-768x451.png 768w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/Image-files-are-larger-when-served-in-the-JPEG-format-Source-Google-Dev-Tools-102x60.png 102w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/Image-files-are-larger-when-served-in-the-JPEG-format-Source-Google-Dev-Tools-153x90.png 153w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><figcaption class=\"wp-element-caption\">Image files are larger when served in the JPEG format &#8211; Source: Google Dev Tools<br><\/figcaption><\/figure><p><strong>WebP Images (file size):&nbsp;<\/strong><\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"446\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/Lighter-images-when-served-in-the-WebP-format-Source-Google-Dev-Tools-.png\" alt=\"Lighter images when served in the WebP format - Source: Google Dev Tools\n\n\" class=\"wp-image-4872395\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/Lighter-images-when-served-in-the-WebP-format-Source-Google-Dev-Tools-.png 800w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/Lighter-images-when-served-in-the-WebP-format-Source-Google-Dev-Tools--310x173.png 310w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/Lighter-images-when-served-in-the-WebP-format-Source-Google-Dev-Tools--768x428.png 768w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/Lighter-images-when-served-in-the-WebP-format-Source-Google-Dev-Tools--108x60.png 108w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/Lighter-images-when-served-in-the-WebP-format-Source-Google-Dev-Tools--161x90.png 161w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><figcaption class=\"wp-element-caption\">Lighter images when served in the WebP format &#8211; Source: Google Dev Tools<br><\/figcaption><\/figure><h3 class=\"wp-block-heading\">Comparison Data: PNG vs JPEG vs WebP<\/h3><p>Google developers also did several advanced pieces of research and found out 3 interesting conclusions about the next-gen formats:&nbsp;<\/p><ul class=\"wp-block-list\"><li>WebP lossless images are <a href=\"https:\/\/developers.google.com\/speed\/webp\/docs\/webp_lossless_alpha_study#results\">26% smaller<\/a> in size compared to PNGs.&nbsp;<\/li><\/ul><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"603\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/Images-better-compressed-using-WebP-than-PNG-Source-WebP.developers-.png\" alt=\"Images better compressed using WebP than PNG - Source: WebP.developers\n\" class=\"wp-image-4872405\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/Images-better-compressed-using-WebP-than-PNG-Source-WebP.developers-.png 800w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/Images-better-compressed-using-WebP-than-PNG-Source-WebP.developers--259x195.png 259w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/Images-better-compressed-using-WebP-than-PNG-Source-WebP.developers--768x579.png 768w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/Images-better-compressed-using-WebP-than-PNG-Source-WebP.developers--80x60.png 80w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/Images-better-compressed-using-WebP-than-PNG-Source-WebP.developers--119x90.png 119w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><figcaption class=\"wp-element-caption\">Images better compressed using WebP than PNG &#8211; Source: <a href=\"https:\/\/developers.google.com\/speed\/webp\/docs\/webp_study\">WebP.developers<\/a><br><\/figcaption><\/figure><ul class=\"wp-block-list\"><li>On average, WebP lossy images are <a href=\"https:\/\/developers.google.com\/speed\/webp\/docs\/webp_study\">25-34% smaller<\/a> than comparable JPEG images:&nbsp;<\/li><\/ul><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"227\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/Average-file-size-WebP-vs-JPEG-Source-WebP.developers-.png\" alt=\"\" class=\"wp-image-4872419\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/Average-file-size-WebP-vs-JPEG-Source-WebP.developers-.png 800w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/Average-file-size-WebP-vs-JPEG-Source-WebP.developers--310x88.png 310w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/Average-file-size-WebP-vs-JPEG-Source-WebP.developers--768x218.png 768w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/Average-file-size-WebP-vs-JPEG-Source-WebP.developers--190x54.png 190w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/Average-file-size-WebP-vs-JPEG-Source-WebP.developers--317x90.png 317w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><figcaption class=\"wp-element-caption\">Average file size WebP vs JPEG &#8211; Source: <a href=\"https:\/\/developers.google.com\/speed\/webp\/docs\/webp_study\">WebP.developers<\/a><br><\/figcaption><\/figure><ul class=\"wp-block-list\"><li>WebP requires fewer bits per pixel than JPEG to achieve the same quality result.<\/li><\/ul><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"522\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/Bits-needed-per-pixel-WebP-vs-JPEG-Source-WebP.developers-.png\" alt=\"Bits needed per pixel (WebP vs JPEG) - Source: WebP.developers\n\" class=\"wp-image-4872427\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/Bits-needed-per-pixel-WebP-vs-JPEG-Source-WebP.developers-.png 800w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/Bits-needed-per-pixel-WebP-vs-JPEG-Source-WebP.developers--299x195.png 299w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/Bits-needed-per-pixel-WebP-vs-JPEG-Source-WebP.developers--768x501.png 768w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/Bits-needed-per-pixel-WebP-vs-JPEG-Source-WebP.developers--92x60.png 92w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/Bits-needed-per-pixel-WebP-vs-JPEG-Source-WebP.developers--138x90.png 138w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><figcaption class=\"wp-element-caption\">Bits needed per pixel (WebP vs JPEG) &#8211; Source: <a href=\"https:\/\/developers.google.com\/speed\/webp\/docs\/webp_study\">WebP.developers<\/a><br><\/figcaption><\/figure><p>Switching from traditional image formats like PNG or JPEG to next-gen image formats can be done manually or using a WordPress plugin.<\/p><h2 class=\"wp-block-heading\">The Manual Solutions to Serve Images in Next-gen Formats (With Coding)<\/h2><h3 class=\"wp-block-heading\">Solution #1 &#8211; Using the &lt;Picture> Element\u00a0<\/h3><p>To convert your images to any next-gen formats like WebP, you can use the HTML5 &lt;picture&gt; tag<\/p><pre class=\"wp-block-code\"><code class=\"\">&lt;picture&gt;\n  &lt;source srcset=\"\/path\/to\/image.webp\" type=\"image\/webp\"&gt;\n  &lt;img src=\"\/path\/to\/image.JPEG\" alt=\"\"&gt;\n&lt;\/picture&gt;\n<\/code><\/pre><h3 class=\"wp-block-heading\">Solution #2 &#8211; Modifying the .htaccess file<\/h3><p>The .htaccess file is a powerful file that controls the high-level configuration of your website. You can add the following code snippet from <a href=\"https:\/\/github.com\/vincentorback\/WebP-images-with-htaccess\">GitHub <\/a>in your .htaccess file to replace JPEG\/PNG\/GIF images with WebP images:<\/p><pre class=\"wp-block-code\"><code class=\"\">&lt;IfModule mod_rewrite.c&gt;\n  RewriteEngine On\n \n  # Check if browser supports WebP images\n  RewriteCond %{HTTP_ACCEPT} image\/webp\n \n  # Check if WebP replacement image exists\n  RewriteCond %{DOCUMENT_ROOT}\/$1.webp -f\n \n  # Serve WebP image instead\n  RewriteRule (.+)\\.(jpe?g|png|gif)$ $1.webp [T=image\/webp,E=REQUEST_image]\n&lt;\/IfModule&gt;\n \n&lt;IfModule mod_headers.c&gt;\n  # Vary: Accept for all the requests to jpeg, png and gif\n  Header append Vary Accept env=REQUEST_image\n&lt;\/IfModule&gt;\n \n&lt;IfModule mod_mime.c&gt;\n  AddType image\/webp .webp\n&lt;\/IfModule&gt;\n<\/code><\/pre><p>A final note: modifying the .htaccess file could break things if you are not too familiar with coding. A more responsible approach may be to <a href=\"https:\/\/googlechrome.github.io\/samples\/picture-element\/\">use the &lt;picture&gt; tag<\/a> or a WordPress plugin.<\/p><h2 class=\"wp-block-heading\">Use Next-Gen Formats on WordPress With a Plugin<\/h2><p>There are five popular plugins you can use to optimize your images and serve them into next-gen formats:<\/p><ol class=\"wp-block-list\"><li><a href=\"https:\/\/imagify.io\/pricing\/\">Imagify<\/a> &#8211; a free WebP conversion plugin for around 200 images a month.<\/li>\n\n<li><a href=\"https:\/\/wordpress.org\/plugins\/webp-converter-for-media\/\">WebP Converter for Media<\/a> &#8211; replaces files in standard JPEG, PNG, and GIF formats with WebP format.<\/li>\n\n<li><a href=\"https:\/\/wordpress.org\/plugins\/webp-express\/\">WebP Express<em> <\/em><\/a><em>&#8211; <\/em>adds a simple line of code to serve WebP images.<\/li>\n\n<li><a href=\"https:\/\/wordpress.org\/plugins\/ewww-image-optimizer\/\">EWWW<\/a> &#8211; comes with smart conversion options.<\/li>\n\n<li><a href=\"https:\/\/wordpress.org\/plugins\/shortpixel-image-optimiser\/\">Shortpixel Image Optimizer<\/a> converts JPEG, PNG, or GIF to WebP and AVIF.<\/li><\/ol><p>Let\u2019s go over each of them to see how the WebP conversion works and what the admin panel looks like.&nbsp;<\/p><h3 class=\"wp-block-heading\">1. <a href=\"https:\/\/imagify.io\/features\/\">Imagify<\/a><\/h3><p>Thanks to Imagify, you can easily convert your images to WebP and Avif, using a user-friendly interface, directly from WordPress! <a href=\"https:\/\/imagify.io\/blog\/best-image-optimizer-plugins-wordpress\/\">Imagify is also one of the best image optimizer plugins<\/a> for WordPress that allows you to compress your images in one click while preserving high quality.<\/p><p><strong>Step 1: <\/strong><a href=\"https:\/\/wordpress.org\/plugins\/imagify\/\">Download<\/a> and install Imagify. Activate the plugin, and don\u2019t forget to create your free API key.<\/p><p><strong>Step 2: <\/strong>Go to <strong>Settings &gt; Imagify <\/strong>and scroll to the <strong>Optimization <\/strong>tab.&nbsp;<br><br><strong>Step 3:<\/strong> Select all the options \u201c<strong>Create Avif version of images<\/strong>\u201d, \u201c<strong>Display images in Next-gen format on the site<\/strong>\u201d as well as \u201c<strong>Use &lt;picture&gt; tags<\/strong>\u201d:<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1277\" height=\"572\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/03\/Create-Avif-version-of-images-option-Optimization-tab.png\" alt=\"\" class=\"wp-image-6636792\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/03\/Create-Avif-version-of-images-option-Optimization-tab.png 1277w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/03\/Create-Avif-version-of-images-option-Optimization-tab-310x139.png 310w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/03\/Create-Avif-version-of-images-option-Optimization-tab-768x344.png 768w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/03\/Create-Avif-version-of-images-option-Optimization-tab-134x60.png 134w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/03\/Create-Avif-version-of-images-option-Optimization-tab-201x90.png 201w\" sizes=\"(max-width: 1277px) 100vw, 1277px\" \/><figcaption class=\"wp-element-caption\">Converting images to Avif with Imagify &#8211; Source: Imagify\u2019s dashboard<br><\/figcaption><\/figure><p>That\u2019s it! All your images will now be served to Avif.&nbsp;<\/p><div id=\"om-xwmxyufhhr3rxywiohez-holder\"><\/div>\n\t<script>(function (d, u, ac) {\n\t\t\tvar s = d.createElement('script')\n\t\t\ts.type = 'text\/javascript'\n\t\t\ts.src = 'https:\/\/a.omappapi.com\/app\/js\/api.min.js'\n\t\t\ts.async = true\n\t\t\ts.dataset.user = u\n\t\t\ts.dataset.campaign = ac\n\t\t\td.getElementsByTagName('head')[0].appendChild(s)\n\t\t})(document, 20440, 'xwmxyufhhr3rxywiohez')<\/script><h3 class=\"wp-block-heading\">2. <a href=\"https:\/\/wordpress.org\/plugins\/webp-converter-for-media\/\">WebP Converter for Media<\/a><\/h3><p>WebP converter for Media optimizes images and serves WebP and AVIF images (in the Pro version only) instead of standard formats.<\/p><p><strong>Step 1: <\/strong>&nbsp;Install WebP Converter&nbsp;<\/p><p><strong>Step 2: <\/strong>Go to <strong>General Settings <\/strong>&gt;<strong> Conversion strategy<\/strong> &gt; <strong>List of supported output formats <\/strong>and select \u201c<strong>WebP<\/strong>\u201d.<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"486\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/Conversion-strategy-with-Converter-for-Media-Source-Converter-for-Medias-dashboard.png\" alt=\"\" class=\"wp-image-4872484\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/Conversion-strategy-with-Converter-for-Media-Source-Converter-for-Medias-dashboard.png 800w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/Conversion-strategy-with-Converter-for-Media-Source-Converter-for-Medias-dashboard-310x188.png 310w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/Conversion-strategy-with-Converter-for-Media-Source-Converter-for-Medias-dashboard-768x467.png 768w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/Conversion-strategy-with-Converter-for-Media-Source-Converter-for-Medias-dashboard-99x60.png 99w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/Conversion-strategy-with-Converter-for-Media-Source-Converter-for-Medias-dashboard-148x90.png 148w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><figcaption class=\"wp-element-caption\">Conversion strategy with Converter for Media- Source: Converter for Media\u2019s dashboard<br><\/figcaption><\/figure><p><strong>Step 3: <\/strong>Scroll down to the bottom of the options page and click on the <strong>Start Bulk Optimization <\/strong>button.&nbsp;<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"735\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/Conversion-to-WebP-in-progress-with-Converter-for-Media-Source-Converter-for-Medias-dashboard.png\" alt=\"Conversion to WebP in progress with Converter for Media - Source: Converter for Media\u2019s dashboard\n\" class=\"wp-image-4872493\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/Conversion-to-WebP-in-progress-with-Converter-for-Media-Source-Converter-for-Medias-dashboard.png 800w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/Conversion-to-WebP-in-progress-with-Converter-for-Media-Source-Converter-for-Medias-dashboard-212x195.png 212w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/Conversion-to-WebP-in-progress-with-Converter-for-Media-Source-Converter-for-Medias-dashboard-768x706.png 768w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/Conversion-to-WebP-in-progress-with-Converter-for-Media-Source-Converter-for-Medias-dashboard-65x60.png 65w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/Conversion-to-WebP-in-progress-with-Converter-for-Media-Source-Converter-for-Medias-dashboard-98x90.png 98w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><figcaption class=\"wp-element-caption\">Conversion to WebP in progress with Converter for Media &#8211; Source: Converter for Media\u2019s dashboard<br><\/figcaption><\/figure><h3 class=\"wp-block-heading\">3. <a href=\"https:\/\/wordpress.org\/plugins\/webp-express\/\">WebP Express<\/a><\/h3><p>WebP express serves auto-generated WebP images instead of JPEG\/PNG to browsers that support WebP. <em>I found the interface a little bit overwhelming, with many options available to convert images to WebP using several methods. <\/em>But overall, the plugin did the job very well!<\/p><p><strong>Step 1:<\/strong> Install the plugin<br><br><strong>Step 2:<\/strong> Choose the options that fit best for you. E.g.,: lossy or lossless compression, enable redirection to converter, etc.<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"621\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/WebP-conversion-with-WebP-Express-Source-WebP-Express-dashboard-.png\" alt=\"WebP conversion with WebP Express - Source: WebP Express dashboard\" class=\"wp-image-4872505\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/WebP-conversion-with-WebP-Express-Source-WebP-Express-dashboard-.png 800w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/WebP-conversion-with-WebP-Express-Source-WebP-Express-dashboard--251x195.png 251w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/WebP-conversion-with-WebP-Express-Source-WebP-Express-dashboard--768x596.png 768w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/WebP-conversion-with-WebP-Express-Source-WebP-Express-dashboard--77x60.png 77w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/WebP-conversion-with-WebP-Express-Source-WebP-Express-dashboard--116x90.png 116w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><figcaption class=\"wp-element-caption\">WebP conversion with WebP Express &#8211; Source: WebP Express dashboard<\/figcaption><\/figure><p><br><strong>Step 3:<\/strong> Save the settings<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"142\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/WebP-Express-Saving-Button.png\" alt=\"Save the settings -  Source: WebP Express dashboard \" class=\"wp-image-4872518\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/WebP-Express-Saving-Button.png 800w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/WebP-Express-Saving-Button-310x55.png 310w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/WebP-Express-Saving-Button-768x136.png 768w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/WebP-Express-Saving-Button-190x34.png 190w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/WebP-Express-Saving-Button-507x90.png 507w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><figcaption class=\"wp-element-caption\">Save the settings &#8211;  Source: WebP Express dashboard <\/figcaption><\/figure><h3 class=\"wp-block-heading\">4. <a href=\"https:\/\/wordpress.org\/plugins\/ewww-image-optimizer\/\">EWWW Image Optimizer Plugin<\/a>&nbsp;<\/h3><p>With the EWWW plugin, WebP conversion is possible for every PNG, JPG, and GIF image on your entire WordPress site.<\/p><p><strong>Step 1: <\/strong><a href=\"https:\/\/wordpress.org\/plugins\/ewww-image-optimizer\/\">Download<\/a> the EWWW plugin and activate it on your WordPress site<\/p><p><strong>Step 2: <\/strong>Go to the <strong>basic<\/strong> settings and scroll down to the <strong>WebP Conversion<\/strong> section. Make sure to tick the box!<\/p><p><strong>Step 3: <\/strong>Choose your WebP delivery method.<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"467\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/WebP-conversion-strategy-with-EWWW-Source-the-EWWW-WordPress-dashboard-.png\" alt=\"WebP conversion strategy with EWWW - Source: the EWWW WordPress dashboard\" class=\"wp-image-4872532\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/WebP-conversion-strategy-with-EWWW-Source-the-EWWW-WordPress-dashboard-.png 800w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/WebP-conversion-strategy-with-EWWW-Source-the-EWWW-WordPress-dashboard--310x181.png 310w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/WebP-conversion-strategy-with-EWWW-Source-the-EWWW-WordPress-dashboard--768x448.png 768w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/WebP-conversion-strategy-with-EWWW-Source-the-EWWW-WordPress-dashboard--103x60.png 103w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/WebP-conversion-strategy-with-EWWW-Source-the-EWWW-WordPress-dashboard--154x90.png 154w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><figcaption class=\"wp-element-caption\">WebP conversion strategy with EWWW &#8211; Source: the EWWW WordPress dashboard<\/figcaption><\/figure><h3 class=\"wp-block-heading\">5. <a href=\"https:\/\/wordpress.org\/plugins\/shortpixel-image-optimiser\/\">Shortpixel Image Optimizer<\/a><\/h3><p>With ShortPixel, you can create WebP images alongside existing ones when optimizing them.<\/p><p><strong>Step 1:<\/strong> Download Shortpixel and activate your API key<\/p><p><strong>Step 2: <\/strong>Go to the<strong> Advanced tab <\/strong>and make sure to activate all the options related to the next-gen images as shown below:&nbsp;<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"395\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/WebP-and-AVIF-conversion-with-ShortPixel-Source-ShortPixel-dashboard-.png\" alt=\"WebP and AVIF conversion with ShortPixel - Source: ShortPixel dashboard\" class=\"wp-image-4872542\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/WebP-and-AVIF-conversion-with-ShortPixel-Source-ShortPixel-dashboard-.png 800w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/WebP-and-AVIF-conversion-with-ShortPixel-Source-ShortPixel-dashboard--310x153.png 310w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/WebP-and-AVIF-conversion-with-ShortPixel-Source-ShortPixel-dashboard--768x379.png 768w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/WebP-and-AVIF-conversion-with-ShortPixel-Source-ShortPixel-dashboard--122x60.png 122w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/WebP-and-AVIF-conversion-with-ShortPixel-Source-ShortPixel-dashboard--182x90.png 182w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><figcaption class=\"wp-element-caption\">WebP and AVIF conversion with ShortPixel &#8211; Source: ShortPixel dashboard<br><\/figcaption><\/figure><h2 class=\"wp-block-heading\">Wrapping Up<\/h2><p>Serving images in next-gen formats on WordPress is a great step toward performance improvement. WebP and AVIF formats are a winning combination to save on file size, bandwidth, and mobile data and improve the page loading speed. AVIF is more efficient in terms of compression, but it\u2019s also supported on fewer browsers compared to WebP.&nbsp;<\/p><p>We\u2019ve seen that converting JPEG or PNG to WebP was very easy with a WordPress plugin like <a href=\"https:\/\/imagify.io\/features\/\">Imagify<\/a>. You can implement manual techniques but stick to the plugin options if you are not too comfortable editing your code files.&nbsp;<\/p><p>If you want to give an extra speed boost to your WordPress site, you can add another arrow in the quiver by using <a href=\"https:\/\/wp-rocket.me\/features\/\">WP Rocket.<\/a> It\u2019s one of the <a href=\"https:\/\/wp-rocket.me\/best-wordpress-caching-plugin\/\">best caching plugins for WordPress<\/a> that allows you to apply lazy loading on your images, optimize your code, and make many other performance improvements out of the box.<\/p>","protected":false},"excerpt":{"rendered":"<p>What are next-gen formats? And how can you serve images in next-gen formats and address the PageSpeed Insights recommendation? Read our article and learn everything you should know.<\/p>\n","protected":false},"template":"","core_web_vitals":[132],"class_list":["post-4872307","core_web_vitals_hub","type-core_web_vitals_hub","status-publish","hentry","core_web_vitals-improve-largest-contentful-paint"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Serve Images in Next-Gen Formats<\/title>\n<meta name=\"description\" content=\"What are next-gen formats? And how can you serve images in next-gen formats? Get all the information you need in our article.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/wp-rocket.me\/google-core-web-vitals-wordpress\/serve-images-next-gen-formats\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Serve Images in Next-Gen Formats\" \/>\n<meta property=\"og:description\" content=\"What are next-gen formats? And how can you serve images in next-gen formats? Get all the information you need in our article.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/wp-rocket.me\/google-core-web-vitals-wordpress\/serve-images-next-gen-formats\/\" \/>\n<meta property=\"og:site_name\" content=\"WP Rocket\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/pages\/WP-Rocket\/631942253526829\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-05T12:36:30+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/Google-recommends-serving-images-in-next-gen-formats-Source-PSI-.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@wp_rocket\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"14 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/wp-rocket.me\/google-core-web-vitals-wordpress\/serve-images-next-gen-formats\/\",\"url\":\"https:\/\/wp-rocket.me\/google-core-web-vitals-wordpress\/serve-images-next-gen-formats\/\",\"name\":\"How to Serve Images in Next-Gen Formats\",\"isPartOf\":{\"@id\":\"https:\/\/wp-rocket.me\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/wp-rocket.me\/google-core-web-vitals-wordpress\/serve-images-next-gen-formats\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/wp-rocket.me\/google-core-web-vitals-wordpress\/serve-images-next-gen-formats\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/Google-recommends-serving-images-in-next-gen-formats-Source-PSI-.png\",\"datePublished\":\"2022-10-25T06:42:14+00:00\",\"dateModified\":\"2024-11-05T12:36:30+00:00\",\"description\":\"What are next-gen formats? And how can you serve images in next-gen formats? Get all the information you need in our article.\",\"breadcrumb\":{\"@id\":\"https:\/\/wp-rocket.me\/google-core-web-vitals-wordpress\/serve-images-next-gen-formats\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/wp-rocket.me\/google-core-web-vitals-wordpress\/serve-images-next-gen-formats\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/wp-rocket.me\/google-core-web-vitals-wordpress\/serve-images-next-gen-formats\/#primaryimage\",\"url\":\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/Google-recommends-serving-images-in-next-gen-formats-Source-PSI-.png\",\"contentUrl\":\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/Google-recommends-serving-images-in-next-gen-formats-Source-PSI-.png\",\"width\":800,\"height\":447},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/wp-rocket.me\/google-core-web-vitals-wordpress\/serve-images-next-gen-formats\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/wp-rocket.me\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Core Web Vitals\",\"item\":\"https:\/\/wp-rocket.me\/google-core-web-vitals-wordpress\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Largest Contentful Paint\",\"item\":\"https:\/\/wp-rocket.me\/google-core-web-vitals-wordpress\/improve-largest-contentful-paint\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"How to Serve Images in Next-Gen Formats\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/wp-rocket.me\/#website\",\"url\":\"https:\/\/wp-rocket.me\/\",\"name\":\"WP Rocket\",\"description\":\"Plugin d&#039;optimisation de sites WordPress\",\"publisher\":{\"@id\":\"https:\/\/wp-rocket.me\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/wp-rocket.me\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/wp-rocket.me\/#organization\",\"name\":\"WP Rocket\",\"url\":\"https:\/\/wp-rocket.me\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/wp-rocket.me\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/logo-wp-rocket-paypal-2.png\",\"contentUrl\":\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/logo-wp-rocket-paypal-2.png\",\"width\":150,\"height\":41,\"caption\":\"WP Rocket\"},\"image\":{\"@id\":\"https:\/\/wp-rocket.me\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/pages\/WP-Rocket\/631942253526829\",\"https:\/\/x.com\/wp_rocket\",\"https:\/\/www.youtube.com\/channel\/UC1ozThXHd1IWIZ5wkshgp_Q\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Serve Images in Next-Gen Formats","description":"What are next-gen formats? And how can you serve images in next-gen formats? Get all the information you need in our article.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/wp-rocket.me\/google-core-web-vitals-wordpress\/serve-images-next-gen-formats\/","og_locale":"en_US","og_type":"article","og_title":"How to Serve Images in Next-Gen Formats","og_description":"What are next-gen formats? And how can you serve images in next-gen formats? Get all the information you need in our article.","og_url":"https:\/\/wp-rocket.me\/google-core-web-vitals-wordpress\/serve-images-next-gen-formats\/","og_site_name":"WP Rocket","article_publisher":"https:\/\/www.facebook.com\/pages\/WP-Rocket\/631942253526829","article_modified_time":"2024-11-05T12:36:30+00:00","og_image":[{"url":"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/Google-recommends-serving-images-in-next-gen-formats-Source-PSI-.png"}],"twitter_card":"summary_large_image","twitter_site":"@wp_rocket","twitter_misc":{"Est. reading time":"14 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/wp-rocket.me\/google-core-web-vitals-wordpress\/serve-images-next-gen-formats\/","url":"https:\/\/wp-rocket.me\/google-core-web-vitals-wordpress\/serve-images-next-gen-formats\/","name":"How to Serve Images in Next-Gen Formats","isPartOf":{"@id":"https:\/\/wp-rocket.me\/#website"},"primaryImageOfPage":{"@id":"https:\/\/wp-rocket.me\/google-core-web-vitals-wordpress\/serve-images-next-gen-formats\/#primaryimage"},"image":{"@id":"https:\/\/wp-rocket.me\/google-core-web-vitals-wordpress\/serve-images-next-gen-formats\/#primaryimage"},"thumbnailUrl":"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/Google-recommends-serving-images-in-next-gen-formats-Source-PSI-.png","datePublished":"2022-10-25T06:42:14+00:00","dateModified":"2024-11-05T12:36:30+00:00","description":"What are next-gen formats? And how can you serve images in next-gen formats? Get all the information you need in our article.","breadcrumb":{"@id":"https:\/\/wp-rocket.me\/google-core-web-vitals-wordpress\/serve-images-next-gen-formats\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/wp-rocket.me\/google-core-web-vitals-wordpress\/serve-images-next-gen-formats\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wp-rocket.me\/google-core-web-vitals-wordpress\/serve-images-next-gen-formats\/#primaryimage","url":"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/Google-recommends-serving-images-in-next-gen-formats-Source-PSI-.png","contentUrl":"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/10\/Google-recommends-serving-images-in-next-gen-formats-Source-PSI-.png","width":800,"height":447},{"@type":"BreadcrumbList","@id":"https:\/\/wp-rocket.me\/google-core-web-vitals-wordpress\/serve-images-next-gen-formats\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/wp-rocket.me"},{"@type":"ListItem","position":2,"name":"Core Web Vitals","item":"https:\/\/wp-rocket.me\/google-core-web-vitals-wordpress\/"},{"@type":"ListItem","position":3,"name":"Largest Contentful Paint","item":"https:\/\/wp-rocket.me\/google-core-web-vitals-wordpress\/improve-largest-contentful-paint\/"},{"@type":"ListItem","position":4,"name":"How to Serve Images in Next-Gen Formats"}]},{"@type":"WebSite","@id":"https:\/\/wp-rocket.me\/#website","url":"https:\/\/wp-rocket.me\/","name":"WP Rocket","description":"Plugin d&#039;optimisation de sites WordPress","publisher":{"@id":"https:\/\/wp-rocket.me\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/wp-rocket.me\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/wp-rocket.me\/#organization","name":"WP Rocket","url":"https:\/\/wp-rocket.me\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wp-rocket.me\/#\/schema\/logo\/image\/","url":"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/logo-wp-rocket-paypal-2.png","contentUrl":"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/logo-wp-rocket-paypal-2.png","width":150,"height":41,"caption":"WP Rocket"},"image":{"@id":"https:\/\/wp-rocket.me\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/pages\/WP-Rocket\/631942253526829","https:\/\/x.com\/wp_rocket","https:\/\/www.youtube.com\/channel\/UC1ozThXHd1IWIZ5wkshgp_Q"]}]}},"_links":{"self":[{"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/core_web_vitals_hub\/4872307"}],"collection":[{"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/core_web_vitals_hub"}],"about":[{"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/types\/core_web_vitals_hub"}],"wp:attachment":[{"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/media?parent=4872307"}],"wp:term":[{"taxonomy":"core_web_vitals","embeddable":true,"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/core_web_vitals?post=4872307"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}