The fastest way to create a text file depends on your operating system
A text file is a document that contains only plain text — no formatting, no images, no special fonts. You can create one in under a minute using tools already on your computer. On Windows, right-click your desktop or inside a folder and select "New" then "Text Document". On Mac, open TextEdit, go to Format menu and choose "Make Plain Text", then save the file. On Linux, right-click in a file manager window and select "Create Document" or "New File", depending on your desktop environment.
The file you create will have a .txt extension, which tells your computer it contains only text. You can open it with any text editor — Notepad on Windows, TextEdit on Mac, or gedit on Linux — and edit it whenever you need to. Text files are useful for notes, lists, code snippets, or any information you want to store without formatting.
Key Takeaways
- On Windows, right-click your desktop or folder, select "New" then "Text Document" to create a file instantly.
- On Mac, use TextEdit, switch to plain text mode in the Format menu, and save with a .txt extension.
- On Linux, right-click in your file manager and select "Create Document" or "New File" depending on your desktop.
- Text files open in any text editor and contain no formatting, images, or special styling.
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. Select "New" and then click "Text Document". Windows will create a file named "New Text Document.txt" and highlight the name so you can type a new one immediately. Type the name you want — for example, "shopping list" or "notes" — and press Enter. The file is now created and ready to open.
If you want to create a text file inside a specific folder, open that folder first, then right-click in the empty space inside it and follow the same steps. You can also create a text file by opening Notepad (search for it in the Start menu), typing your content, and then going to File > Save As. Choose where you want to save it, give it a name, and make sure the file type is set to "All Files" so it saves as .txt instead of .txt.txt.
Creating a text file on Mac
Open TextEdit, which you can find in Applications > Utilities or by searching for it in Spotlight. When TextEdit opens, go to the Format menu at the top and select "Make Plain Text". This step is important — if you skip it, TextEdit will save your file in a formatted style that is not plain text. Once you have switched to plain text mode, type or paste your content.
When you are ready to save, press Command+S or go to File > Save. A dialog box will appear asking for a filename. Type the name you want — TextEdit will automatically add the .txt extension. Choose where you want to save the file (your Desktop, Documents folder, or anywhere else), then click Save. Your text file is now created and stored.
Creating a text file on Linux
Open your file manager (Nautilus on GNOME, Dolphin on KDE, or Thunar on Xfce). Navigate to the folder where you want to create the file. Right-click in the empty space inside the folder. Depending on your desktop environment, you will see either "Create Document" or "New File" in the menu. Click it, and a new file will appear with a default name like "New Document" or "untitled".
Right-click on the new file and select "Rename" to give it a proper name with a .txt extension — for example, "notes.txt". Press Enter to confirm. You can now open it by double-clicking, which will open it in your default text editor (gedit, Kate, or another editor depending on your setup). Type your content and save the file using Ctrl+S or File > Save.
Choosing a text editor for your files
Once you have created a text file, you can open and edit it with any text editor. Windows comes with Notepad, which is simple and works for basic notes and lists. Mac has TextEdit (remember to use plain text mode). Linux has gedit, Kate, or nano depending on your distribution. All three are free and built into the operating system.
If you want more features — like line numbers, syntax highlighting for code, or search-and-replace — you can download a free text editor like Visual Studio Code, Sublime Text, or Atom. These are more powerful but still simple to use. For everyday notes and lists, the built-in editors are usually enough.
Organizing text files in folders
Text files are small and easy to store, so you can create many of them without using much space. To keep them organized, create folders for different purposes — one for shopping lists, one for notes, one for recipes, and so on. On any operating system, right-click in a folder and select "New Folder" to create a directory, then move your text files into the appropriate folders.
You can also rename text files at any time by right-clicking them and selecting "Rename". Change the name but keep the .txt extension so your computer knows it is still a text file. If you accidentally delete a text file, check your Recycle Bin (Windows) or Trash (Mac and Linux) — you can usually restore it from there.
Frequently Asked Questions
What is the difference between a text file and a Word document?
A text file contains only plain text with no formatting, fonts, colors, or images. A Word document (.docx) can include all of those things. Text files are smaller, open faster, and work on any device. Word documents are better if you need to format your writing.
Can I create a text file without an extension?
Yes, but your computer may not know which program to open it with. Keeping the .txt extension tells your operating system it is a text file and opens it with a text editor automatically. You can remove the extension if you want, but you will have to choose the program manually each time you open it.
Is it safe to edit text files I find online?
Yes, text files are safe to open and edit. They cannot run programs or contain viruses. However, if someone sends you a file claiming to be a text file but it has a different extension (like .exe or .bat), do not open it — those can contain harmful code.
Can I convert a text file to a Word document later?
Yes. Open your text file in Word, Google Docs, or another word processor, then save it in that program's format. You will lose any formatting you add if you convert back to plain text, but the content stays the same.