Picture this: 300 files, and the same old company name hiding in every one of them.
You could open each file, press Ctrl+H, fix it, save, close, and repeat until lunch. Then do it again tomorrow when you find the 301st file.
Or you could let a program do it in one go, show you every change before it happens, and keep a backup just in case. That's why I built TNTTS TextWorks: a free Windows tool that finds, replaces and changes text across lots of files at once.
Here's what it does, how it keeps your files safe, and where to get it.
The scary part of "Replace All"
Every text editor has Replace All. The trouble is what happens when it goes wrong across hundreds of files: a typo, a word you didn't mean to catch, a file that comes back with strange characters because its encoding got mangled. There's no Undo button for that.
So TextWorks was built around one rule: nothing gets written until you've seen it, and nothing gets lost after it's written.
How it works: three steps
The main window is set out as three numbered cards, so you always know where you are.
| Step | What you do |
|---|---|
| 1. Where to look | Add folders or files, paste paths, or drag them in. Even a whole drive works. Search sub-folders or just the top folder, skip folders you don't want, and filter by file name (only *.txt, skip *.log, and so on). |
| 2. What to find | Type your text. Turn on Match case, Whole word or Ignore whitespace if you need them. Press Find and you get match counts per file and a preview with every hit highlighted. |
| 3. What to change | Pick an action, mark the files you want changed, check the preview, and press Replace. |
Searching never changes a thing. TextWorks even tells you so after every search, because it's nice to be sure.
More than find and replace
| Action | What it does |
|---|---|
| Replace | Swap the found text for something new. |
| Insert before / after | Add text right in front of, or right after, each match. |
| Delete | Remove the matches completely. |
| Clear to spaces | Blank out the matches with spaces, so columns in fixed-width files stay lined up. |
| Change case | Make matches lower case, UPPER CASE or Title Case. |
Tokens: let the file fill in the blanks
This is my favourite part. Put a token in your replacement text and each file fills it in with its own details.
| Token | Becomes |
|---|---|
{file} | The file name, like notes.txt |
{name} | The file name without the extension, like notes |
{ext} | The extension, like txt |
{folder} | The folder the file is in |
{path} | The full path of the file |
{date} / {time} | Today's date and the time, the same for every file in the run |
So replacing DRAFT with {name} - checked {date} stamps every file with its own name and today's date. Type a token wrong, like {nmae}, and TextWorks stops and tells you before it touches a single file.
The safety net
This is where most of the work went. Here's everything standing between you and a bad day:
| Safety feature | Why it matters |
|---|---|
| Copies by default | Changed files go to a new folder, with the same folder layout. Writing over the originals is an option, and it asks first. |
| Preview first | You see the original and new lines before anything is written. |
| Encoding kept | UTF-8, UTF-16, with or without a BOM: files come back in the same encoding. If a file can't be saved without damage, it's refused, not changed. |
| Line endings kept | Windows or Unix line endings, and that last newline at the end, all stay as they were. |
| Safe writing | Each file is written to a temporary file first, then swapped in. A crash halfway won't leave you with half a file. |
| Edited since you searched? | If a file changed after your search, it's skipped instead of overwritten. |
| Backups and restore | Every run is kept in a history with backups. Restore puts files back, and it won't wipe out edits you made later. |
| Cancel means cancel | Stop a run halfway and it tells you exactly which files were changed and which weren't. |
Files it can't or shouldn't read (missing, locked, binary, shortcuts) are listed under Skipped and errors instead of quietly vanishing from the count.
It's quick, too
TextWorks reads and searches files on up to 8 threads at once, one per CPU core. On my 20,000-file test folder, a search went from 3.2 seconds down to 0.7. The window stays responsive the whole time, it shows which folder it's in, and there's a Cancel button if you change your mind.
Pick your look: Day, Night or Old School
Open the View menu and choose one. Day Mode is clean and bright. Night Mode is easy on the eyes after dark, title bar included.
And then there's Old School Mode:
GREEN PHOSPHOR... OK
SCANLINES........ OK
READY.█
Green text on black, a monospace font and CRT scanlines, like the computer room in 1987. It does exactly the same work, it just looks much cooler doing it.
Have a go
You need Windows 10 or 11 (64-bit). TextWorks runs on .NET Framework 4.8, which is already part of Windows 10 and 11.
Download TNTTS TextWorks 0.1.0
SHA-256: DB069932ADB3ADCD9208409CF0B9A4B85162BB8342EB0C464A210B60A187738F
To check your download, run Get-FileHash on the zip in PowerShell with -Algorithm SHA256 and compare.
- Unzip the download and double-click TNTTS-TextWorks-0.1.0-Setup.exe.
- If Windows says "Windows protected your PC", click More info, then Run anyway. That's only because the app isn't signed with a paid certificate yet.
- Choose to install for everyone on the PC or just for you, then click through the installer.
- Open TNTTS TextWorks from the Start menu.
- Stuck on anything? Press F1. The Help topics explain every part of the app in plain, simple words.
The zip also has the full source code in the source folder, if you'd like to see how it works.
Some things to try
Make a test folder and copy a few text files into it first. Then:
| Try this | What happens |
|---|---|
Drag the folder in and search for a common word like the | Match counts per file, and every hit lit up in the preview with its line number. |
| Turn on Whole word | "the" stops matching inside "other" and "theme". Watch the count drop. |
Replace it with THE ({name}) | The preview shows each file's own name being filled in. Nothing has been written yet. |
| Press Replace with output set to copies | Changed copies appear in a new folder. Your originals are untouched. |
Try a typo token like {nmae} | TextWorks refuses and tells you why, before any file is touched. |
| Switch to Old School Mode | Welcome back to 1987. |
Before you hit Replace
| Topic | Good to know |
|---|---|
| Writing over originals | Copies are the default for a reason. If you choose to change the original files, check the preview first. Backups and restore are there, but a second look is quicker. |
| Your data | Everything stays on your PC. The app sends nothing anywhere. Settings, run history and backups live in %LocalAppData%\TNTTS TextWorks. |
| Usage history | A plain text log of your searches and replaces (what, where and how many, never your file contents), kept on your PC. Turn it off or clear it from the Tools menu. |
| Uninstalling | Removes the app but leaves your history, backups and settings, so you don't lose a backup by accident. |
| Licence | Free and open source under the MIT License. Use it, share it, change it. It comes with no warranty, and the download includes the full source code. |
What's next?
This is version 0.1, the first release. Regular expressions (with capture groups), saved settings and saved rule sets are already planned for later versions.
It started as "just a quick find and replace" and turned into a crash course in text encodings, line endings and all the ways a file can go wrong. Making sure a tool can't break your files turned out to be the most interesting part.
If you give it a try, tell me what you used it on, and what you'd like it to do next.
Reference(s) / Test Environment(s):
- Built with C# and WPF on Microsoft .NET Framework 4.8
- Tested on Windows 10 Pro x64, including a 20,000-file test folder
- Installer built with Inno Setup by Jordan Russell and Martijn Laan: jrsoftware.org
- TNTTS TextWorks by Erickson Deveza. © 2026 KalyeRetro Finds PH.






Comments
Post a Comment