Guides

Text editors for one big .txt file

Updated:

Not every editor is a good fit for one large .txt. A 5–50 MB file with thousands of lines needs fast search, careful encoding handling, and predictable behavior without syntax highlighting.

Selection criteria

Desktop editors

Sublime Text

A fast cross-platform editor with excellent search, regular expressions, multi-cursor editing, and a large plugin ecosystem. It handles large text files well. The license is paid, but there is an unlimited evaluation mode.

VS Code

A free editor with a huge extension ecosystem. For large files, the files.maxMemoryForLargeFilesMB setting matters; at tens of megabytes, disable the minimap, syntax highlighting, and unnecessary extensions. It is convenient if you already work in VS Code and want notes next to code.

BBEdit

A macOS editor with strong large-file support, regex search, and macros. There is a free mode with limitations and a paid full version. A good choice for a native macOS tool.

Notepad++

A free Windows editor with many plugins, regex search, and support for multiple encodings. A familiar option on Windows when a full IDE is unnecessary.

TextEdit and Notepad

Built-in OS editors work for quick edits but can struggle with very large files and offer weaker search. For daily OBTF use, an editor with file history and regex search is a better fit.

Terminal editors

Vim and Neovim open large files almost instantly and support regex, macros, and work without a graphical shell. The learning curve is steeper, but for a file that lives in a terminal and Git, it is a strong option.

Emacs offers comparable flexibility and extensibility. Like Vim, it takes time to learn, but it works equally well locally and over SSH.

nano is a minimal editor without extra features. It is fine for a quick fix, but not for complex search and replace.

Mobile editors

Comparison

EditorPlatformsPriceLarge filesStrength
Sublime TextmacOS, Windows, LinuxPaid, evaluation availableVery goodSpeed, regex, multi-cursor
VS CodemacOS, Windows, LinuxFreeDepends on settingsExtensions and integration
BBEditmacOSFree mode / paidVery goodNative macOS tool
Notepad++WindowsFreeGoodPlugins and regex
Vim / NeovimmacOS, Windows, LinuxFreeExcellentTerminal, macros
EmacsmacOS, Windows, LinuxFreeExcellentExtensibility
iA WritermacOS, iOS, iPadOSPaidAverageFocus on text
TextasticiOS, iPadOSPaidAverageCode and text on mobile

Settings for large files

How to choose

If the file syncs across devices, set up sync first: how to sync one text file across devices. If you are still deciding whether OBTF is right for you, start with the comparison: OBTF vs Notion vs Obsidian.

Start with a ready-made file. The template already has a date, markers, and example entries.

Download starter .txt →