By default, Windows hides the part of a file name that comes after the last dot, such as the .docx in "report.docx" or the .jpg in "photo.jpg". That part is the file extension, and it tells Windows what kind of file it is and which program opens it. With extensions hidden, a program called "invoice.pdf.exe" that arrives by email shows up as just "invoice.pdf" and can easily pass for a harmless document.
This guide shows you how to make extensions visible for good on Windows 11 and Windows 10, how to recognise double-extension files and how to check what a suspicious file really is. Menu names are taken from Microsoft's own support pages.