As coders, we always need to know the file extension of the file we are working on. This page will show how to do that.

Example File Extensions
File NameFile ExtensionAlso Called
readme.txttxtTXT file
Rectangle.javajavaJAVA file
Rectangle.classclassCLASS file
Sort.pypyPY file
Show File Extensions in Windows
  • Select "View" Tab
  • Check the "File name extensions" checkbox
  • Note that we can now see file extensions such as "class, "java", etc.

Quick Demo

Show File Extensions on the MAC
On the MAC, make sure "Show all filename extensions." is selected (under Finder > Preferences/Settings -- Advanced).

See: