JPG for photographs
JPG remains the safest choice for photographic content on WordPress. It produces small files with good quality, is supported by every browser and device, and is the format WordPress handles most reliably. For hero images, blog post photos, and product photography, JPG at quality 80 to 85 is usually the best starting point. Avoid using JPG for screenshots, text graphics, or images with transparency, as the lossy compression creates visible artifacts around sharp edges and text. When converting from PNG or WebP to JPG, remember that transparency will be lost, so flatten the image against an appropriate background color first.
PNG for graphics and screenshots
PNG is lossless and supports transparency, making it ideal for screenshots, logos, icons, diagrams, and any image with text or sharp edges. The tradeoff is file size: photographic PNGs can be two to five times larger than equivalent JPGs. Use PNG only when lossless quality or transparency is genuinely needed. For WordPress sites, logos and interface screenshots are the most common PNG use cases. If a PNG photograph exceeds 500 kilobytes, consider whether JPG would be acceptable, or convert to WebP or AVIF for delivery while keeping the PNG as the source master.
WebP and AVIF for modern delivery
WebP delivers 25 to 35 percent smaller files than JPG at equivalent quality and supports both lossy and lossless modes plus transparency. AVIF goes further, offering 20 to 50 percent savings over WebP, though encoding is slower and browser support is slightly narrower. WordPress can generate WebP automatically, but AVIF requires a plugin or CDN. The recommended approach for 2026 is to serve AVIF to supporting browsers with WebP as the fallback and JPG or PNG for legacy clients. This can be achieved with the picture element, a plugin like ShortPixel or Imagify, or a CDN that performs automatic format conversion at the edge.