Guides

Practical design and web tutorials. You read them and walk away having actually built something.

Kits

Checklists and materials to download and use offline.

Recipes

The studio kitchen, because design and food share more than it seems.

Diagnostics

Rapid tests that provide a snapshot of your current state.

Exercises

Guided exercises you do on your own, finishing with a tangible result in hand.

How to prepare images and videos for your website

Lightweight images and videos for websites on any platform: why use WebP and WebM, plus size and compression.

Introduction

Large files are the most common cause of slow websites, and slow sites lose visitors and drop in Google rankings. This applies to any platform—whether WordPress, Webflow, Framer, Shopify, Squarespace, or Wix: they all serve the images you upload, and if you upload a massive file, they will all deliver a sluggish site. The good news is that optimizing images and videos for smaller file sizes doesn’t require expensive software or technical expertise; you simply need to understand the right format, the right dimensions, and compression. This guide shows you how to process your files before uploading them, using the same methods .fubá applies to its own projects.

1

Use WebP for images and WebM for videos

This is the single biggest factor in reducing file size, so start here. WebP and WebM are modern formats created for the web, and the difference compared to older formats is significant.

WebP replaces JPG and PNG, delivering the same visual quality with much smaller file sizes—on average 25% to 34% lighter than an equivalent JPG, and significantly lighter than PNG. It also supports transparency like PNG, covering both use cases at once. It is lighter because it compresses more intelligently, discarding information imperceptible to the human eye more efficiently than 1990s-era formats.

WebM does the same for video, replacing MP4 or MOV. At the same perceived quality, a video background or short clip in WebM is usually around 30% lighter than the same video in MP4, a difference that drastically improves the loading speed of pages featuring video. Since video is often the heaviest asset on a site, these savings make the biggest impact.

Today, WebP and WebM work in over 95% of browsers in use, including Chrome, Firefox, Edge, and recent versions of Safari. Compatibility issues persist mainly with older versions of Safari and iPhones, so it is best practice to keep a backup JPG or MP4 version—a process many platforms and plugins handle automatically.

2

Resize before uploading

A photo taken with a smartphone is 4,000 pixels wide or more, and no website needs that. As a general rule: for a full-width image, 2,000 pixels maximum; for an image within a column or text, between 800 and 1,200; for a thumbnail or icon, up to 400. For video, it is rarely worth exceeding 1080p.

3

Compress

After resizing, compress the image. A well-optimized image should be under 200 KB, and many can be reduced to under 100 KB. Free browser-based tools include Squoosh, by Google, which processes one image at a time, exports to WebP, and lets you compare before and after; and TinyPNG, which compresses multiple images at once and also exports to WebP. To convert videos to WebM, CloudConvert and FreeConvert both work online.

4

Name the file properly

After converting the file to WebP in the previous step, rename it. IMG_4827.jpg means nothing to Google, whereas red-plastic-chair.webp does. Use hyphen-separated words, without accents or spaces. Keep in mind that simply changing the extension from .jpg to .webp doesn’t actually convert the file; the real conversion happens using the tool in step 3, and renaming it alone would result in a broken file.

5

Fill in the alt text

Every serious platform has an alt text field. It describes the image for screen readers and Google. Write a short, accurate phrase, such as “red plastic chair on a white background.” It is one of the adjustments that offers the best return on the effort involved.

Homework

By replacing older formats with WebP and WebM—and utilizing reduced file sizes, efficient compression, and descriptive filenames—content that once weighed in at several megabytes drops to just a few hundred kilobytes and loads in a fraction of the time. Make this a standard step before uploading any file to any platform.

Take the three heaviest images on your site, process each one through Squoosh to export it as WebP, and replace the originals on the site. Compare the loading times before and after. This three-image test demonstrates in practice just how much your site stands to gain.

Read other guides

How to Choose Between Google Ads and Meta Ads for Your Business

A practical guide to choosing between Google Ads and Meta Ads, explaining how each platform works and when it makes sense to use both.

How to Pair Two Typefaces Without Getting it Wrong

A practical three-step guide to typographic pairing: contrast combined with kinship, the safest approach for beginners, plus a quick test to run before applying.

How to measure your small business in practice

A practical five-step guide to building a simple sales spreadsheet and using the data to decide what to sell, who to sell to, and where to sell.
SCROLL DOWN