How to Name Files for SEO
File naming is one of the least glamorous parts of search optimisation and one of the easiest to get right. Yet audit almost any website and you will find images called IMG_4382.JPG, brochures called final_v3_new.pdf, and product photos named after a camera rather than a product. Individually these are trivial. Across thousands of assets they add up to lost image search traffic, weaker topical signals, poorer accessibility, and a codebase nobody can maintain. Learning how to name files for SEO takes a few minutes and pays back permanently, because file names are difficult and risky to change once they are indexed and linked.
This guide covers naming conventions for images, documents, videos, and URLs, along with the technical rules that prevent broken links and duplicate content.
Get Expert SEO Services From AAMAX.CO
We are AAMAX.CO, a full-service digital marketing company offering web development, digital marketing, and SEO services worldwide. Because we build websites as well as optimise them, we set naming and URL conventions before a single asset is uploaded, which avoids the painful cleanup projects most sites eventually face. Our SEO services include full technical audits covering image optimisation, asset naming, alt text, structured data, and redirect management, so nothing is left to chance on a site we manage. If your media library is a mess or your URLs were never planned, hire AAMAX.CO and we will fix it without breaking your existing rankings.
Why File Names Matter More Than People Assume
Search engines use file names as one of several clues about content, particularly for images and documents where there is little surrounding text to interpret. A descriptive name reinforces what the alt text and caption already say, and consistent signals build confidence.
File names also appear inside URLs for images, PDFs, and downloadable assets, which means they are visible in search results and shareable links. They influence accessibility indirectly, since developers and editors who see meaningful names are more likely to write meaningful alt text. And they make internal processes vastly more efficient, because a marketer searching a media library for a product photo should not have to open twenty thumbnails.
None of this is a major ranking factor on its own. Together with strong content, it contributes to image search visibility that many competitors ignore entirely.
Follow a Consistent Naming Convention
Adopt one convention and apply it everywhere. The following rules are widely accepted and safe across servers, browsers, and content management systems.
Use lowercase letters only, because some servers treat uppercase and lowercase as different files and inconsistency creates broken links. Separate words with hyphens rather than underscores, since hyphens are read as word separators while underscores can join words together. Never use spaces, because they become percent-encoded and produce ugly, error-prone URLs. Avoid special characters, accents, and non-ASCII symbols unless your platform handles them reliably. Keep names descriptive but concise, generally between three and six words. Place the most important descriptive terms first. Avoid dates and version numbers unless they are genuinely meaningful to the reader.
So a photograph of a blue running shoe becomes blue-mesh-running-shoe-side-view.jpg rather than DSC_0091.JPG or shoe_final_2.jpg.
Naming Images the Right Way
Images are where file naming has the clearest payoff, because image search remains a real traffic source for retail, travel, food, real estate, and design niches.
Describe what is actually in the image, not the page it appears on. Include the product name, model, colour, or subject where relevant. Add a differentiator when you have multiple views of the same subject, such as front-view, detail, or in-use. Include location for local businesses when it is genuinely descriptive. Do not stuff keywords, since a name like cheap-best-running-shoes-buy-online-discount.jpg looks manipulative and helps nobody.
Pair the name with strong alt text that describes the image for someone who cannot see it, and add captions where they aid comprehension. Also compress the image, serve modern formats such as WebP or AVIF, specify width and height to prevent layout shift, and use responsive sizes so mobile devices do not download desktop assets. A perfectly named four-megabyte image still harms the page.
Naming PDFs, Documents, and Downloads
PDFs are indexable and often rank, so treat them as pages rather than attachments.
Name them by content rather than internal workflow, so annual-sustainability-report.pdf instead of ASR_FINAL_APPROVED_v7.pdf. Store them in a logical directory such as /resources/ or /guides/ so the path itself adds context. Add document titles and metadata inside the file, because many viewers display the internal title rather than the file name. Where a PDF competes with an HTML page on the same topic, prefer the HTML version for search visibility and offer the PDF as a supplementary download.
If you must rename or replace a document that already has links pointing at it, implement a 301 redirect from the old path to the new one.
Naming Video, Audio, and Code Assets
Video and audio files benefit from the same discipline, particularly when hosted on your own domain. Descriptive names support video search and make transcripts and captions easier to manage. When uploading to a platform, the original file name is often read before you fill in the title, so upload how-to-repot-a-monstera.mp4 rather than export1.mp4.
For CSS, JavaScript, and font files, naming affects maintainability and caching strategy more than rankings, but clarity still matters. Use predictable, hyphenated names and reserve hashes for build-generated files where cache busting is required.
Extend the Same Logic to URLs and Folders
A file name is a small URL, and the same principles scale to your site structure. Keep URLs lowercase, hyphenated, short, and descriptive. Remove filler words that add no meaning. Reflect hierarchy through folders where it genuinely helps users understand context, such as /service/search-engine-optimization/, but avoid burying pages five levels deep. Keep the primary topic term in the slug and leave it stable, because changing URLs frequently creates redirect chains and dilutes accumulated authority.
Consistent naming across pages, images, and documents makes your entire site easier for crawlers and AI systems to parse, which supports visibility in modern answer engines as well as classic results. That is one reason naming discipline pairs naturally with GEO services aimed at machine readability.
Avoid the Common Naming Mistakes
Do not upload camera or screenshot defaults such as IMG_2201.jpg or Screenshot 2026-08-03 at 14.22.11.png. Do not use spaces or uppercase extensions. Do not include client-internal jargon that means nothing to the public. Do not rename files that are already indexed and linked without adding redirects. Do not create near-duplicate names differing only by a number, since nobody will ever know which is which. And do not treat naming as a substitute for optimisation, because alt text, compression, and surrounding content still do most of the work.
Set the Convention Once and Enforce It
Good file naming is a habit, not a project. Write your convention into a one-page document, share it with everyone who uploads assets, and audit the media library once or twice a year. New assets will follow the rule automatically, and the old mess can be cleaned up gradually with redirects where needed.
If you would like an experienced team to audit your asset library, fix naming and image performance, and manage redirects safely, hire AAMAX.CO for digital marketing and technical SEO support that covers the details most sites overlook.
Want to publish a guest post on aamax.co?
Place an order for a guest post or link insertion today.
Place an Order