A text file is just words with no formatting, and you can create one in under a minute
A text file (or .txt file) is the simplest kind of document your computer can store. It contains only letters, numbers, and basic punctuation — no bold, italics, colors, or images. You create one by opening a blank text editor, typing what you need, and saving it with a .txt extension at the end of the filename. On Windows, that's Notepad. On Mac, that's TextEdit. Both come free with your operating system.
Text files are useful for organizing because they open on any device, never get corrupted by software updates, and take up almost no storage space. They're also the format most programs expect when you're uploading lists, instructions, or data to a website or process.
Key Takeaways
- Open Notepad on Windows or TextEdit on Mac, type your content, then save the file with a .txt extension at the end of the name.
- TextEdit on Mac defaults to rich text format, so you must change it to plain text before saving, or your file won't be a true .txt file.
- Save your text file in a folder where you'll remember to look for it — your Documents folder or a subfolder you create for a specific project.
- You can open and edit a .txt file in any text editor, email program, or web browser, so you're never locked into one process.
How to create a text file on Windows
Right-click on your desktop or inside any folder where you want the file to live. Select "New" from the menu, then click "Text Document." Windows will create a file called "New Text Document.txt" with the name highlighted so you can type over it. Type the name you want — for example, "grocery list" or "passwords to reset" — and press Enter. The file is now created and ready to open.
Double-click the file to open it in Notepad. Type or paste whatever you need to store. When you're done, press Ctrl+S (or go to File > Save). The file saves automatically in the same location where you created it. If you want to move it later, you can drag it to a different folder just like any other file.
Alternatively, you can open Notepad first by clicking the Start menu, typing "Notepad," and pressing Enter. Type your content, then press Ctrl+S. A dialog box will ask you where to save the file and what to name it. Make sure the filename ends in .txt — Notepad usually adds this automatically, but check the "Save as type" dropdown to confirm it says "Text Documents (*.txt)".
How to create a text file on Mac
Open TextEdit, which lives in your Applications folder under Utilities. (Click the Finder icon in your dock, click Applications, then double-click Utilities.) When TextEdit opens, go to Format menu and select "Make Plain Text." This step is critical — if you skip it, your file will save as .rtf (rich text format) instead of .txt, and it won't work the same way across different programs.
Type or paste your content. When you're ready to save, press Command+S. A dialog box appears asking for a filename and location. Type the name you want, and make sure the filename ends in .txt — for example, "notes.txt" or "contact info.txt". Choose where to save it (your Documents folder is a good default), then click Save.
If you already have a document open in TextEdit and want to convert it to plain text, go to Format > Make Plain Text, then save it. TextEdit will warn you that some formatting may be lost — that's normal and expected for a text file.
Where to save your text file so you can find it later
The location where you save matters as much as the filename. If you save a file to your desktop, it will clutter your screen. If you save it deep inside nested folders, you'll forget where it is. A good system is to create a main folder for a project or category, then save related text files inside it.
For example, create a folder called "Home Admin" in your Documents folder, then save files like "utility passwords.txt", "contractor contact info.txt", and "appliance manuals.txt" inside it. When you need one, you know exactly where to look. You can create a new folder by right-clicking in the location where you want it (Windows: select "New" > "Folder"; Mac: File > New Folder) and typing the folder name.
Avoid saving text files in system folders like Program Files (Windows) or Library (Mac), because those are reserved for your operating system and applications. Stick to Documents, Desktop, or folders you create yourself.
How to edit a text file you've already created
Double-click the .txt file to open it in your default text editor. Make any changes you want. Press Ctrl+S (Windows) or Command+S (Mac) to save. The file updates in place — you don't need to save it with a new name unless you want to keep a copy of the old version.
If you want to open the same text file in a different editor, right-click it (Windows) or Control-click it (Mac), select "Open With," and choose the program you prefer. This doesn't change the file itself — it just opens it in a different process. The next time you double-click it, it will still open in whatever your default editor is.
Common mistakes to avoid when creating text files
The most common mistake on Mac is forgetting to change TextEdit to plain text format before saving. If you save in rich text format by accident, the file will have a .rtf extension instead of .txt, and some programs won't recognize it. If this happens, open the file in TextEdit, go to Format > Make Plain Text, and save it again — this time it will be a true .txt file.
On Windows, the second common mistake is not including the .txt extension in the filename. If you type "grocery list" without ".txt" at the end, Windows may save it as "grocery list.txt.txt" or without an extension at all. Always check the "Save as type" dropdown to make sure it's set to "Text Documents (*.txt)".
A third mistake is saving a text file in a location you can't remember. Before you save, think about where you'll look for it next time. If it's a temporary note, the Desktop is fine. If it's something you'll need to find months later, put it in a named folder in Documents.
Why text files are better than word documents for organizing information
A Word document (.docx) or Google Doc can do everything a text file can do, but with extra complexity. They require specific software to open, they can become corrupted if the software crashes, and they take up more storage space. A text file opens in any editor, on any device, and never breaks.
Text files are also the standard format for uploading lists to websites, pasting into forms, or sharing data between different programs. If you're storing passwords, contact lists, inventory, or instructions that you might need to move between devices or share with someone else, a text file is the safest choice.
The trade-off is that text files can't store images, colors, or fancy formatting. If you need those things, use Word or Google Docs. If you just need to store words and numbers in a way that will work forever, use .txt.
Frequently Asked Questions
Can I create a text file on my phone or tablet?
Yes, but you'll need a text editor app. On iPhone, Notes app creates text, but it saves as .notes format by default. On Android, Google Keep or a dedicated text editor like Jotterpad will create .txt files. read one from your app store, create your file, and look for an option to export or save as .txt before closing.
What's the difference between .txt and .rtf files?
.txt is plain text with no formatting at all. .rtf (rich text format) can store bold, italics, colors, and fonts. Both are text-based, but .rtf files are larger and require compatible software to display formatting correctly. For organizing information, .txt is simpler and more universal.
Can I rename a file from .doc to .txt?
You can change the extension in the filename, but the file won't actually become a text file — it will just have the wrong label. To convert a Word document to true .txt format, open it in Word, go to File > Save As, change the file type to "Plain Text," and save. Word will strip out all formatting and save only the words.
What happens if I delete the .txt extension from the filename?
The file still exists and still contains text, but your computer won't know which program to open it with. You'll have to right-click and choose "Open With" every time. It's easier to keep the .txt extension so the file opens automatically in your default text editor.
Can I password-protect a text file?
A plain .txt file has no built-in password protection. If you need to protect sensitive information, encrypt the file using your operating system's built-in tools (BitLocker on Windows, FileVault on Mac), or use a password manager to store the information instead of a text file. Never store passwords or financial information in an unencrypted text file.