The fastest way to create a text file on Mac
The quickest method is to open TextEdit (the text editor built into every Mac), type what you need, then save it as plain text. TextEdit is already on your computer — you do not need to download anything. Open it by pressing Command+Space, typing "TextEdit", and pressing Enter.
Once TextEdit opens, go to the Format menu at the top and click Make Plain Text. This step matters: if you skip it, your file will save as a formatted document instead of a simple text file. Then type your content, press Command+S to save, give your file a name with .txt at the end (for example, "shopping-list.txt"), choose where to save it, and click Save.
That is the complete process. Your text file now exists on your Mac and you can open it anytime by double-clicking it.
Key Takeaways
- TextEdit is the built-in Mac text editor — search for it using Command+Space and type "TextEdit".
- You must change the format to Plain Text before saving, or your file will not be a true text file.
- Always add .txt to the end of your filename when you save, so your Mac knows it is a text file.
- Text files created this way open in TextEdit by default but can be opened in any text editor or word processor.
- If you prefer a different text editor, you can download free alternatives like Visual Studio Code or Sublime Text.
Step-by-step: Creating and saving your text file
Open TextEdit by pressing Command+Space (the spotlight search), typing "TextEdit", and pressing Enter. The TextEdit window will appear with a blank document ready for typing.
Before you type anything, go to the Format menu at the top of the screen and select Make Plain Text. You will see the menu bar change slightly — this confirms the file is now set to plain text mode. If you type first and forget this step, your file will save as a .rtf (rich text format) file instead of a .txt file, and you will have to convert it later.
Type or paste your content into the document. There is no character limit for a text file, so you can write as much as you need. When you are done, press Command+S or go to File > Save.
A save dialog will appear. Type your filename in the field at the top — for example, "notes.txt" or "password-hints.txt". Make sure you include the .txt extension. Choose the folder where you want to save it (your Desktop, Documents folder, or anywhere else), then click the Save button.
Where your text file goes and how to find it
When you save a text file, it goes to whichever folder you selected in the save dialog. If you chose Desktop, the file appears on your desktop. If you chose Documents, it sits in your Documents folder. You can see it by opening Finder and navigating to that location.
To open your text file later, double-click it in Finder or on your desktop. It will open in TextEdit by default. You can also right-click the file, select "Open With", and choose a different text editor if you have one installed.
If you cannot find your file after saving, open Finder, press Command+F to search, and type the filename. Finder will show you where it is.
Using Terminal to create a text file (faster for some users)
If you are comfortable with Terminal, you can create a text file without opening any application. Press Command+Space, type "Terminal", and press Enter.
In the Terminal window, type this command: nano filename.txt (replace "filename" with whatever you want to call your file). Press Enter. A text editor will open inside Terminal. Type your content, then press Control+X, then Y, then Enter. Your file is now saved.
This method is faster if you are already working in Terminal or if you need to create many text files at once. Most people do not need this approach — TextEdit is simpler and more visual.
Common mistakes and how to avoid them
The most common mistake is forgetting to change the format to Plain Text before saving. If you save from the default Rich Text format, your file will be .rtf instead of .txt. You can fix this: open the file in TextEdit, go to Format > Make Plain Text, then save it again. When prompted, click "Use .txt".
Another mistake is forgetting the .txt extension when you type the filename. If you type just "notes" instead of "notes.txt", your Mac may not recognize it as a text file. You can rename it later by right-clicking the file, selecting "Rename", and adding .txt to the end.
A third mistake is saving to a location you forget about. If you are not sure where you saved your file, use Finder's search (Command+F) to find it by name. You can also check your recent files by opening TextEdit and going to File > Open Recent.
Alternative text editors for Mac
TextEdit works fine for simple text files, but some people prefer other editors. Visual Studio Code is free and powerful — it is used by programmers but works for any text file. Sublime Text is another popular choice. Atom is also free. All three can be downloaded from their websites and work the same way: open the editor, type, and save with Command+S.
If you are creating text files for coding or technical work, these editors offer features TextEdit does not, like syntax highlighting (coloring code to make it easier to read) and automatic indentation. For everyday notes and simple documents, TextEdit is sufficient and requires no download.
Frequently Asked Questions
What is the difference between a text file and a Word document?
A text file (.txt) contains only plain text with no formatting — no bold, italics, colors, or fonts. A Word document (.docx) can include all of those things. Text files are smaller, open faster, and work on any device. Word documents are better if you need to format your writing.
Can I create a text file on my desktop directly?
Not directly by right-clicking. You must open a text editor (like TextEdit), create the file, and save it to your desktop. You cannot create a blank text file the way you can on Windows by right-clicking and selecting "New Text Document".
What happens if I forget to add .txt to the filename?
Your Mac may not recognize it as a text file and might try to open it with the wrong program. You can fix this by renaming the file: right-click it, select "Rename", and add .txt to the end. Then press Enter.
Can I edit a text file after I save it?
Yes. Double-click the file to open it in TextEdit (or your default text editor), make your changes, and press Command+S to save. The changes overwrite the original file.
Is TextEdit safe to use for passwords or sensitive information?
Text files are plain text with no encryption, so they are not secure for passwords or sensitive data. If you need to store passwords, use a password manager instead. For other sensitive information, consider using encrypted storage or a password-protected document.