A file extension is the three or four letter code at the end of a file name, such as .docx or .jpg. It is used to indicate the type of file that it is. A file type is the general category of a file, such as document, image, audio, video, etc.