What is Text File Editor?
Create, open, and edit plain text files right on your device. Includes line numbers, word wrap, find and replace, and file download. Handy for quick edits when you don't want to open a full desktop editor.
The editor reads .txt, .log, .csv, .json, .xml, .html, .md, .py, .sh, .yml, .env, .cfg and similar plain-text formats up to a few megabytes. Line numbers, word wrap, and a match counter help with code or config edits. A dirty-flag in the title warns if you try to close before downloading.
How to use
- Start typing to create a new file, or click Open to load an existing .txt file from your device.
- Edit your text with features like find & replace, word wrap toggle, and line numbers for easy navigation.
- Save your work by downloading the file — choose a filename and it downloads as a .txt file.
When to use
- Patching a config file from a phone or tablet when you can't open a desktop editor.
- Cleaning up a CSV export by find-and-replacing stray characters before importing elsewhere.
- Drafting a quick README, shell script, or env file without spinning up VS Code.
Result
You need to quickly edit a server config file on your tablet. You open the .txt file, use find & replace to change all instances of 'localhost' to '192.168.1.100', then download the updated file.
FAQ
- Where is the file actually saved?
- Nothing uploads. The text lives in the page's memory until you click Download, which writes a file to your device's normal downloads folder. Close the tab without downloading and the changes vanish.
- Can I edit a file directly on disk, like a desktop editor does?
- Not in place. You open a copy in the editor, make changes, then download to overwrite the original. Browsers can't write back to arbitrary disk paths, so this in-then-out flow is the safe trade-off.
- How big can the file be?
- A few megabytes works smoothly. Past 10 MB or so, scrolling and find-and-replace start to slow down because everything is held in memory. For huge logs, split the file first.
- Does find and replace support regex?
- Not yet. Find and replace does literal text matching — case-insensitive by default, with a Match Case toggle in the Find field for exact-case work. For regex replacements with capture groups or character classes, build the pattern in a regex tester and paste the cleaned text back here.
- Will the line endings (CRLF vs LF) be preserved?
- On download you'll get the same newline style as your typing, which in most browsers is LF. If you need Windows-style CRLF, run the saved file through a line-ending converter before sharing it with a Windows tool.
Related Tools
PDF Bookmark Editor
Add and edit bookmarks in PDF files
PDF Flatten
Flatten form fields and annotations in PDFs
Rich Text Editor
Write and format documents with a WYSIWYG editor
Markdown to PDF
Convert Markdown files to styled PDF documents
PDF Crop
Crop and trim PDF page margins
PDF Page Reorderer
Drag and drop to reorder PDF pages