How to Create a Text File on a Xiaomi Phone: Everything from MIUI to Third Party Apps

Creating a text file on a Xiaomi smartphone can be necessary in a variety of situations, from fast writing notes to saving application logs or configuration data. Although MIUI does not offer a built-in Notepad (as on Windows), the functionality of the system and third-party tools allow you to solve this problem in seconds. Many users mistakenly believe that working with.txt files necessarily requires a computer or special knowledge – this is not true.

In this article, we will discuss 5 proven ways to create text documents directly on your phone, including hidden MIUI capabilities, cloud services and applications with advanced functionality. We will focus on the nuances of working with encoding (important for programmers!) and saving files to the right folders. All methods are tested on current versions of firmware and work even on low-end models of Redmi and POCO.

If you don't just want to create a file, but you also need to edit it later, track changes, or sync between devices, this article will provide a solution for these tasks, and we'll also reveal a hidden trick with Xiaomi's Notes app, which allows you to export text in.txt format without additional software, which is especially useful for owners of devices with limited memory, where installing third-party programs is undesirable.

1. Method: Standard Notes app from Xiaomi

The easiest and most obvious method is to use the built-in Notes app, which is pre-installed on all Xiaomi smartphones, which not only allows you to create text recordings, but also export them in.txt format. Here's how it works:

Open the Notes app and create a new entry. Write the text you want, then click on the three dots in the upper right corner and select Export. In the menu that appears, select Text File (.txt) and specify a folder to save (such as Downloads or Documents). The file will be created with the note name and the.txt extension.

  • πŸ“± Suitable for all models Xiaomi/Redmi/POCO on MIUI 12 newer
  • πŸ“ The file is saved to the selected folder of internal memory
  • ⚑ No need for internet or additional applications
  • ⚠️ Restriction: you cannot specify an arbitrary file name (note name is used)

This method is ideal for quickly creating text files on the fly, but has a format limitation: the exported file will be encrypted. UTF-8, which may cause problems opening on some devices (e.g. old printers or industrial equipment) if you need other encoding (e.g, Windows-1251), Consider the following ways.

πŸ“Š What is the most common way to create text files?
Standard notes
Third-party annexes
Cloud Services (Google Drive)
Terminal (for advanced)
Other

2. Method: Application "Files" (MIUI File Manager)

A lesser known, but no less effective, way is to use Xiaomi's built-in file manager, which lets you create empty text files right in the right folder and then edit them through any application.

  1. Open the Files app (the folder icon on the desktop).
  2. Go to the folder where you want to create a file (such as Documents or Downloads).
  3. Click on the three dots in the upper right corner β†’ Create β†’ File.
  4. Enter the file name with the.txt extension (such as my note.txt) and click OK.
  5. Find the file you created in the list and open it through any text application (such as Notes or QuickEdit).

This method gives you more control over the name and location of the file, but it has the nuance that the default file is created blank. To add text to it, you need an additional editing application. If you need to write text right away, move on to the next method.

Go to the folder | Create a file name with the extension.txt| Make sure there is free memory |Select an editing application-->

3. Method: Third-party applications (QuickEdit, Jota+)

For users who need advanced features (syntax highlighting, encoding, cloud sync), specialized text editors are the best choice.

QuickEdit is a lightweight editor with support for UTF-8, ANSI, and Unicode, allowing you to create files directly in the root folder, edit them in real time, and even work with HTML/CSS files. The free version has a file size limit (up to 1 MB), which is enough for most tasks.

Jota+ is a more advanced tool with support for SFTP, Git and syntax for 150+ programming languages. Perfect for developers who work from a smartphone just like a workstation.

AnnexCoding supportMax. File size.Cloud synchronizationSuitable for
QuickEditUTF-8, ANSI, Unicode1MB (free)Google Drive, DropboxOrdinary users, students
Jota+30+ encodingsNot limited.SFTP, Git, WebDAVDevelopers, System Administrators
Turbo EditorUTF-8, UTF-1610MBLocal filesEditing Configuration Files

To create a file in QuickEdit:

  1. Open the app and click + in the lower menu.
  2. Select a new file and specify a name with the.txt extension.
  3. Write the text and click Save (floppy disk in the top menu).
  4. The file will automatically be saved to the QuickEdit folder in internal memory.

πŸ’‘

QuickEdit can enable autosave in settings (Settings β†’ Autosave β†’ Every 2 minutes) to save your text from being lost when the app is suddenly closed.

4. Method: Google Drive and other cloud services

If you need to not only create a text file, but also sync it between devices, cloud services will be the best solution.

Open the Google Drive app on your Xiaomi and click + β†’ Create β†’ Google Docs. Write the text you want, then click on the three dots in the top right corner and select Download β†’ Text File (.txt). The file will be saved to the Downloads folder and will be editable in any text editor.

