We can typically determine if a file is binary or text by examining its file extension. The reason for this is that the extension typically corresponds to the file format, and it is the file format that ultimately determines whether the file data is binary or text.