If I want to create a new file extension for a binary/text data file that will open on my own application (extension ".mylongfileextensionname" for example), will Windows list it with my aplication (considering that I already listed it on Windows Registry before)? There is a length limit, I mean, on my example should I use ".mylong" or any specific layout?
I always thought 255 total as in Breakthrough's answer but I found this to be contradictory as I started to double-check my thoughts:
Confirmed on this Microsoft site:
http://windows.microsoft.com/en-US/windows-vista/File-names-and-file-name-extensions-frequently-asked-questions (expand "What is the maximum length of a file name?")
Besides the fact that any filename cannot be longer then 255 characters, there is no limit imposed on a file extension length. This is because the file's extension is not separate from, but is a part of the filename itself.
While you are free to use any length of extension you wish, I would not recommend using a very lengthy one for one reason: convention. Most file extensions are three to four alphanumeric characters. Anything longer, or with funny characters, is going to "stand out" quite a bit more, be harder to memorize, and may be less likely to be adopted (again, it all depends). For a list of common file extensions, see this website.
Also, note that a file extension is completely arbitrary - it does not directly specify what the contents of a file are, it only implies what the contents should or could be.
protected by slhck Jun 23 '14 at 8:57
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site.
Would you like to answer one of these unanswered questions instead?