How To Name Your Website’s Files
*The guest post is by Marita*
Before you simply name a file page1.html, image2.jpg, or some complicated string like a product number, think again. Filenames play a role in SEO, but a good file naming structure also makes it easier for your visitors to save and share links and navigate your website. From a developer’s point of view, having well named files makes it easier to find files and properly structure the hierarchy of the website.
To take advantage of SEO, stay organized, and make it easy for your visitors to enjoy your website, keep the following in mind when creating filenames:
Use keywords in your filenames. Filenames for individual pages become part of the URL and search engines may use the URL to determine relevance in their search results. If you’ve optimized content on a page, then it’s a no-brainer to use the title as the filename, with words separated by hyphens.
The main blogging platforms do this automatically and even Google has recommended to use filenames based on keywords and separated by hyphens. (Hyphens make the URL easier to read by humans and search engines.) You can also try to modify the filename from the title to include variations of a keyword; there may be a difference in how it’s displayed in search results. If you’d like to attract search traffic through image search, be sure to also use your keywords to name your image files, incl. the ALT tag, and the pages they’re displayed on. Image filenames don’t always become part of an URL, depending on your website’s structure, but can still greatly affect usability and SEO of a website.
Use actual words. When web users see links and URLs, they form an idea as to what the page is about and it becomes important to avoid naming files with random methods. For example, if web users are looking for a file about keywords, they are more likely to click on “keywords.html” than they are to click on a file named “200903127789.html”. A good filename is easy to understand and tells visitors what to expect from your webpage.
Avoid the use of special characters. Limit the characters in your filename to lowercase letters a to z, periods, underscores, hyphens and numbers 0 through 9. If you use any other characters, it could cause problems with loading the page. Simply using keywords and avoiding special characters is also beneficial to your SEO efforts. Search engines have been using a combination of URL, title, ALT tags, description and content to find and display results. So taking care to create a useful filenames for your pages and images is an easy way to improve that part of your website’s SEO.
Avoid spaces. For practical purposes using spaces in the filename of your webpage documents is not recommended and usually programs won’t allow it in the first place. Problems arise because the URL will typically be underlined when it is displayed, but it may not be clickable, because the space isn’t recognized as being a part of the URL. In addition, browsers usually require spaces to be encoded as “%20″ or a plus symbol.
Start all of your filenames with lowercase letters. Although the operating system on your computer may not be case sensitive, your web server OS may see things differently. Your computer may interpret “Htmlfile.htm” and “htmlfile.htm” as the same file, whereas a web server would see two separate files. You may also run into trouble using CamelCase (upper and lower case) to name your files.
Shorter is better for filenames. Although you can theoretically use hundreds of characters in your URL, why do it? Keep your filenames to up to about fifty characters: it makes it easier to display them as links, easier to copy and paste (no need for URL shortening), and easier to remember. Having shorter URLs also helps when submitting your URLs to a directory, or aggregator; some will actually have a limit on how many characters your URL may have.
Bottom line: Make it easy for yourself, others working with your website and your visitors and use relevant lowercase keywords separated with hyphens in your pages’ and images’ filenames. Your website won’t only be easy to navigate, share and maintain, but it will also increase traffic to your website.
Marita posts free website tools on RankRaiser.com for anyone interested in designing, marketing and optimizing their own website.
24 Responses to “How To Name Your Website’s Files”
Leave a Reply
Recent Comments
- ppc_tools (PPC Tools) on How to Optimize Your Site for Image Search
- Eric on SEO Beginner’s Checklist: 10 Tactics to Rank Higher
- Eric on Prioritise Your Link Building to Increase Traffic Fast
- wordpress customization on Blog Your Way to Success With Frequency and Long Tail Keywords
- wordpress customization on Prioritise Your Link Building to Increase Traffic Fast






