# How to Create a Text File on iPhone

Updated: November 24, 2026

- [Plain Text Editor](https://sindresorhus.com/plain-text-editor.md): Simple distraction-free notepad. Price: $5, one-time purchase for all platforms. Platforms: macOS, iOS, visionOS. Get it from: [App Store](https://apps.apple.com/app/id1572202501). Requires macOS, iOS, or visionOS 26 or later. Size: 4 MB on Mac, 5 MB on iPhone and iPad. Free older versions for macOS 15, 14, and 13: [download](https://sindresorhus.com/plain-text-editor#older-versions). US App Store rating: 4.8/5 (104 ratings).

URL: https://sindresorhus.com/guides/create-text-file-iphone

Open [Plain Text Editor](https://sindresorhus.com/plain-text-editor.md), tap “Create Document”, and type. It saves a plain text file in the Files app, which you can share, rename, or open in another app. [Without an app](https://sindresorhus.com/guides/create-text-file-iphone#without-an-app), a shortcut with the “Text” and “Save File” actions saves text as a file.

## With Plain Text Editor

1. Open [Plain Text Editor](https://sindresorhus.com/plain-text-editor.md).
1. Tap “Create Document”.
1. Type the text. It saves by itself.
1. To change the name of the file, tap the name at the top, and tap “Rename”.

The file is a normal `.txt` file in the Files app, so you can attach it to an email, upload it to a website, or open it on your Mac, where [Plain Text Editor also works](https://sindresorhus.com/guides/plain-text-editor-mac.md). The app also opens and edits other plain text files, like `.csv` and `.md` files: touch and hold the file in the Files app, and tap “Open With”, or choose it in the app. [How to open a text file on iPhone.](https://sindresorhus.com/guides/open-txt-file-iphone.md)

On Mac, see [how to create a new text file on Mac](https://sindresorhus.com/guides/create-text-file-mac.md).

## Without an app

The Shortcuts app can save text as a file ([Apple’s guide](https://support.apple.com/guide/shortcuts/apdaf74d75a5/ios)):

1. In the Shortcuts app, make a new shortcut, and add the “Text” action. Type your text in it.
1. Add the “Save File” action.
1. Run the shortcut, and choose where to save the file.

This is free, and fine for a file that you make one time. The Notes app can also export a note as a Markdown file (`.md`), which is a text file too: open the note, tap the share button, and choose the Markdown export. To change the text of the file later, you need an app that edits text files, like Plain Text Editor.
