Best practices for naming documents/files for web
Posted Apr 8th, 2009 by Garrett Nafzinger in in Best Practices, QualityTo ensure users don’t have trouble downloading documents (such as Word files or PDF’s), follow these guidelines when naming files to be uploaded and used on your Web site.
Remove spaces from file names
(hyphens are okay to separate words)
- Marketing Brochure.pdf
- should be changed to:
- MarketingBrochure.pdf
Remove any non-alphanumeric characters
- New Brochure #1.pdf
- should be changed to:
- NewBrochure1.pdf
Simple is better
- Letter From a Reader on March 15.pdf
- should be changed to:
- LetterFromReader.pdf
Be consistent and thoughtful
Use the following date syntax in file names: YYYYMMDD.pdf.
- CompanyNews030209.pdf
- should be changed to:
- CompanyNews20090309.pdf
Following this date format will ensure your files are sorted chronologically in search results.
An example of why this matters
Together Rx Access offers press materials in Word format only. The Word files at the link below contain spaces in the file names, try opening these using Internet Explorer. After you open the file in IE, click the back button.
http://www.togetherrxaccess.com/Tx/jsp/about_press.jsp
Did your PC freeze up? I tested this on three Windows XP computers with IE 7 and my machine froze each time when I tried to use the back button to navigate back to the press materials page.



on Mac) on your keyboard as you click each link. The new links will open in tabs of the current browser window. Quickly flip through the tabs by pressing Ctrl-Tab (or 
