LFN

Stands for "Long Filename." LFN is an extension to the "short filename" standard used in DOS, which only allowed eight uppercase characters plus a three-character file extension. LFN filenames can be up to 255 characters long, including the file extension, which may be longer or shorter than three characters. They can include lowercase and uppercase characters, as well as spaces, numbers, and symbols.

Microsoft introduced long filename support with the VFAT file system in 1994. VFAT was first included with Windows NT 3.5 and later in Windows 95. To maintain backward compatibility with the previous FAT file system, Microsoft provided an automatic way to shorten long filenames using a tilde followed by a number. If the shortened filename conflicted with another filename, the number would be incremented by one. For example:

  • EXAMPLE.DOC → EXAMPLE.DOC
  • Example.doc → EXAMPLE.DOC
  • Sample File.doc → SAMPLE~1.DOC
  • Sample File copy.doc → SAMPLE~2.DOC
  • Verylongfilename.txt → VERYLO~1.TXT

NOTE: While Windows, macOS, and Unix have supported long filenames for over two decades, a filename may still be truncated if the file is copied or edited by a Windows system using the FAT file system.

Updated October 22, 2018

Definitions by TechTerms.com

The definition of LFN on this page is an original TechTerms.com definition. If you would like to reference this page or cite this definition, you can use the green citation links above.

The goal of TechTerms.com is to explain computer terminology in a way that is easy to understand. We strive for simplicity and accuracy with every definition we publish. If you have feedback about the LFN definition or would like to suggest a new technical term, please contact us.

Want to learn more tech terms? Subscribe to the daily or weekly newsletter and get featured terms and quizzes delivered to your inbox.

Sign up for the free TechTerms Newsletter

How often would you like to receive an email?

You can unsubscribe or change your frequency setting at any time using the links available in each email.

Questions? Please contact us.