Convention for file extensions: uppercase or lowercase

12,462

Solution 1

Windows is intentionally case-insensitive (by default) when it comes to file names and extensions. It doesn't matter what casing you use.

This was a primary design decision that Microsoft made previous to Windows in their original OS (MS-DOS) and file-system(s), to separate themselves from Unix. It was touted as one of the reason MS-DOS was "easier to use".

The original FAT file systems actually stored the files names (and extensions) as all caps, regardless of how you entered them (making it 'case-insensitive', but not 'case-preserving').

Perhaps check out this related SU question: Are all versions of Windows case insensitive?

Solution 2

There is no convention. Windows is case insensitive by default. This means file.txt, file.TXT, file.Txt. file.tXt, ... are all the same file name. Note, this is not the case for UNIX or Linux, where the previous list of files are unique filenames.

FYI, you can make Windows case sensitive, but thats off topic for this question.

Share:
12,462
rory.ap
Author by

rory.ap

Principal Software Engineer, Litera B.S. in comp-sci, minor in math, University of Massachusetts, Amherst (2003). Married, two children; house in Pomfret, CT. I enjoy spending time with the family, running, skiing, reading, and building things -- physical and digital. I have a patent: http://www.google.com/patents/US8719238

Updated on September 18, 2022

Comments

  • rory.ap
    rory.ap over 1 year

    Is there a convention for the case of the file extension in Windows, i.e. all uppercase vs. all lowercase? If there is, what is the reason, if any, for the convention, or is it just for the purposes of uniformity?

  • Lothar
    Lothar over 3 years
    So wrong. MS used case insensitive because they wanted to be portable to the most used operating system at that time CPM. And CPM was case insensitive.
  • Ƭᴇcʜιᴇ007
    Ƭᴇcʜιᴇ007 over 3 years
    @lothar Welcome to SU. If you have your own answer, feel free to add it.