Research Data ServicesFile Naming & Organization

A well-constructed and consistently applied file naming convention and organization structure for your data will save you (and your colleagues) from frustration and wasted time. These practices will help you and collaborators identify and locate the correct files when you need them.

File Naming | File Organization

File Names

File Naming Conventions

  • Create meaningful names relevant to content, independent of location
  • Avoid very long file names
  • Use underscores (this_is_the_file_name) or “camel case” (ThisIsTheFileName) for separating terms
  • If you include a date, use one of these formats:  YYYY_MM_DD  or  YYYY-MM-DD  or  YYYYMMDD  to facilitate sorting
  • To facilitate sorting, consider the potential number of files and include place holder digits in the name (e.g., for up to one hundred files, begin with …001…)
  • Avoid using spaces and special characters, i.e. ~ ! # & @ ( ) { } [ ] ‘ “ | % $ ; ^
  • Include versioning where needed
  • Be consistent

Example: Survey21 _Smith_2015_06_01.txt — a survey in a text file with participant 21, conducted by Smith on June 1st 2015.

File Renaming

Here are some oftware applications that can be used for bulk file renaming. We recommend that you make a copy of your data before using these tools, so that you can recover the previous files if there are any unintended consequences to a renaming.

Windows

Mac

Linux

Unix

The use of the grep command to search for regular expressions

File Organization

Directory Structure

  • Use a hierarchical folder structure to organize your data files.
  • Example: UK Data Service: Organising data
  • Consult with us to create a customized folder organization scheme for your research data.

Sources

UK Data Service Organizing Files

National Archives Best Practices for File Naming