The fastest way to create a text file on Mac

Open TextEdit (search for it in Spotlight by pressing Command+Space, type "TextEdit", and press Enter). Go to Format menu and click Plain Text. Then go to File > Save, give your file a name with .txt at the end, choose where to save it, and click Save.

That's the complete process. TextEdit comes built into every Mac, so you don't need to download anything. The Plain Text step matters because TextEdit defaults to a formatted style that won't save as a true .txt file without it.

If you're creating text files regularly, you might prefer a dedicated text editor like BBEdit, VS Code, or Sublime Text, but TextEdit works fine for occasional use.

Key Takeaways

  • TextEdit is the built-in Mac application for creating text files and requires no download or setup.
  • You must switch TextEdit to Plain Text mode before saving, or the file won't be a true .txt file.
  • Always add .txt to your filename when saving, or macOS may not recognize it as a text file.
  • You can also create text files through Terminal or Finder if you prefer a different method.

Creating a text file through Finder

Right-click (or Control+click) on an empty area of your desktop or inside any Finder window. You won't see a "New File" option in the menu that appears. Instead, open a text editor first, create your file there, and save it to the location you want.

This is why most people use TextEdit or another editor rather than trying to create files directly in Finder. Finder is designed to organize existing files, not generate new ones from scratch.

Using Terminal to create a text file

If you're comfortable with Terminal, you can create a text file in seconds. Open Terminal (search Spotlight for "Terminal"), type touch filename.txt and press Enter. The file appears in your current directory immediately.

You can then open that file in TextEdit or any other editor by typing open filename.txt in Terminal. This method is faster if you're already working in Terminal or creating multiple files at once.

Terminal also lets you create and edit files without leaving the command line using editors like nano or vim, though those have a steeper learning curve.

Saving documents as text files from other applications

If you're working in an application like Word, Pages, or Google Docs and want to save your work as a .txt file, use File > Export As or File > Save As. Choose "Plain Text" or "Text" from the file format dropdown, then add .txt to the filename.

Be aware that converting from a formatted document to plain text strips out all styling, images, and special formatting. The words remain, but bold, italics, colors, and layout disappear. This is normal and expected behavior for .txt files.

Where to save your text files

When you click Save in TextEdit, macOS opens a dialog showing your current location. By default it shows your Documents folder, but you can navigate to Desktop, Downloads, or any other folder you prefer. Click the folder you want in the sidebar, or use the dropdown at the top to browse your entire Mac.

Create a dedicated folder for text files if you plan to create many of them. Right-click in Finder, select New Folder, name it, then save your text files inside it. This keeps your files organized and easy to find later.

Naming your text file correctly

The filename you enter in the Save dialog should end with .txt so your Mac recognizes it as a text file. If you type "notes" the file might save as "notes.txt" automatically, but it's safer to type the full name yourself: "notes.txt".

Avoid special characters like / : * ? " < > | in your filename, as macOS won't allow them. Stick to letters, numbers, hyphens, and underscores. Spaces are fine and common in filenames.

Opening and editing your text file later

Double-click any .txt file to open it in your default text editor (usually TextEdit). If you want to open it in a different application, right-click the file, select Open With, and choose from the list of available editors.

Make your changes, then press Command+S to save. TextEdit saves changes to the same file automatically when you use Command+S, so you don't need to go through the Save dialog again.

Frequently Asked Questions

What's the difference between .txt and other file formats like .doc or .rtf?

.txt files contain only plain text with no formatting, images, or special styling. .doc files (Microsoft Word) and .rtf files (Rich Text Format) preserve bold, italics, fonts, and colors. Use .txt when you need a universal format that opens in any text editor, and use .doc or .rtf when you need formatting.

Can I create a text file on my Mac desktop?

Yes. Open TextEdit, switch to Plain Text mode, create your content, then save it to your Desktop folder. When you click Save, navigate to Desktop in the sidebar, give your file a name ending in .txt, and click Save. The file appears on your desktop immediately.

Why does my text file open in Word instead of TextEdit?

Your Mac is set to open .txt files with Word by default. Right-click the file, select Open With, choose TextEdit, then click Change All. This tells your Mac to open all .txt files in TextEdit from now on. You can change it back the same way if you prefer Word.

What happens if I forget to add .txt to my filename?

TextEdit may still save it as a text file, but your Mac might not recognize it as one. Always include .txt in the filename to be safe. If you already saved a file without it, rename it by right-clicking, selecting Rename, and adding .txt to the end.

Can I create a text file on an external drive or USB stick?

Yes. When you click Save in TextEdit, navigate to your external drive in the sidebar instead of your Mac's internal storage. The process is identical. Make sure the drive is formatted in a way your Mac recognizes (usually it is by default).