The fastest way to make a text file
A text file is a document containing only letters, numbers, and symbols — no formatting, images, or special styling. You can create one in under a minute using the built-in tools on any computer.
On Windows, right-click an empty area of your desktop or folder, select New, then Text Document. Name it and press Enter. On Mac, open TextEdit (in Applications > Utilities), go to Format menu and choose Make Plain Text, then save the file. On Linux, right-click in a folder and select Create Document or New File, depending on your desktop environment — or open a terminal and type touch filename.txt.
The file extension .txt tells your computer it is a text file. Without it, the system may not recognize the file type correctly.
Key Takeaways
- Windows users can right-click and select New > Text Document to create a file instantly on the desktop or in any folder.
- Mac users must open TextEdit, switch to plain text mode in the Format menu, and save with a .txt extension to avoid formatting.
- Linux users can right-click in a file manager or type touch filename.txt in a terminal to create a text file.
- Always include the .txt extension when saving so your operating system recognizes it as a text file.
- Text files open in any text editor and are compatible across all operating systems and devices.
Creating a text file on Windows
Right-click on your desktop or inside any folder where you want the file to appear. A menu will pop up. Click New, then select Text Document from the submenu. A new file will appear with the default name "New Text Document.txt" and the name will be highlighted so you can type over it immediately.
Type the name you want — for example, "grocery_list" or "notes" — and press Enter. Windows automatically adds the .txt extension. The file is now ready to open. Double-click it to open it in Notepad (the default text editor on Windows), or right-click and choose Open with to pick a different editor.
If you are inside a program like File Explorer and do not see the New option, make sure you are right-clicking on empty space, not on an existing file or folder.
Creating a text file on Mac
Open TextEdit by clicking the Spotlight icon (magnifying glass in the top-right corner), typing "TextEdit", and pressing Enter. TextEdit opens in rich text mode by default, which adds formatting. You must switch to plain text mode first.
Go to the Format menu at the top and click Make Plain Text. The window will change appearance slightly — this is normal. Now type or paste your content. When you are ready to save, press Command+S (or go to File > Save). A dialog box will appear. Enter your filename and make sure the file extension shows as .txt at the end. Click Save.
If you forget to switch to plain text mode before saving, TextEdit may save the file in a different format. You can always reopen the file, switch to plain text mode, and save again to fix this.
Creating a text file on Linux
Linux offers several ways to create a text file depending on which desktop environment you use. In most file managers (like Nautilus, Dolphin, or Thunar), right-click in an empty area of a folder and look for Create Document or New File. Select it, type your filename with the .txt extension, and press Enter.
If you prefer the terminal, open it and navigate to the folder where you want the file. Type touch filename.txt and press Enter. The file will be created instantly. You can then open it with any text editor — common choices are nano (type nano filename.txt), vi, or graphical editors like gedit or Kate.
The terminal method is faster once you are comfortable with command-line tools, but the file manager method works just as well for most users.
Choosing the right text editor
Once you create a text file, you need an editor to open and modify it. Every operating system comes with a default: Notepad on Windows, TextEdit on Mac, and nano or gedit on Linux. These work fine for simple notes and lists.
If you work with code or need more features, consider Visual Studio Code, Sublime Text, or Atom — all are free or low-cost and run on Windows, Mac, and Linux. These editors offer syntax highlighting (color-coding for code), find-and-replace tools, and the ability to work with many file types at once. For most everyday writing and note-taking, the built-in editors are sufficient.
You can change which editor opens your text files by default. On Windows, right-click a .txt file, select Open with, choose your preferred editor, and check the box that says "Always use this app". On Mac, select a .txt file, press Command+I to open Get Info, change the "Open with" dropdown, and click Change All.
Saving and naming text files
Text files should always end with the .txt extension so your computer knows what they are. When you save, the dialog box will show a field for the filename. Type the name you want, add .txt at the end, and click Save. If you forget the extension, you can add it later by renaming the file.
Use clear, descriptive names that tell you what the file contains. "budget_2024.txt" is better than "file1.txt". Avoid special characters like asterisks, forward slashes, or question marks — they can cause problems on some systems. Spaces are fine, but some people prefer underscores or hyphens instead (like "grocery_list.txt" rather than "grocery list.txt").
Text files are small and take up almost no storage space, so you can create as many as you need without worry. You can organize them into folders just like any other file.
Common uses for text files
Text files are useful for notes, to-do lists, simple logs, configuration files, and storing plain information without any formatting. They are also the standard format for writing code — programmers save their work as .txt files (or with language-specific extensions like .py for Python or .js for JavaScript).
Because text files contain no hidden formatting or metadata, they are also the safest format for sharing sensitive information. They open on any device, any operating system, and any software — a text file created on Windows in 1995 will still open on a modern Mac or Linux computer. This makes them ideal for long-term storage and archiving.
Frequently Asked Questions
Can I create a text file without using right-click?
Yes. Open any text editor (Notepad on Windows, TextEdit on Mac, gedit on Linux) and create a blank document. Type your content and save it with a .txt extension. This method works on all systems and is sometimes faster than using the right-click menu.
What is the difference between .txt and .doc files?
.txt files contain only plain text with no formatting. .doc files (Microsoft Word) can include fonts, colors, images, and styling. Text files are smaller, more portable, and open in any program. Word documents require specific software and may not display the same way on different computers.
Can I convert a Word document to a text file?
Yes. Open the Word document, go to File > Save As, and change the file type dropdown to Plain Text (.txt). Click Save. The document will be converted, but all formatting, images, and special styling will be removed — only the text will remain.
Do I need special software to create a text file?
No. Every computer comes with the tools you need built in. You can create and edit text files using only what your operating system provides — no additional software required.
Why does my text file open in the wrong program?
Your computer is set to open .txt files with a default program. You can change this by right-clicking the file, selecting Open with, choosing your preferred editor, and marking it as the default. On Mac, use Get Info and the "Open with" dropdown instead.