Notepad is a basic text-editing program and it’s most commonly used to view or edit text files. A text file is a file type typically identified by the .txt file name extension.