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.
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.
- Open the Files app (the folder icon on the desktop).
- Go to the folder where you want to create a file (such as Documents or Downloads).
- Click on the three dots in the upper right corner β Create β File.
- Enter the file name with the.txt extension (such as my note.txt) and click OK.
- 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.
| Annex | Coding support | Max. File size. | Cloud synchronization | Suitable for |
|---|---|---|---|---|
| QuickEdit | UTF-8, ANSI, Unicode | 1MB (free) | Google Drive, Dropbox | Ordinary users, students |
| Jota+ | 30+ encodings | Not limited. | SFTP, Git, WebDAV | Developers, System Administrators |
| Turbo Editor | UTF-8, UTF-16 | 10MB | Local files | Editing Configuration Files |
To create a file in QuickEdit:
- Open the app and click + in the lower menu.
- Select a new file and specify a name with the.txt extension.
- Write the text and click Save (floppy disk in the top menu).
- 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?
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.txtOnce you enter the last command, the nano editor will open, where you can type in text.
- Press Ctrl + O (save)
- Confirm the file name by pressing Enter
- 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:
| Method | Difficulty | Internet is required | Coding support | Best for you. |
|---|---|---|---|---|
| Standard "Notes" | β | β No. | UTF-8 | Quick notes. |
| "Files" (MIUI) | ββ | β No. | Any (depending on the editor) | Creating empty files |
| QuickEdit/Jota+ | ββ | β No (except for synchronization) | 30+ encodings | Regular work on the text |
| Google Drive | ββ | β Yes. | UTF-8 | Synchronization 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