How to Optimise Images for Your Website: Size, File Names, SEO & Alt Text

How to Optimise Images for Your Website Size, File Names, SEO & Alt Text - main.jpg

Images can make or break a website.

Great photography makes a site feel professional, personal and credible. It helps people understand what you do, see your work and connect with the people behind the business.

But the way those images are prepared matters too.

Upload enormous files straight from your camera or phone and you can slow your website down unnecessarily. Give every image a filename like IMG_8472.jpg and you’re missing an opportunity to give search engines some useful context. Forget about alt text and you’re making your website less accessible.

So before images go anywhere near a website, there are a few things worth doing.

First: if I’m building your website, send me the originals

This is important.

If you’re sending images to me for a website I’m building, please don’t resize, compress or optimise them first.

Send me the biggest, highest-quality originals you have.

I would much rather start with a beautiful 6000-pixel-wide photograph and reduce it properly myself than receive a tiny compressed version and discover that’s the only copy available.

I’ll crop, resize, optimise, rename and prepare the versions I actually need for the website.

If you’re uploading images to your own website, however, the process is different.

Keep your original safely stored somewhere, make a copy for the website and optimise that version before you upload it.

Think about your website before the photoshoot

If you’re investing in professional photography for your business, tell your photographer that the images are going to be used on your website.

It can make a huge difference.

A beautiful photograph isn’t automatically a useful website photograph.

I love having a mixture of:

  • Landscape and portrait images

  • Wide shots and close-ups

  • Subjects positioned to the left

  • Subjects positioned to the right

  • Images with plenty of negative space

  • Detail shots

  • Wider environmental photographs

Landscape photographs are particularly useful for large banners and full-width sections.

Negative space is useful too. If there’s some breathing room around the subject, I have somewhere to put a heading, button or other website content without covering someone’s face.

And getting photographs with the subject positioned in different parts of the frame gives me far more flexibility when building layouts.

Modern website platforms such as Squarespace also give me a lot of control over how images are displayed. I can change the shape and proportions of image holders and make different decisions for desktop and mobile.

So this isn’t about trying to predict one exact crop for every screen size.

It’s about giving me options.

The more useful variations we have to work with, the better the finished website can be.

The biggest image isn’t necessarily the best website image

Modern phones and cameras produce enormous images.

A photograph might be:

5000 or 6000 pixels wide.

It might also be:

5MB, 10MB, 15MB or more.

That’s fantastic as an original.

But your website doesn’t need that enormous original file.

Uploading it means the browser potentially has much more data to deal with than necessary.

That can affect page loading speed, particularly for someone viewing your site on a mobile connection.

And website speed matters.

People don’t enjoy waiting for pages to load, and page experience and performance are also things Google pays attention to.

The goal is therefore to make an image large enough to look excellent in the space where it’s being used, without making the file unnecessarily enormous.

What size should website images be?

There isn’t one magic size because it depends on where the image is being used.

But as a rough guide:

Large banners and full-width images:

Around 2000–2500 pixels wide is generally plenty.

Normal website images:

Around 1200–1800 pixels wide will often be more than enough.

Smaller images and thumbnails:

Often 800–1200 pixels wide is perfectly adequate.

These aren’t hard rules.

A full-screen architectural photograph has very different requirements from a tiny team headshot sitting inside a small card.

The important thing is not automatically uploading the enormous original every time.

Image dimensions and file size aren’t the same thing

This is another thing people sometimes confuse.

An image can have reasonable dimensions but still have an unnecessarily large file size.

That’s where compression comes in.

You’re trying to find the balance between:

Good visual quality + sensible dimensions + sensible file size.

You don’t want to compress an image so aggressively that it starts looking fuzzy or covered in artefacts.

But you also don’t need every website photograph saved at enormous print-quality settings.

How I optimise website images in Photoshop

I use Adobe Photoshop for this.

If I’m preparing an individual image, I’ll generally use Save for Web.

That lets me reduce the dimensions, adjust the image quality and see what’s happening to the file size at the same time.

I’m looking for the point where the image still looks great but I’m no longer carrying around a heap of unnecessary data.

If I’ve got a whole folder of images to prepare, I’ll often use Photoshop’s Image Processor instead.

That lets me batch-process multiple files in one fell swoop — reducing their dimensions and adjusting the quality without opening and saving every single image individually.

It saves a huge amount of time when I’ve been given a folder containing dozens or hundreds of photographs.