These is really good advice for urls http://dailyseotip.com/how-to-name-your-websites-files/648/
[Reply]
RT @renoama2010Improve your Search Engine Rank and name your files right! [http://bit.ly/92FtrQ] Our speaker next week also will be co…
[Reply]
Improve your Search Engine Rank and name your files right! [http://bit.ly/92FtrQ]
Our speaker next week also will be covering SEO tips. #fb
[Reply]
File names do matter! A few tips for maximizing their potential: http://dailyseotip.com/how-to-name-your-websites-files/648/
[Reply]
??? ????????? ?????? ???????? ??????, ????????? ? ?.? - http://bit.ly/92FtrQ - How to name your website’s files… #seo #optimization
[Reply]
Many people often forget to optimize their image file names. By using your keywords for the images, it will most likely get picked up from Google images with that keyword search.
[Reply]
Paramatik Reply:
March 10th, 2010 at 9:20 pm
i am getting a lot of visitors from image.google.com.tr because of that optimised image file names.
[Reply]
Josh Stauffer Reply:
March 15th, 2010 at 3:35 pm
Some might be surprised by how much of an impact optimized image file names can have. I have some sites I’ve yet to developed that receive traffic from just having one title and one image on the homepage and that’s it.
[Reply]
Shhh! It is a no brainer but I’m still surprised how many people (even seo firms) don’t use this simple seo tactic.
[Reply]
Agreed - One thing though, Mat Cutts, when asked whether underscores or dashes work better in file names said that dashes are treated like numbers and are less problematic. He also said don’t go running out and changing all your old file names because of this.
I know this isn’t about page names but asked whether a pipe “|” or a dash “-” works better separating elements in page name he said either one is good.
PS Just found your blog via a tweet from @seosmarty RT @dailyseo - Hope to come back and check more of it out in detail. Good stuff. Thanks.
[Reply]
I have always used dashes rather than underscores. It was recommended a long time ago, and it is interesting to see that in this respect technology has not much changed.
[Reply]
Thanks for sharing. Good advice. Seems quite simple but many SEO firms do ignore this
[Reply]
Great article Ann. It’s one of the most effective ways to bring in traffic, especially for products. Google images brings in lots of traffic if you’re selling visual products where there aren’t a lot of descriptive pictures related to that industry.
[Reply]
hi,
Thanks 4 nice Information.
Tc
[Reply]
My CMS automatically puts in an underscore, should i be changing to hyphen?
[Reply]
Helpful article, thanks Marita!
To all my colleagues who, like me, are prone to verbose, keyword-heavy naming conventions: Beware the 2083-character URL limit for Internet Explorer (all IE versions through 8: http://support.microsoft.com/kb/208427 ). Even though a particular page may pass 2083-character muster, consider what may happen to your analytics software when it has to send this bloated URL along with all manner of extra parameters. I’ll tell you what happens: The server call never gets made, and you lose all analytics tracking for that page.
Unfortunately, I learned this the hard way, when a client’s Omniture data started showing all sorts of holes. Turns out the URLs being passed to SiteCatalyst were just too long for Internet Explorer in some instances, so they had to chop out some eVars to shorten them. But it’s not just Omniture; any analytics package using web beacons (such as Google Analytics) is subject to the same IE bug.
Anyway, by all means, use hyphenated keywords in URLs, but do be mindful of that yucky 2083-character IE limit. [:-)]
[Reply]
lewis tonkinson - My CMS automatically puts in an underscore, should i be changing to hyphen?
yes!
[Reply]
These are important tips to apply in website development, thanks !
[Reply]
Very nice tips. A URL can be effectively used to add keywords but make sure you don’t misuse this opportunity by adding too much keywords that might look as spam to visitors & to search engines as well. Thanks for sharing.
[Reply]
Invitation: Online debate on India-Brazil- South Africa (IBSA) Policy Dialogue Forum
In partnership with the Ideas for Development blog, the International Policy Centre for Inclusive Growth (IPC-IG) is launching an online debate that will contribute with inputs for the forthcoming IBSA Academic Forum, which will be hosted by IPC-IG on 12-13 April in Brasilia, Brazil.
We invite you to participate in this discussion and reflect about the following issues:
- What is the role of the emerging countries in shaping world politics?
- How can India, Brazil and South Africa strengthen cooperation in key issues on the global agenda?
- In which ways an improved policy dialogue among developing countries can contribute to the implementation of effective policies towards the achievement of inclusive growth and human development?
Join us at: http://www.ideas4development.org
We also invite you to visit the IBSA Academic Forum website, where you can find interesting papers, resources and breaking news. Visit: http://www.ipc-undp.org/ibsa
[Reply]
Thanks for the post, enjoyed it.
[Reply]
Thanks for all the great comments! Seems like a lot of you like using keywords in your image tags; this strategy has been working very well for us as well! In fact, it’s turned out to be one of the easiest ways to attract traffic.
[Reply]
A URL can be finer acclimated to add keywords but accomplish abiding you don’t abusage this befalling by abacus too abundant keywords that ability attending as spam to visitors & to seek engines as well.Hangzhou Yisite Tielin Electronic Technology Co.,Ltd. is a manufacturer specializing in eas accessories (eas tagand security tags ) , Our products are widely applied to eas in supermarkets and department stores.
[Reply]
Good reading. Thanks for hard work and writing your heart out.
Would be more easy to understand with descriptive pictures.
[Reply]