A text file is the simplest file your computer can make
A text file is a document that contains only plain words and numbers — no formatting, no images, no hidden code. It has a .txt extension, which is why it's called a text file. You can create one in under a minute using tools already on your computer, and every operating system handles them the same way.
The fastest method depends on what you're using. On Windows, you can right-click your desktop or inside a folder and create a new text file directly. On Mac, you'll use TextEdit and change one setting. On Linux, you have several options depending on your desktop environment. All three methods take less than two minutes.
Key Takeaways
- Right-click in any folder on Windows, select "New," then "Text Document" to create a .txt file instantly.
- On Mac, open TextEdit, go to Format menu, choose "Make Plain Text," then save with a .txt extension.
- On Linux, right-click your desktop or use a text editor like gedit or nano from the terminal.
- Text files open in any program on any device, making them the most portable file format you can create.
- Avoid saving in Word or Google Docs format if you need a true .txt file — those add hidden formatting.
Creating a text file on Windows
On Windows, the fastest way is to right-click in the location where you want the file. This works on your desktop, inside a folder, or anywhere else. Right-click the empty space, and a menu appears. Look for "New" — it's usually near the top of the menu. Hover over "New" and a submenu opens showing different file types you can create.
Click "Text Document." Windows creates a file called "New Text Document.txt" in that location. The name is highlighted and ready to edit, so you can type a new name right away. Press Enter when you're done renaming it. If you miss the chance to rename it immediately, right-click the file, select "Rename," type your new name, and press Enter.
Open the file by double-clicking it. It opens in Notepad, which is Windows' built-in text editor. Type whatever you need, then press Ctrl+S to save. The file stays in the same location with the same name unless you change it.
Creating a text file on Mac
On Mac, open TextEdit, which comes with every Mac. Press Command+Space to open Spotlight, type "TextEdit," and press Enter. TextEdit opens with a blank document ready for typing.
Before you type anything, you must change one setting. Go to the Format menu at the top and click "Make Plain Text." This is the critical step — if you skip it, Mac saves the file in a format called Rich Text Format (.rtf), not as a plain text file (.txt). After you click "Make Plain Text," the menu changes and you're ready to type.
Type your content, then press Command+S to save. A dialog box appears asking where to save and what to name the file. Type your filename and make sure it ends with .txt — for example, "notes.txt" or "shopping-list.txt." Choose where you want to save it (Desktop, Documents, or any folder), then click Save. The file is now a text file on your Mac.
Creating a text file on Linux
On Linux, your method depends on which desktop environment you're using. If you're using GNOME (the most common), right-click on your desktop or inside a file manager window. Look for "Create Document" or "New File." Click it, name the file with a .txt extension, and press Enter. The file is created and ready to open.
If that option doesn't appear, open your file manager, navigate to where you want the file, right-click, and look for "Create New" or similar language. Different Linux distributions name this slightly differently, but the concept is the same.
Alternatively, open a terminal and use a text editor like gedit or nano. Type gedit filename.txt and press Enter. A window opens with a blank document. Type your content and press Ctrl+S to save. If you use nano instead, type nano filename.txt, type your content, press Ctrl+X, then Y, then Enter to save and exit.
Why you should avoid Word and Google Docs for text files
Microsoft Word and Google Docs add invisible formatting behind the scenes — fonts, spacing, styles, and other code that isn't visible when you read the document. When you save a Word document as .docx or a Google Doc, that hidden code stays in the file. If you rename a .docx file to .txt, the hidden code is still there, and some programs won't read it correctly.
A true text file contains only the characters you typed, nothing else. This is why text files are so portable — they open the same way on Windows, Mac, Linux, phones, and old computers. If you need a real text file, create it in Notepad, TextEdit (set to plain text), or a terminal editor. If you create it in Word or Google Docs, you're not creating a text file, even if you change the extension to .txt.
Where to save your text file
You can save a text file anywhere on your computer — on your desktop, in your Documents folder, in a project folder, or anywhere else. The location doesn't matter for how the file works. What matters is that you remember where you put it so you can find it later.
A good practice is to create a folder for related files. For example, if you're keeping notes for a project, create a folder called "Project Notes" and save all your text files inside it. This keeps your computer organized and makes files easier to find. You can create a new folder by right-clicking in a location and selecting "New Folder" (Windows) or "New Folder" (Mac), or by using your file manager on Linux.
Opening and editing your text file later
Once you've created a text file, opening it is simple. Double-click the file and it opens in your default text editor — Notepad on Windows, TextEdit on Mac, or whatever editor your Linux system uses. Make any changes you want and press Ctrl+S (or Command+S on Mac) to save.
You can also open a text file in any other program that reads text. Right-click the file, select "Open With," and choose a different program. This is useful if you want to open a text file in a word processor to add formatting, or in a code editor if you're writing code. The original .txt file stays unchanged unless you explicitly save over it with a different program.
Frequently Asked Questions
What's the difference between a text file and a Word document?
A text file contains only the characters you typed. A Word document contains hidden formatting code for fonts, colors, spacing, and styles. Text files are smaller, more portable, and open the same way on every device. Word documents are larger and require Word or a compatible program to display formatting correctly.
Can I create a text file on my phone?
Yes. On iPhone, use the Notes app, write your content, then share it and save as a text file using a file manager app. On Android, use Google Keep, Microsoft OneNote, or a dedicated text editor app from the Play Store. Most of these let you save or export as .txt format.
What if I create a file but it doesn't have a .txt extension?
Right-click the file, select "Rename," and add .txt to the end of the filename. For example, change "notes" to "notes.txt." Press Enter. The file is now recognized as a text file and will open in your default text editor.
Can I open a text file in Word or Google Docs?
Yes, both programs can open .txt files. However, when you save it again, make sure you save it as .txt format, not as .docx or Google Docs format, or it will no longer be a plain text file.
Is there a limit to how much text I can put in one file?
Text files can be very large — thousands of pages — but extremely large files (over 100 MB) may slow down your text editor. For most everyday use, a text file can hold as much as you need without any problem.