Unlike Windows, where you can create text files just by using Notepad, creating text files on a Mac is a bit different.
You can create Txt files on Mac using multiple tools and methods. Start with TextEdit and launch the app. Create a new document and click on Format on the menu bar. Simply press on Shift + Command + T to make plain text. Once you are done writing your content on the doc, you can save the file.
Refer to this article to create text files on your Mac. We will also provide you with methods to create text files using various other methods. Furthermore, this method will work for all versions of macOS.
How to Create Txt Files on Mac
1. Using TextEdit
You need to use the TextEdit application to create Txt files on Mac. We have provided the necessary steps to do that below.
- Log in to your Mac.
- Launch a Finder window.
- Head over to the Applications tab and open TextEdit by double-clicking on it,
- Now you can open a previously created document or create a new one from scratch.
- Select New Document.
- Now, you need to change the default format of the TextEdit document. To do that, click on the Format tab on the Menu bar.
- Click on Make plain text from the list. Alternatively, you can also use the Shift-Command-T shortcut to do the same.
- Now type anything that you want in the document.
- After you’re done, click on File and select Save from the list.
- Name the document, and save it to a destination of your choosing. The Command-S shortcut can also be used to do the same.
2. Using Terminal
The Terminal application can also be used to create txt files. However, refer to the instructions given below to see how it is done.
- Turn on your Mac and open a terminal window.
- Type in mkdir followed by a name to make a child directory of the parent directory. Example: “mkdir photos,” this command will create a directory named “photos.”
- Now to create a text file you can use the echo command to write the text and send it over to a file. Example: “echo Hello World > photofile.txt.” The following command will create a txt file named “photofile” and the text within it will be “Hello World”.
- Moreover, other commands can be used if you’d like a little more control over the content of the text file.
- Using commands such as vim, emacs or nano will open up a new text file. Example: “vim photofile.txt.” The following command will create a txt file and open a new window within which you can enter the content and save it.
- Alternatively, you can also create a blank text file using the touch command. Example: “touch myphotos.txt”.
- Now you need to enter the location where you want the text file to be saved. Example: “touch ~/Desktop/myphotos.txt”.
3. Using Automator
The Automator is a powerful tool used to create automation for repetitive tasks. This method will create an option within every finder window to create Txt files within that specific folder location.
Furthermore, the setup is pretty easy and only takes a couple of minutes from start to finish.
- Turn on your Mac and open a Finder window.
- Head over to the Applications tab from the sidebar.
- Open Automator.
- Click on Quick Action when a pop-up box shows up asking you to choose a type for your document.
- Click on the search bar and type in “AppleScript”.
- Double-click on the Run AppleScript option.
- Now type in: “tell application “Finder” to make a new file at (the target of the front window) as alias”.
- Make sure not to include quotation marks and save the action.
- You can name the action anything you want.
- Head over to a Finder window and go to the location where you’d like to create a txt file.
- Click on Finder from the Menu bar and select Services.
- Here you will see the name of the quick action that you just saved.
- Click on it, and a new txt file will be created instantly.
4. Using Pages
Pages are in the primary text editor on Mac and can also be used to create Txt files. Refer to the following instructions to see how it is done.
- Open a Finder window and head over to the Applications tab from the sidebar.
- Open Pages.
- Alternatively, you can also use the shortcut on the dock.
- Create a blank document and type in the content that you want to convert into a txt file.
- Head over to the Menu bar and click on File.
- Click on Export and choose to Make plain text.
- Click on Next and name the file anything you want.
- Hit Export to save the file.
Frequently Asked Questions
Yes, other text editors like Microsoft Word can also be used to create Txt files on Mac. You’re not limited to using just the native applications for this process. Furthermore, no matter which text editor you use, you’ll be able to create text files from it.
The easiest way to create a txt file on Mac is to use the TextEdit application and set it to plain text from the format menu. You can also use the terminal, but that is recommended only when you have some understanding of the syntax used in it.
Yes, the Terminal application can also be used to create text files on Mac. However, that does require a little knowledge of the language used in the terminal. The terminal will only allow you to edit the file within the terminal window. Furthermore, using TextEdit is the better option if you want to make further edits.
Several applications can be used to create text files on a Mac. However, we still recommend using TextEdit as it is the most straightforward method to do so. The Automator method is not all that complex, but you should use that only when you need to create text files within specific folders. That’s it for this article; we hope these methods help solve your issue.
You may like the following mac tutorials:
- How to Combine JPEGs Into One PDF File on Mac
- How to Add Frequently Visited Webpages on Mac
- Block Someone on iMessage on Mac
- Connect AirPods to Mac and iPhone at the same time
- How to Add Phone Number to iMessage on Mac
- Stop Chrome From Opening on Startup on Mac
- Why Is My Volume Low On Mac
I am Carissa Gudinoa, a technology buff, and Office online and Apple expert with over 9 years of experience. I am passionate about helping others get the most out of their Apple devices. I have written extensively about Apple products and technologies. I am committed to providing my clients with the best possible service and am always up-to-date on the latest Apple products and features. I also write extensively on other software available for use at minimal cost or free. This includes Word Online, Outlook Online, Excel Online, and other Office online programs… Check out more.