The fastest way to make a text file
A text file is a document that contains only letters, numbers, and symbols — no formatting, no images, no hidden code. You create one by opening a plain text editor, typing what you need, and saving it with a .txt extension. On Windows, that means Notepad. On Mac, it's TextEdit (set to plain text mode). On Linux, you can use gedit, nano, or vi depending on what's installed.
The simplest route: open your text editor, type your content, then go to File > Save As. Name your file something like notes.txt or grocery_list.txt, choose where you want it to live, and click Save. The .txt at the end tells your computer this is a text file. Without it, some systems will save it as a different format.
Key Takeaways
- Windows users open Notepad (search for it in the Start menu), type their content, then use File > Save As to save with a .txt extension.
- Mac users should open TextEdit, go to Format menu and select Plain Text, then save with a .txt extension — TextEdit defaults to a format that adds hidden code.
- Linux users can open gedit, nano, or vi depending on what's available on their system, then save normally with a .txt extension.
- Text files are small, open on any device, and never lose your formatting because they have no formatting to lose.
Creating a text file on Windows
Press the Windows key or click the Start button, then type "Notepad" into the search box. Click the Notepad app when it appears. A blank window opens — that's your text editor. Type whatever you want: a to-do list, notes from a meeting, a draft email, a list of passwords you want to remember. Notepad doesn't care what you put in it.
When you're done typing, click File in the top left corner, then click Save As. A dialog box appears asking where you want to save the file and what to name it. Type a name like meeting_notes or passwords. Make sure the filename ends with .txt — if you type meeting_notes.txt, Windows will save it as a text file. If you type just meeting_notes, Windows will add .txt automatically in most cases, but it's safer to type it yourself. Click Save, and you're done.
If you want to edit that file later, find it in File Explorer (the folder icon on your taskbar), right-click it, and select Open With > Notepad. Or just double-click it — Windows will open it with whatever program it thinks is best, usually Notepad.
Creating a text file on Mac
Open Spotlight by pressing Command + Space, type "TextEdit", and press Enter. TextEdit opens, but here's the catch: Mac's TextEdit saves files as .rtf (rich text format) by default, which adds invisible formatting code. You need to turn that off first. Click Format in the menu bar at the top, then click Make Plain Text. The window will change slightly — that's normal.
Now type your content. When you're ready to save, press Command + S or click File > Save. A dialog box appears. Type a filename like notes.txt or to_do.txt — the .txt extension is important. Choose where you want to save it (your Desktop, Documents folder, or anywhere else). Click Save. If Mac asks whether you want to use .txt or keep the .rtf extension, choose .txt.
To edit the file later, find it in Finder, right-click it, and select Open With > TextEdit. Or double-click it directly.
Creating a text file on Linux
Linux has several text editors built in. The easiest for beginners is gedit. Open your process menu or terminal and type gedit, then press Enter. A window opens with a blank document. Type whatever you need. When you're done, click the menu button (three horizontal lines) in the top right, then click Save. Type a filename with a .txt extension, choose a folder, and click Save.
If gedit isn't available, try nano from the terminal. Open a terminal window, type nano filename.txt (replace "filename" with what you want to call it), and press Enter. A text editor opens inside the terminal. Type your content. When you're done, press Ctrl + X, then press Y to confirm you want to save, then press Enter to accept the filename. The file is saved.
For more advanced users, vi is also available. Type vi filename.txt in the terminal, press Enter, press I to enter insert mode, type your content, press Escape, then type :wq and press Enter to save and exit.
Where to save your text file so you can find it later
When you click Save As, you're choosing a location. The most common places are your Desktop (visible right on your screen), your Documents folder (usually in your home directory), or a specific project folder you've created. If you're organizing files by category — like one folder for recipes, one for bills, one for notes — save your text file in the matching folder.
A good naming habit helps too. Instead of notes.txt, use 2024_tax_notes.txt or client_contact_info.txt. The more specific the name, the easier it is to find later when you have dozens of text files. Avoid spaces if possible — use underscores or hyphens instead, like grocery_list.txt instead of grocery list.txt. Some systems handle spaces in filenames poorly.
Why use a text file instead of Word or Google Docs
Text files are small — usually just a few kilobytes even if they contain thousands of words. They open when ready on any device: Windows, Mac, Linux, phone, tablet, or even a 20-year-old computer. They never get corrupted by software updates because there's nothing to corrupt — just letters and numbers. If you email a .txt file to someone, they can open it no matter what programs they have installed.
Word documents (.docx) and Google Docs files are useful when you need formatting — bold text, different fonts, images, tables with borders. But if you just need to store information, a text file is faster and more reliable. Many programmers and system administrators use text files for everything because they're straightforward and universal.
Opening and editing a text file you already created
Find your text file in File Explorer (Windows), Finder (Mac), or your file manager (Linux). Double-click it. It opens in your default text editor — usually Notepad on Windows, TextEdit on Mac, or gedit on Linux. Make your changes, then press Ctrl + S (Windows and Linux) or Command + S (Mac) to save. That's it. The file updates with your new content.
If double-clicking doesn't open it in the editor you want, right-click the file, select Open With, and choose your preferred text editor from the list. On Windows, you can set Notepad as the default for all .txt files by right-clicking, selecting Open With > Choose Another App, selecting Notepad, checking "Always use this app", and clicking OK.
Frequently Asked Questions
Can I create a text file without using a text editor?
Yes. On Windows, right-click in an empty area of a folder, select New > Text Document, and a new .txt file appears. On Mac, you can use the terminal with the command touch filename.txt. Both methods create an empty text file you can then open and edit.
What's the difference between .txt and other file extensions like .csv or .log?
.txt is the standard plain text format. .csv (comma-separated values) is also plain text but formatted for spreadsheets — each line is a row, and commas separate columns. .log files are plain text too, usually containing system or program records. All three open in a text editor the same way, but .csv and .log have specific purposes.
Will my text file stay the same if I open it on a different computer?
Yes. Text files are universal. A .txt file created on Windows opens identically on Mac or Linux. The content never changes because there's no hidden formatting. This is one of the main reasons people use text files for important information.
Can I convert a Word document to a text file?
Yes. Open the Word document, click File > Save As, change the file format dropdown to Plain Text (.txt), choose a location, and click Save. Word will strip out all formatting, leaving only the text. You'll lose bold, italics, images, and tables, but the words remain.
Is it safe to store passwords in a text file?
Not recommended. Text files are plain and unencrypted — anyone with access to your computer can read them. For passwords, use a password manager like Bitwarden, 1Password, or KeePass instead. They encrypt your passwords and are much more find.