Text Replacer
Find and Replace Text Blocks Instantly
Text Replacer goes beyond basic find-and-replace. Paste any content — code, articles, templates, scripts — and find, navigate, and replace exact text blocks including multi-line passages and special characters. All processing happens locally in your browser — your data never leaves your device. No registration, no ads, no limits, forever free.
How to Use
- Original text: Paste the full content you want to edit.
- Find: Enter the exact text to search for — including line breaks and special characters. Press
Enterto find next; useShift+Enterto insert a newline in the search field. Match count updates live as you type. - Aa (Case sensitive): Toggle to match exact letter casing. Off by default — searching
hellowill matchHello,HELLO, etc. - Replace with: Enter the replacement text. Leave empty to delete matches.
- Find: Highlight the next match in the result area. Shows current position (e.g. 2 / 5). Wraps around when reaching the end.
- Replace: Replace the currently highlighted match and jump to the next one.
- Replace All: Replace every occurrence at once.
- Undo: Revert the last Replace or Replace All operation.
- Copy: Copy the entire result to clipboard.
- Clear All: Clear all fields and start fresh.
- Result area is editable: After replacing, you can fine-tune the result directly before copying.
- Theme Options:
Why Not Just Use Notepad or a Code Editor?
Standard find-and-replace tools often struggle with multi-line blocks — newline characters are treated specially, or the interface doesn't let you paste a full paragraph as the search term. Text Replacer treats the search field as a plain textarea: whatever you type or paste — including multiple lines, tabs, and Unicode — is matched literally and precisely.
How It Works
The replacement engine uses String.split(searchTerm).join(replacement) for case-sensitive Replace All, and a RegExp with the gi flag for case-insensitive Replace All. Single-match Replace uses index-based slicing. This approach correctly handles all Unicode characters, accented letters, non-Latin scripts, emojis, and any combination of line endings (LF, CRLF). No server calls, no external libraries.
Use Cases
- Template editing: Replace placeholder blocks like
[COMPANY NAME]or multi-line boilerplate across documents. - Code editing: Swap repeated code blocks or configuration snippets without opening a code editor.
- Content localization: Replace source language passages with translations, one by one or all at once.
- Data cleaning: Remove or replace unwanted repeated sections in exported data or logs.
Install as App
Install Text Replacer on your device for instant access from your home screen. Works fully offline after the first load.
- Android (Chrome): Menu → "Add to Home screen" or "Install app".
- iPhone / iPad (Safari): Share → "Add to Home Screen".
- Desktop (Chrome / Edge): Click the install icon in the address bar.
Privacy & Security
- 100% local processing: All text replacement happens in your browser. Your text never reaches any server.
- Works offline: After the first load, the app runs without any internet connection.
- No tracking: We use Cloudflare Web Analytics for anonymous traffic stats only. No cookies, no ads, no personal data collected.
- No registration: Open the page and start using it immediately.
By using Text Replacer, you agree to the Privacy & Terms.
About
- Text Replacer: textreplacer.sonlt.app
- Email: contact@sonlt.app
- Built by Lâm Thái Sơn