A file extension is a mechanism used by the operating system to identify a file format. Typically, an extension follows the filename, separated by a delimiter. In a file name like "readme.txt", readme is the file name and txt is the extension, indicating that the file is a plain text file.