How to Save a TXT File to Your Device
In this article
This guide shows you how to save a plain text (.txt) file to your device, whether you’re using Windows, macOS, Android, iOS, or a Chromebook. You’ll learn the quickest methods for each platform, how to avoid common pitfalls, and what to do if the file doesn’t save where you expect. No special software is needed—just the built-in tools on your device.
What You'll Need
- A device (Windows PC, Mac, Android phone/tablet, iPhone/iPad, or Chromebook).
- A text editor app (e.g., Notepad on Windows, TextEdit on Mac, Google Keep or any notes app on mobile).
- Enough storage space for the file (usually just a few kilobytes).
- An internet connection only if you are saving to a cloud service.
Step-by-Step
On Windows (using Notepad)
- Open Notepad by pressing the Start button, typing “Notepad,” and clicking the app.
- Type or paste your text into the blank area.
- Click File in the top-left corner, then choose Save As.
- In the dialog box, choose the folder where you want the file (e.g., Documents, Desktop).
- In the File name field, type a name for your file. Make sure it ends with
.txt(e.g.,notes.txt). - In the Save as type dropdown, select Text Documents (*.txt).
- Click Save.
On macOS (using TextEdit)
- Open TextEdit from the Applications folder or via Spotlight (press Cmd+Space and type “TextEdit”).
- If TextEdit opens in rich text mode, go to Format > Make Plain Text (or press Shift+Cmd+T).
- Type or paste your text.
- Click File > Save (or press Cmd+S).
- In the save dialog, choose a location (e.g., Documents).
- Enter a name and ensure the extension is
.txt(if you don’t see the extension, check “Hide extension” is unchecked). - Click Save.
On Android (using a notes app)
- Open a text editor app like Google Keep, or a dedicated one like “JotterPad” or “QuickEdit.”
- Create a new note and type your text.
- Look for a share or export option (usually a three-dot menu or share icon).
- Choose Save to Drive or Download – if you choose “Download,” the file will be saved in the Downloads folder.
- If you use a file manager, you can also create a .txt file directly: open a file manager, navigate to a folder, tap the “+” or “New” button, and select “Text file.”
On iPhone/iPad (using Notes or Files)
- Open the Notes app and create a new note.
- Type your text, then tap the share button (square with an arrow).
- Choose Save to Files.
- Pick a location (e.g., On My iPhone or iCloud Drive), then tap Save.
- Alternatively, in the Files app, tap the “…” button and select “New Folder” or “New Document” – but the easiest is to use Notes and then export.
On Chromebook
- Open the Text app (if you have it) or use an online editor like Google Docs.
- If using Google Docs, type your text, then go to File > Download > Plain text (.txt).
- The file will be saved to your Downloads folder.
- You can also use the built-in “Files” app to create a new text file: open Files, click the three-dot menu, select “New” > “Text file.”
Common Mistakes
- Forgetting the .txt extension – Some editors may save without it, making the file unreadable as text. Always double-check the filename ends with
.txt. - Saving as rich text – On Mac, TextEdit defaults to rich text (.rtf). If you don’t switch to plain text, you get a .rtf file, not .txt.
- Saving to the wrong folder – Files often go to Downloads by default. If you can’t find it, check the Downloads folder.
- Overwriting an existing file – If you choose a name that already exists, you may be prompted to replace it. Make sure you want to overwrite.
- Using a word processor to save .txt – Word or Google Docs can save as .txt, but they may add extra formatting or change the encoding. For pure text, use a simple text editor.
Tips
- Use descriptive filenames (e.g.,
shopping-list.txt) to find files later. - If you plan to share the file, consider saving it to a cloud service like Google Drive or Dropbox so you can access it anywhere.
- On Windows, you can also press Ctrl+S to save quickly after the first save.
- On Mac, Cmd+S works the same way.
- If you need to save a file with a specific encoding (like UTF-8), most editors let you choose that in the save dialog. UTF-8 is recommended for compatibility.
- Keep a backup: save important text files in two places (e.g., local and cloud).
Troubleshooting
- File not appearing where you expected – Check the default save location of the app you used. On Windows, it’s often Documents; on Mac, it’s often iCloud Drive or Documents; on mobile, it’s usually Downloads. Use the search function in your file manager to find the filename.
- “You don’t have permission to save here” – This happens if you try to save to a system folder (like Program Files). Choose a user folder like Documents or Desktop instead.
- The file saves as .rtf or .docx instead of .txt – On Mac, go to Format > Make Plain Text before saving. In other apps, look for a “Save as type” dropdown and select “Text Document.”
- File opens with garbled characters – This usually means an encoding mismatch. Save the file as UTF-8 (or UTF-8 with BOM) and reopen it.
- Can’t find the file after saving on Android – Use a file manager app and look in the “Downloads” folder. If you used “Save to Drive,” check Google Drive.
- On iPhone, the file doesn’t appear in Files – Make sure you tapped “Save to Files” and selected a location. If you saved to iCloud Drive, ensure you’re signed in to the same Apple ID.
Frequently Asked Questions
Can I save a .txt file without any special software?
Yes. Every major operating system has a built-in text editor: Notepad on Windows, TextEdit on Mac, and the Notes app on mobile. You can also use a browser to create a text file via online tools, but those may require internet.
What’s the difference between .txt and .rtf?
.txt files contain only plain text with no formatting. .rtf (Rich Text Format) can include bold, italics, fonts, and colors. If you need a simple file that any program can read, use .txt.
How do I save a .txt file with a specific encoding like UTF-8?
In Notepad on Windows, click File > Save As, then in the “Encoding” dropdown choose UTF-8. On Mac, in TextEdit, go to File > Save, then click the “Plain Text Encoding” dropdown and select UTF-8. Most modern editors default to UTF-8.
Can I save a .txt file to an SD card or external drive?
Yes. When the save dialog appears, navigate to your SD card or external drive and choose it as the location. Make sure the drive is connected and writable.
Why does my file have a .txt extension but still opens in a word processor?
That’s normal. The file extension tells the operating system which program to use, but you can change the default program. Right-click the file, choose “Open with,” and select a text editor.
Is there a way to save a .txt file directly from a browser?
Yes. You can copy text from a webpage, paste it into a text editor, and save it. Some online tools also allow you to type text and download it as a .txt file, but they may require internet.