Working with text files on Android has long ceased to exist the prerogative of computers only. Today, smartphones can handle editing TXT, CSV, JSON and even XML as well as desktop apps - provided you know the right tools. This guide will help you figure out how to open, edit and save text documents directly on your phone, be it simple notes or configuration files.
We will look at both the built-in capabilities of Android and specialized applications - from minimalistic notepads to advanced code editors with syntax highlighting. Particular emphasis is placed on practical scenarios: when you urgently need to correct a config file, convert data from CSV into a readable format, or simply make notes in a text document without unnecessary complications.
Built-in Android tools: what the system can do out of the box.
Many users do not suspect that Android already contains basic tools for working with text files. There is no need to install third-party applications when it comes to simple operations.
The most obvious way is to use file manager (for example, standard Files by Google or Mi File Manager on Xiaomi). Most of these applications can open .txt files in viewing and basic editing mode. Enough:
- ๐ Find the file through the manager
- ๐ Tap on it - the system will offer to open it with the built-in viewer
- โ๏ธ Click "Edit" (if the option is available)
The limitations of this method are obvious: there is no syntax highlighting, autosave or work with encodings. But the method works on any device without installing additional software. For one-time edits (for example, changing the password in the router config file) this is quite enough.
โ ๏ธ Attention: The built-in editor in some firmware (especially on budget smartphones) can save files in encoding UTF-8 with BOM, which breaks some scripts. Check the saving settings if the file is not readable by the app.
Top 5 applications for editing text files
When the capabilities of standard tools are not enough, specialized applications come to the rescue. We have selected 5 of the most functional solutions for various tasks - from simple notes to professional work with code.
| Application | Features | Best for | Cons |
|---|---|---|---|
| QuickEdit | Syntax highlighting for 50+ languages, work with FTP/SFTP, search by regex | Programmers, admins | Paid Pro version for all functions |
| Jota Text Editor | Minimalistic interface, support .md, .json, cloud synchronization |
Writers, bloggers | No built-in FTP client |
| Turbo Editor | Quick search, bookmarks in the code, support for large files (up to 100 MB) | Works with logs, configs | Advertising in the free version |
| Monect | Remote control of a PC via smartphone + built-in editor | Remote editing of files on a computer | Requires installation of the server part on the PC |
| DroidEdit | SFTP/FTPS, Git integration, terminal | Developers | Difficult for beginners |
For 90% of users the optimal choice would be QuickEdit or Jota โthey offer the best balance between functionality and simplicity. If you need to edit files directly on the server, pay attention to DroidEdit with SFTP support.
In the settings of most text editors, you can enable "Auto-save" (usually in the "Preferences" or "Settings" section). This will save your changes if the application suddenly closes or the phone is discharged.
Editing system files: root and ADB rights
Sometimes you need to change files in the Android system folders - for example, build.prop to fine-tune the firmware or hosts to block ads. Here, ordinary applications will not help: you need root access or commands ADB.
With root access, everything is simple: install any file manager with root support (for example, Root Explorer or FX File Explorer) and edit the file directly in the system folder. Without root, you will have to use ADB:
adb pull /system/build.prop ~/build.propEdit a file on your computer
adb push ~/build.prop /system/build.prop
adb reboot
To work with hosts without root, the application Hosts Go is suitable - it creates a local VPN server that redirects requests according to your hosts file. This is safer than editing system files directly.
โ ๏ธ Attention: Incorrect editing of system files can lead to bootloop. Always make a backup copy of the original file with the command adb pull /path/to/file backup.txt before making changes.
Working with CSV and JSON: formatting features
Text files of CSV and JSON formats require a special approach. They cannot be edited as plain text - it is important to preserve the data structure so that the file remains readable for apps.
For CSV, the best choice is CSV Editor or Excel-compatible applications like Google Sheets (opens CSV directly from the file manager). Main rules:
- ๐ Separators (comma/semicolon) must be the same throughout the file
- ๐ Text fields with commas must be enclosed in quotes
- ๐ Leave empty cells empty (do not put
NULL)
With JSON it is more difficult - following the syntax is critical here. Applications like JSON Editor or QuickEdit (with JSON highlighting enabled) automatically check the validity of the file. Errors such as omitted commas or quotes will cause the file to become unreadable.
How to check JSON for errors without applications?
Use online validators like jsonlint.com or build the check into your code through libraries like json-schema. QuickEdit has a built-in check - a checkmark icon in the upper right. corner.
Automation: scripts and Termux
If you regularly have to process text files according to the same rules, it makes sense to automate the process. For this purpose on Android there is Termux a full-fledged Linux terminal with support sed, awk, python and others. tools.
Examples of useful commands:
- ๐ Replace text in all files in a folder:
sed -i 's/old_text/new_text/g' *.txt - ๐ Convert CSV to TSV:
awk '{print $0}' FS=, OFS="\t" input.csv > output.tsv - ๐ Search by files:
grep -r "search text" /sdcard/
To work with Termux, you will need basic knowledge of the Linux command line. But the possibilities are limited only by your imagination: you can write scripts in Python that will parse logs, convert formats, or even send reports by email.
Install Termux from F-Droid (the version from the Play Market is outdated)|Update packages with the command pkg update && pkg upgrade|Install the necessary utilities (for example, pkg install python)|Set up storage with a team termux-setup-storage-->
Cloud synchronization and collaboration
When a team is working on text files or you need to access them from different devices, cloud services come to the rescue. Most text editors for Android support synchronization with:
- โ๏ธ Google Drive (via built-in integration or Google Docs)
- โ๏ธ Dropbox (plugins in QuickEdit, DroidEdit)
- โ๏ธ Nextcloud/WebDAV (via Nextcloud Notes or Markor)
- โ๏ธ GitHub/GitLab (via GitJournal or Termux + git)
For collaborative editing in real time are suitable:
- ๐ Google Docs (opens TXT, but saves in its own format)
- ๐ Collaborator (specialized editor with versioning)
- ๐ VS Code Server on your own server + access via browser
If privacy is critical, avoid public clouds. It is better to deploy your own Nextcloud or use Syncthing for P2P synchronization between devices.
Common problems and their solutions
Even with the best tools, typical problems arise when working with text files on Android:
| Problem | Cause | Solution |
|---|---|---|
| The file cannot be opened | Incorrect encoding | Try UTF-8, Windows-1251 or ISO-8859-1 in the settings editor |
| Hieroglyphs instead of text | File corruption | Open in a HEX editor (for example, Hex Editor) and restore manually |
| Changes are not saved | The file is read-only | Change permissions through the file manager or chmod 644 file_name in Termux |
| The application crashes | The file is too large | Split the file into parts or use Large Text Editor |
A special category of problems is associated with Line Endings. Windows uses CRLF, Linux/Unix โ LF. If the script does not work after editing on Android, check this point in the editor settings (usually the "Line Endings" option).
For critical files (server configs, scripts), always make a backup copy before editing. Even a small typo can disable the system.
FAQ: Answers to popular questions
Is it possible to edit text files without the Internet?
Yes, all the applications discussed in the article (except for cloud editors like Google Docs) work completely offline. To edit local files on your phone, you do not need the Internet.
How to open a file of 500 MB in size?
Most text editors on Android cannot handle files larger than 50-100 MB. For large files, use:
- Large Text Editor (supports files up to 1 GB)
- Termux with utilities
less,head,tail - Splitting the file into parts with a command
split
Why, after editing on Android, the file is not readable on a PC?
The most probable reasons:
- The file was saved in the wrong encoding (try UTF-8 without BOM)
- Line endings have changed (use LF for Unix systems)
- The application added hidden characters (check in a HEX editor)
How edit files on a memory card?
To work with files on an SD card:
- Make sure the card is formatted as internal storage (starting with Android 6.0)
- Use a file manager with access to SD (for example, Solid Explorer)
- If the card is a removable drive, connect the phone to the PC and edit the files there
Is there an analogue of Notepad++ on Android?
The closest in functionality:
- QuickEdit (syntax highlighting, plugins)
- DroidEdit (modes for different languages, macros)
- Acode (interface as in VS Code, extensions)
For full emulation of Notepad++, you can install it via Wine for Android, but this is not optimal in terms of performance.