Useful file names are consistent, meaningful to you and your colleagues, and allow you to find the file easily.
Decide on a file naming convention at the start of your project. Consider the following common elements:
- Vocabulary – choose a standard vocabulary for file names, so that everyone uses a common language
- Punctuation – decide on conventions for if and when to use punctuation symbols, capitals, hyphens and spaces
- Dates – agree on a logical use of dates so that they display chronologically i.e. YYYY-MM-DD
- Order - confirm which element should go first, so that files on the same theme are listed together and can therefore be found easily
- Numbers – specify the amount of digits that will be used in numbering so that files are listed numerically e.g. 01, 002, etc.
The Details
File names should allow you to identify a precise experiment or project from the name. Choose a format for naming your files and use it consistently.
You might consider including some of the following information in your file names, but you can include any information that will allow you to distinguish your files from one another.
- Project or experiment name or acronym
- Location/spatial coordinates
- Researcher name/initials
- Date or date range of experiment or project
- Type of data
- Conditions
- Version number of file
- Three-letter file extension for application-specific files
Another good idea is to include in the directory a readme.txt file that explains your naming format along with any abbreviations or codes you have used.
Simple tips
- Try not to make file names too long. Long names encourage more mistakes do not work well with all types of software.
- Special characters such as ~ ! @ # $ % ^ & * ( ) ` ; < > ? , [ ] { } ' " and should be avoided.
- A good format for dates is YYYYMMDD or YYMMDD. This format makes sure all of your files stay in chronological order.
- When using sequential numbering, using leading zeros to make sure files sort in sequential order. For example, use "001, 002, ...010, 011 ... 100, 101, etc." instead of "1, 2, ...10, 11 ... 100, 101, etc."
- Do not use spaces. Some software will not recognize file names with spaces. Try instead:
- Underscores, e.g. file_name.xxx
- Dashes, e.g. file-name.xxx
- No separation, e.g. filename.xxx
- Camel case, where the first letter of each section of text is capitalized, e.g. FileName.xxx