Different file types associated with web design

Website Image Formats: SVG, JPEG, PNG, WebP and AVIF

Choose an image format around the content of the image and how the website displays it. Dimensions, compression and the delivery setup matter alongside the file extension. Test the actual result at the sizes your visitors use.

SVG for suitable vector artwork

SVG describes shapes rather than a grid of pixels, making it useful for suitable logos, icons and diagrams at different sizes. Handle uploaded SVGs through a trusted, secure process because an SVG is markup, not just a photograph.

JPEG for photographs

JPEG uses lossy compression and can be useful for photographic images. Check how much detail is lost at the chosen quality setting, especially around text or sharp edges.

PNG for lossless images and transparency

PNG supports lossless compression and transparency and is widely supported by browsers. It is not correct to dismiss it as a format ordinary modern browsers cannot display. Check file size before using a large PNG photograph.

WebP and AVIF as modern options

These formats can offer useful compression for suitable images. Compare quality and size on your actual files and check the browsers and tools the site supports. A conversion should improve delivery without removing important detail or breaking fallback images.

Check delivery as well as the format

  • Resize the image for its intended display rather than uploading an unnecessarily large original.
  • Check responsive variants and confirm the browser selects a working file.
  • Set dimensions to help reserve layout space.
  • Inspect the image on a phone and check appropriate alternative text.

Use the MDN image format guide when comparing format capabilities and support.

For help with this work, speak to our London web design team.