You absolutely don’t need Photoshop just to prepare images for a website. There are plenty of other image resizing and compression tools available.

The principle is the same:

Start with the best-quality original, create a website copy, reduce it to sensible dimensions and optimise the file size while keeping it looking good.

JPG, PNG or WebP?

For most normal website photographs, JPG/JPEG is still perfectly fine.

PNG is particularly useful when you need transparency — logos are an obvious example — but PNG files can sometimes be significantly larger than an equivalent JPG photograph.

WebP is a modern image format that can provide excellent image quality at smaller file sizes, and modern website platforms increasingly handle image delivery and optimisation themselves.

So I wouldn’t obsess over manually converting every image on your computer into WebP before uploading it.

Get the fundamentals right first.

Rename your images before you upload them

This is one of the easiest things to do and one of the things I see missed all the time.

Your camera gives an image a filename like:

IMG_8472.jpg

or:

DSC_4387.jpg

That filename tells us absolutely nothing about the image.

Before uploading it, rename it to something descriptive.

For example:

custom-kitchen-wellington.jpg

or:

native-garden-landscaping-lower-hutt.jpg

Use lowercase letters, separate words with hyphens and describe what the image actually shows.

A descriptive filename can give search engines additional context about an image and the page it belongs to.

I wouldn’t go crazy with it.

You do not need:

best-cheapest-amazing-wellington-kitchen-designer-builder-renovation.jpg

That’s not useful. That’s keyword stuffing.

Just describe the image naturally.

And do this before you upload it to your website.

If you’re sending your original photographs to me for a website build, you don’t need to sit there renaming hundreds of files first. I can prepare and name the versions I’m actually going to use.

File names and alt text are not the same thing

This is another important distinction.

The filename is the actual name of the image file.

The alt text is text associated with the image on the website.

Alt text exists primarily for accessibility. Screen readers can use it to describe meaningful images to people who can’t see them.

It can also help search engines understand what an image contains.

Good alt text should describe the image naturally and appropriately in the context of the page.

For example:

Custom timber kitchen with white cabinetry and oak island in a Wellington home

That’s useful.

Something like:

Wellington kitchen designer best kitchen renovation Wellington kitchen company

is not.

Again, don’t stuff keywords into it.

And not every decorative image needs a detailed description. Images that exist purely for decoration can often have empty alt text so screen readers can skip them.

Here’s what this looks like in practice

Imagine I receive this:

  • Filename: DSC_4387.jpg

  • Dimensions: 6000 pixels wide

  • File size: 12MB

I might turn that into something like:

  • Filename: wellington-interior-designer-kitchen.jpg

  • Dimensions: 2000 pixels wide

  • File size: significantly reduced through appropriate compression

The image still looks beautiful.

But now it’s much more appropriate for the web.

That’s the goal.

Don’t put important website text inside images

While we’re talking about images, there’s another thing worth mentioning.

Try not to create graphics containing important headings, paragraphs or other information that could simply be real text on the website.

Text embedded inside an image is harder to make responsive, less accessible and can’t be understood by search engines in the same way as normal website text.

There are obviously times when text belongs in a graphic.

But your main website content should generally be actual website content.

Always check the finished page

Once your images are uploaded, look at the actual page.

Check it on desktop.

Check it on mobile.

Make sure important parts of photographs aren’t being obscured.

Make sure the images still look sharp.

Make sure you haven’t accidentally uploaded a tiny image into a huge space.

And make sure you haven’t got enormous files slowing down a page for no good reason.

Image optimisation isn’t about making every image as tiny as humanly possible.

It’s about using the right image, at the right dimensions, at an appropriate quality, with useful information attached to it.

A quick website image checklist

If you’re uploading images yourself:

  • Keep your original high-resolution image somewhere safe

  • Create a separate website version

  • Crop it appropriately

  • Resize it to sensible dimensions

  • Compress it without destroying the quality

  • Choose an appropriate file format

  • Give it a descriptive filename before uploading

  • Add useful alt text where appropriate

  • Check the finished page on desktop and mobile

Do those things consistently and you’ll end up with a website that looks great without carrying around a ridiculous amount of unnecessary image data.

And if I’m building the website for you?

Send me the big originals and let me worry about the rest.

If you’re planning a new website or wondering whether your existing site could be working harder for your business, get in touch and I’ll be happy to help.

Next
Next

“Oh, and You’ll Be Looking After the Website…”