Naming Conventions: Filenames
The naming of document files such as Web pages (.html, .shtml), images/graphics (.jpg, .gif, .png), PDFs (.pdf), MS Word (.doc, .docx), MS Excel (.xls, .xlxs), and MS Powerpoint (.ppt, .pptx) should follow these rules to ensure better organization when alphanumerically sorted and to display friendly URLs:
- Avoid spaces. Use dashes instead.
Browsers will convert space characters to %20 in the URL string.
Avoid "2011 11 21 undergraduate application.pdf"
- Avoid underscores or special characters. (\ / : * ? " < > | [ ] & $ , .)
The characters listed above are frequently used for specific tasks in an electronic environment. Underscores may be difficult to see when a hyperlinked filename is underlined. It may also create issues when using the Google search engine.
Avoid "2011_11_21_application.pdf", "2011/11/21_application.pdf"
- Use all lowercase.
This is mostly a precautionary measure as filenames on some servers may be case-sensitive. ("Class-List.html" may differ from "class-list.html")
- Use the format "YYYY-MM-DD" when including dates.
This format will sort files chronologically in the web folder.
Avoid "11-21-2011-event.pdf", "Nov-21-2011-event.pdf"
- Use the format "YYYY-semester" when including a semester year.
This format will better sort files chronologically in the web folder.
Avoid "schedule-fall-2011.pdf", "Nov-21-2011-event.pdf"
- Be consistent.
Use the same naming convention for similar files. This will keep similar files grouped together when sorted.
Use "memo-001.pdf" and "memo-002.pdf"
Avoid "memo-001.pdf" and "memorandum-002.pdf"
- Be brief yet descriptive. Avoid confusing abbreviations.
Generally about 25 characters is a sufficient length to capture enough descriptive information for naming. Omit words such as "a", "of", "the", "in", "from", etc. when possible.
Use "president-message.pdf" instead of "message-from-the-president.pdf"
Use "student-application-2011-fall.pdf" instead of "stu-app-for-fa-2011.pdf"
- Avoid including the file type in the filename description.
This is redundant and generally unnecessary.
Use "2011-events.pdf" instead of "2011-pdf-of-events.pdf"
Use "2011-grads.jpg" instead of "photo-of-2011-grads.jpg"
Still have questions?
Contact the Office of Web Communications.
< Go to "Web Best Practices: Naming Conventions"