To get the most from the digital projects entrusted to us, their content needs to be presented and distributed strategically.
That includes following basic naming and optimisation guidelines for
image and website file SEO.
This article explains
how to name images appropriately for website SEO and
the importance of filenames for SEO and Google.
When properly applied, these practices can significantly improve website optimisation, ensuring appropriate recognition in the vast digital world.
Image and media optimisation is not only about reducing dimensions or file size. Naming files clearly and meaningfully is part of the process too.
1️⃣ How should you name files for image SEO?
Meaningful image and document filenames support the organisation and discoverability of content on websites, campaign pages, blogs and portals.
To help each file communicate its purpose clearly, consider these guidelines:
- Choose relevant names: rename a file before uploading it. Its name should describe the image or document and include relevant search terms naturally. This simple action can drastically increase your website’s visibility in search engines.
- Avoid unnecessary special characters: keep names clear and manageable. Some systems may not recognise special characters such as accents or symbols, causing unwanted errors such as the dreaded 404. Spaces in filenames are also discouraged because they can lead to broken URLs and make the document inaccessible.
- Use the hyphen “-”: the hyphen is a universally accepted “special” character and the most recommended replacement for spaces in filenames. Using “-” guarantees a URL structure friendly to servers and users searching for the content.
Following these basic principles optimises online visibility and guarantees a smoother, more intuitive experience for your visitors. In SEO, details make all the difference!
Image filename examples for SEO
Irrelevant and incorrect IMAGE filenames:
- ❌ DSC-35196.jpg
- ❌ whatsapp-photo-13254.jpg
- ❌ J-381-14 paciente joao dente 438×277.jpg
- ❌ album-alta-foto-235.jpg
More relevant image filenames for SEO:
- ✅ banner-branqueamento-dentario-lisboa-001.jpg
- ✅ antes-depois-invisalign-algarve-001-600px.jpg
- ✅ fotografo-casamento-madrid-rodrigorapha-001.jpg
- ✅ escort-prague-leticia-001.jpg
Example of a PDF filename:
Poor and incorrect PDF filename:
❌ EDITAL Nº 02-Vestibular2014 – 4ª RETIFICAÇÃO.PDF
Correct and more relevant filename for SEO:
✅ edital-02-vestibular-2023-faculdade-senai-rio-quarta-retificacao.pdf
2️⃣ Image dimensions and format in SEO
The correct image size is another optimisation factor relevant to Google.
If you had a 10 × 15 cm picture frame, would it make sense to put a 50 × 60 cm picture inside it? 🤔 Certainly not…
Apply similar reasoning online. Although website systems can scale an image down visually,
the correct approach is to upload an image as close as possible to the dimensions of the area where the user will see it.
This makes the image lighter and loading much faster!
The only exception is a website that needs zoom, such as an online shop or a photographer’s website.
Even there, think of two uses: a smaller image for the initial display and a larger version for zoom. Deliver the appropriately sized version in each context rather than loading the largest file everywhere.
3️⃣ WebP format and file size
Image optimisation can reduce file size while retaining acceptable visual quality.
WebP is a modern format that can replace many images previously delivered as JPG, PNG or GIF.
Like PNG,
WebP can support transparent backgrounds. Its file compression method is much better than PNG’s. That is why it is highly recommended by Google and by us, SEO specialists.
There are several ways to convert images to WebP, including WordPress plugins that process images in bulk. Automation is convenient, but applying one setting to every image can reduce control over the final visual result.
An image with many colours and fine details may need different settings from a simple graphic. One image may look good with a particular setting while another does not.
✅ Our recommended starting point for WebP optimisation
At
The Key SEO, we strongly recommend
compressing to WebP manually, image by image, without plugins.
We recommend
Photopea.com, a kind of “Online Photoshop” with useful optimisation resources available in its menus.
⚙️ How to convert GIF, JPG or PNG images to WebP
- Open the original image in Photopea.com.
- Choose “File”, then “Export as”, and select WEBP.
- In the export window, enter a meaningful name, following the guidance in section 1.
- For example, tratamento-servico-XYZ-01 or produto-XYZ-01. Replace XYZ with the relevant name. Use 01, 02, 03 and so on when exporting several images for the same item.
- Under Quality, change it to between 80% and 85% (inspect the visual quality to check that it meets your needs), ignore “attach metadata” and click “Save”. The WebP file is saved in the computer’s downloads folder.
- Done. You will see that the generated .webp image is much lighter than the others. Use these images on the website, replacing all the previous ones.
Important notes on image SEO
🚨 Remember that correctly optimised images are
one of the most important factors in a website’s technical performance and
significantly affect SEO rankings.
⚠️ Converting a file to WebP is not enough on its own. Optimise dimensions and file size while retaining the visual quality the page requires.
Understand the importance of image and PDF optimisation for Google
In the digital world,
images are not merely illustrative; they
play a crucial role in SEO. Correctly naming files, whether images, PDFs or documents, can significantly increase user traffic to websites, blogs and campaign sites. Well-named files appear more prominently in
Google Images search results.
In other words, imagine every image or file as a product in a shop window. When it is well organised and correctly named, more people notice it, enter your “shop” and buy.
Naming alone is not enough.
Each file needs a meticulously planned name, written clearly and strategically. This aims to
ensure your content stands out across the vast Internet, optimising visibility and accessibility.
This principle is particularly important for images and files such as PDFs, because Google handles them differently.
- Images: Imagine uploading a sunny beach photo. Google does not “see” the beach and sun as we do. Instead, it looks at the image’s name, such as “praia-ensolarada-cascais-portugal.jpg”, and associated information such as descriptions or tags to understand that it shows a sunny beach.
- PDFs: Google can read all the internal content of your PDF. For example, with a document about quick dessert recipes, it identifies the recipes and ingredients and also gives great importance to the filename. A name such as “melhores-receitas-de-sobremesas-rapidas.pdf” is therefore crucial for SEO. If someone searches for dessert ideas, your PDF is more likely to be highlighted in results.
By devoting time and attention to correct filenames, you optimise website SEO and strengthen its digital presence on the main search platforms. In an increasingly connected world, good search positioning is essential to success.