About this interactive
A file extension is the letters after the last dot in a file's name: the txt in test.txt, the docx in report.docx. Windows uses it to decide what kind of file this is, which icon to show, and which app to open it with when you double-click.
Windows hides known extensions by default, so test.txt shows as test. Turn on Show file extensions and the full name appears. That matters when two files share a name, or when you need to know what a file really is.
Delete the extension and Windows warns that the file might become unusable. Go ahead and the file loses its icon, and a double-click asks you which app to use, because nothing is linked to a file with no extension. Put the extension back and everything returns.
Extensions are often three letters (.txt, .doc, .pdf) but can be four (.docx) or more. The extension is only a label: renaming photo.jpg to photo.txt makes Windows open it in Notepad, but the picture inside is unchanged, so Notepad shows jumbled characters. That is why Windows warns you before you change one.
Which app opens a type is the file association, and you can change it. Right-click, Open with, Choose another app: pick an app and choose Just once to use it this time only, or Always to make it the default for every file with that extension (the icons change to match). To change a default later, use Settings, Default apps, which lists the extensions and the app linked to each.
About TechKnowSurge
TechKnowSurge builds IT and cybersecurity professionals through hands-on, concept-first training built around real understanding — not memorization. Free interactive tools, structured programs, and 25+ years of real-world experience, all in one place.
Explore free tools and programs →