Fix the text where it sits.
TextAnvil is a free Windows tray utility. Select text in any program, press Ctrl+Shift+E, pick a transform, and the selection is replaced. Title Case, snake_case, strip HTML, straighten curly quotes, transliterate to plain ASCII, find the whitespace that trim() misses.
Windows 10 or 11, 64-bit. One zip, no installer, no account, nothing written to the registry. Everything runs on your own machine. MIT License.

Three steps, then back to work
The menu opens at the text caret, so your eyes never leave the line you are editing.
Select the text
In any program: a tag editor, a browser form, an email, a terminal, the Explorer rename box. If nothing is selected, TextAnvil works on the clipboard instead.
Press the hotkey
Ctrl+Shift+E or Ctrl+right-click. Every item has a letter. Press t for Title Case, or use the arrow keys, or click.
Keep typing
The result replaces the selection and your clipboard is put back the way it was. Hold Shift and the result is typed character by character for fields that refuse to paste.
Press Ctrl+P or click the pin and the menu stays open as a palette. Each click then acts on whatever you have selected in the active window, which is how you fix forty song titles in a row without opening the menu forty times.
Thirty transforms, one keystroke each
Letters are assigned automatically. Hide the items you never use and they stop taking up a letter.
Case
- uUPPERCASE
- llowercase
- sSentence case "THIS IS it. really?" becomes "This is it. Really?"
- tTitle Case Small words stay lowercase, DJ and USA stay uppercase, and the word lists are yours to edit
- cCapitalize Each Word
- otOGGLE cASE
Code
- acamelCase
- ePascalCase
- nsnake_case "XMLParser v2" becomes "xml_parser_v2"
- kkebab-case
- 1CONSTANT_CASE
- rURL slug Accents folded, punctuation dropped
- yKeyString "Hello, World's Cafe" becomes "Hello_Worlds_Cafe"
Cleanup
- iTransliterate to ASCII Greek, Cyrillic, CJK, accents, and emoji to readable ASCII with AnyAscii
- hStraighten quotes and dashes Curly quotes, em dashes, and the ellipsis character to plain punctuation
- mStrip HTML Tags removed, entities decoded
- wCollapse whitespace
- xRemove extra spaces
- fFix hidden whitespace No-break spaces to spaces, zero-width characters removed
- vRemove line breaks
- 2Trim each line
Special and output
- dPseudolocalize Look-alike accented letters for testing layouts
- zPseudolocalize one letter per word
- 3Remove pseudolocalization
- 4Insert zero-width spaces So a long token can wrap
- 5Remove zero-width characters
- gPaste as plain text
- jType it out Types the clipboard at a human pace, for fields that block Ctrl+V
Protection is on by default: URLs, email addresses, GUIDs, @handles, and #hashtags pass through every transform unchanged, so UPPERCASE does not break the link in the middle of the sentence.
Stats, and the whitespace you cannot see
The Stats column fills in as the menu opens. The warning shows up before the bad data gets saved.
- Words, characters, characters without spaces, lines, sentences, non-ASCII characters, URLs, and email addresses, counted as the menu opens.
- A ! N unsafe whitespace warning whenever the selection holds a no-break space, a zero width space, a byte order mark, or any of 60 other characters that look like a space and survive trim() in ColdFusion, SQL, and most everything else.
- More stats adds bytes as UTF-8, paragraphs, unique words, reading time, average word and sentence length, the longest word, the Flesch reading ease score, numbers, HTML tags, and every hidden character by code point with where it first appears.
- Copy stats puts the figures on the clipboard as text or as a two-column table for a spreadsheet. Fix hidden whitespace cleans the selection from the same window.
Excel appends a no-break space to a cell and a state code of "CA" stops matching "CA". That one took years to find the first time. Now it is a yellow line in a menu.


Three themes
Graphite is the default. Ember and Phosphor are a click away on the Appearance page.



Settings you can read
Everything lives in TextAnvil.ini, a plain text file beside the program. The Settings window edits it; so can Notepad.

- Pick the menu hotkey by pressing it. Choose the mouse gesture from a list. Start TextAnvil when you sign in.
- Decide which items show, in which order, and in which column. Unchecked items give their letter back.
- Edit the Title Case word lists: small words, always-lowercase, always-uppercase, Roman numerals.
- Set the typing pace for Type it out and what a line break should type.
- Tell it which programs are terminals. In those, TextAnvil never sends Ctrl+C, because an empty terminal reads that as an interrupt.
- Quick start, Help, and About pages are built in. Apply takes effect at once, and a bad hotkey is reported instead of silently dropped.

The same engine from the command line
textanvil-cli.exe runs every transform and the full stats set with plain or JSON output, so a ColdFusion app or a PowerShell script gets the same answer without a network call.
textanvil-cli --type title "THE BEST OF ME (LIVE)"
The Best of Me (Live)
textanvil-cli --type striphtml,keystring "<p>Hi & bye</p>" --json
{"ok":true,"version":"1.2.0","type":"striphtml,keystring","protect":true,"inputLength":21,"outputLength":6,"text":"Hi_bye"}
textanvil-cli --stats --in draft.txt --json
{"ok":true,"version":"1.2.0","words":412,"characters":2519,...,"fleschScore":61.4,"fleschLabel":"standard",...,"hiddenWhitespace":[{"codePoint":"U+00A0","code":"NBSP","name":"no-break space","tier":1,"count":2}]}
JSON output is pure ASCII on stdout, with every non-ASCII character escaped, so it survives whatever charset the caller decodes with. That matters for ColdFusion's cfexecute. A ready-made client CFC ships in the source:
anvil = new TextAnvilClient( exePath="C:\tools\TextAnvil\textanvil-cli.exe" ); title = anvil.transform( "THE BEST OF ME (LIVE)", "title" ); // The Best of Me (Live) key = anvil.transform( "<p>Hi & bye</p>", "striphtml,keystring" ); // Hi_bye
The CLI never writes beside itself and reads its data from resources inside the exe, so it runs from a read-only folder under a service account, several copies at a time. Exit codes are documented. Input can come from a file, the arguments, or stdin.
Download
One zip. Unzip anywhere and run TextAnvil.exe. An anvil appears in the tray.
Requires Windows 10 or 11, 64-bit. No installer. To uninstall, delete the folder.
| File | Purpose |
|---|---|
TextAnvil.exe | The tray utility. Run it with no arguments. |
textanvil-cli.exe | The command-line tool. Same program, built to behave like a console app. |
TextAnvil.default.ini | The settings the utility starts from. |
source\ | The AutoHotkey source, data, tests, and build scripts. |
About the SmartScreen prompt. The executables are not signed, so Windows may warn about an unknown publisher the first time you run them. A code-signing certificate costs more than this project is worth to me. If you would rather not run an unsigned binary, install AutoHotkey v2 and run source\TextAnvil.ahk directly. It is the same code, and you can read all of it.
Written in AutoHotkey v2 and released under the MIT License. Bugs and ideas go to the issue tracker.