Image Formats for Trades Websites: JPEG, PNG, WebP, AVIF and SVG Compared
Job photos are the heaviest thing on most trades sites. Choosing the right format is the cheapest speed gain you can make. This guide compares the common formats using web.dev’s advice.
I am Robiul Alom Ronju, Founder of Nexranking. The figures and rules below come from the pages linked in Sources. My own advice is marked as mine.

Start with whether you need the image
Web.dev’s first piece of advice is to remove an image if you can, because images are often the heaviest assets on a page. Use CSS effects such as shadows or gradients, or web fonts, where they can do the job. They scale cleanly and are smaller.
Do not put text in images
Text inside an image cannot be selected, searched or read by assistive technology, and it looks poor on high-resolution screens. For a trades site, put your phone number, prices and service lists in real text, not in a banner picture.
When each format fits
- SVG: logos, icons and simple shapes. It stays sharp at any size but is a poor fit for photos.
- JPEG: photos and screenshots, supported everywhere. Test several quality levels to find the best size for the look.
- PNG: lossless with transparency, but files are large. Use it sparingly.
- WebP: supported by modern browsers. Lossy WebP can replace JPEG and lossless WebP can beat PNG on size.
- AVIF: also supported by modern browsers. Lossy AVIF can replace JPEG and supports transparency and animation.
Animations
Web.dev says to use video rather than GIF or APNG. GIF is limited to 256 colours and produces much larger files.
Compression and fallbacks
Web.dev suggests preferring WebP or AVIF where possible and using JPEG or PNG as a fallback. Lossy modes discard information, so some colours may differ slightly from a JPEG version, so check the result by eye.
High resolution screens
Each 2x step in screen resolution quadruples the number of pixels, so raster images need more data to look sharp. Web.dev recommends vector images where you can and responsive images where you cannot.
What to do on a trades site
This is my own advice. Keep logos as SVG, job photos as WebP or JPEG at a sensible width, and avoid PNG for photos. Do not upload camera originals. Check the hero image first, because it often sets LCP. Add clear alt text, see image SEO for trades.
A simple upload routine
- Pick the best photo, not the first one.
- Crop it to the shape the page needs.
- Resize to the width shown on screen, allowing for sharp phone screens.
- Export as WebP or JPEG and check by eye.
- Name the file in plain words, for example boiler-install-croydon.webp.
- Add alt text that describes the job.
This is my own routine, built around web.dev’s advice.
A worked example
Illustrative example, not a client case. A bathroom fitter has 40 job photos at 3 MB each in JPEG. He resizes them to a sensible width, exports WebP with a JPEG fallback, keeps his logo as SVG and replaces a text banner image with real text. The gallery page loses about 90% of its weight.
Mistakes I see
- Uploading camera originals.
- Using PNG for photos.
- Text baked into banners.
- GIFs for animation.
- Skipping a visual check after compression.
Next, read CLS and ask for an audit.
Should I use WebP or AVIF?
Web.dev says both are supported by modern browsers. Use JPEG or PNG as a fallback where needed.
Is PNG good for photos?
It is lossless but large, so use it sparingly.
What about logos?
SVG suits logos and simple shapes.
Is GIF fine for animation?
Web.dev recommends video instead.
Related guides
- Third-Party Scripts on Trades Websites: Chat Widgets, Analytics and Pixels That Slow You Down
- WCAG 2.2 Basics for Trades Websites: The New Rules for Buttons, Forms and Help
- Accessible Quote Forms and Buttons for Trades Websites: A WCAG 2.2 Checklist
Browse every guide in the local SEO guides for trades hub.
Sources
- web.dev, Choose the right image format: https://web.dev/articles/choose-the-right-image-format