Creating Plain .txt (text) files using TextEdit (On Mac)
Use File → Save As… and select the option that allows you to save the file as a Text Document — rather than Rich Text Format (RTF), which is the default. TextEdit on the Mac. Use the Make Plain Text command in the Format menu before saving the file.