Advantages of this method:

  • 🌐 Accessing a file from any device through a Google account
  • πŸ”„ Automatic backup
  • πŸ“± Possibility of co-editing (useful for teamwork)

Alternative cloud services:

  • πŸ“ Dropbox: Create a Paper Document and Export to.txt
  • ☁️ OneDrive: Use Word Online and then save it as text
  • πŸ“Ž Yandex Drive: Download an empty.txt from your PC, then edit on your phone
How to save a file in another encoding via Google Drive?
To save the text in Windows-1251 or KOI8-R encoding, first export the document as.docx, then open it to PC via Notepad++ and convert the encoding through the Encoding menu β†’ Convert to ANSI or the desired format.

5. Method: Through the terminal (for advanced users)

If you are familiar with the Linux command line, you can create a text file directly through the Xiaomi terminal (the Terminal or Termux app), a method that is suitable for automation or working with system files.

Install Termux from F-Droid (not from Google Play, it’s an outdated version!) and execute the commands:

pkg update && pkg upgrade


pkg install nano




nano /sdcard/Download/moy_fayl.txt

Once you enter the last command, the nano editor will open, where you can type in text.

  1. Press Ctrl + O (save)
  2. Confirm the file name by pressing Enter
  3. Press Ctrl + X (Exit)

The file will be created in the Download folder (/sdcard/Download/).This method allows you to work with files in any encoding and even create scripts for automation.

⚠️ Warning: Changing system files through the terminal may result in loss of warranty or unstable device performance.Do not edit files in folders /system or /vendor backup!

πŸ’‘

The terminal is the most powerful tool for working with text files, but requires knowledge of Linux commands.

Comparison of methods: which one to choose?

The choice of method depends on your tasks. Here is a quick comparison:

MethodDifficultyInternet is requiredCoding supportBest for you.
Standard "Notes"⭐❌ No.UTF-8Quick notes.
"Files" (MIUI)⭐⭐❌ No.Any (depending on the editor)Creating empty files
QuickEdit/Jota+⭐⭐❌ No (except for synchronization)30+ encodingsRegular work on the text
Google Driveβ­β­βœ… Yes.UTF-8Synchronization between devices
Terminal (Termux)⭐⭐⭐⭐❌ No.Anybody.Automation and system tasks

For most Xiaomi users, the best solution would be a combination of Notes for fast files and QuickEdit for advanced editing. If you need synchronization, plug in Google Drive. The terminal should only be used with confident command line skills.

Frequent Mistakes and How to Avoid Them

When working with text files on Xiaomi, users often face typical problems.

  • πŸ”€ File won't open on PC: Check the encoding. If the text is displayed by cranks, open the file in Notepad++ and convert into ANSI or UTF-8 without BOM.
  • πŸ“ File not saved: Make sure the phone has enough memory and the app has permission to write to the folder (check Settings). β†’ Annexes β†’ Permits).
  • πŸ“± The application crashes when saved: Try saving the file to another folder (e.g. Documents instead of Download). MIUI Limit the entry to system directories.
  • πŸ”„ No changes saved: Enable autosave in the editor settings or save the file manually (Ctrl) + S in Termux or the Save button in graphics editors).

⚠️ Note: When using Termux or other terminal applications, do not save files to the root directory (/) - this can cause system failures (/sdcard/...) or SD-map.

If you are working with configuration files (e.g. build.prop or hosts), make sure to back up the original file before editing!

cp /system/build.prop /sdcard/Download/build.prop.bak
Can you create a text file without installing additional applications?
Yes, it will do with built-in Notes or Files app (see Method 1 and Method 2). Both methods do not require internet and work on all Xiaomi models.
How to change the encoding of a text file on Xiaomi?
Standard MIUI applications save files to UTF-8. To change the encoding: Open the file in QuickEdit or Jota+. Go to file settings (usually a three-point button). Select the desired encoding (e.g. Windows-1251). Save the file. Use Termux with iconv command to massively change the encoding.
Where is Xiaomi stored text files created through Notes?
Files exported from Notes are saved by default to the MiuiNotes Backups folder or to the directory you select (e.g. Download" β†’ Exports and imports.
How to create a text file on Xiaomi with voice?
To do this: Open the Notes app and create a new entry. Click on the microphone icon in the keyboard (or say "OK, Google, create a note"). Dictate the text, then export the note as.txt (see Method 1). Alternative: Use Google Voice-Input Documents, then export into the text.
Can you edit text files on Xiaomi using a PC keyboard?
Yes, for this, connect the phone to the PC through USB-debugging and use: Vysor or Scrcpy to control the phone screen from the PC keyboard. + ssh for remote editing of files via VS Code or Sublime Text. Solid Explorer FTP-server (enable in the application settings and connect from the PC over the local network). Scrcpy will need to enable USB-debugging β†’ The phone. β†’ Version. MIUI (Press 7 times, then in Settings. β†’ Additionally. β†’ For developers.