Text Cleaner
Sanitize copied text: strip HTML, smart quotes, URLs, emails, emojis, and extra whitespace.
Open ToolSearch and replace plain strings, whole words, or RegEx patterns with live match counts.
Each output panel above updates locally in real time as your text changes. Here is what every metric or transformation produced by Find and Replace Text represents:
Find and Replace Text is a precision batch editing tool that substitutes matching text substrings or JavaScript Regular Expression patterns across an entire document instantaneously.
Ordinary word processors struggle when you need Unicode-safe whole-word isolation, capture-group reordering (`$1`), or sequential multi-pass replacements without corrupting original drafts.
In standard literal mode, RegEx metacharacters inside your Find query (`.`, `*`, `+`, `?`, `$`, `[`, `]`) are automatically escaped so searching for prices (`$19.99`) or URLs works safely without pattern crashes. Enabling `Whole words` wraps your escaped pattern inside Unicode word-boundary lookarounds (`(?<![\p{L}\p{N}_])` ... `(?![\p{L}\p{N}_])`).
Turning on `RegEx mode` compiles your raw Find input directly as a JavaScript `RegExp` with `gu` (or `giu` when case-insensitive) flags, enabling capture groups (`$1`, `$2`), lookaheads, and pattern cleanups.
Always executes global Unicode replacement (`gu` or `giu`), preventing accidental partial ASCII word-boundary bugs (`\b`) on accented characters like `café` or `über`.
An internal history stack saves snapshots prior to each Apply Replace to Input click so stacked multi-step edits can be stepped back cleanly.
Explore Next: Text Cleaner for instant one-click presets like stripping HTML or URLs • Text Diff Checker to verify every edit against your original baseline • Browse all 30 text tools
Input: The cat watched a caterpillar.
Output / Insight: Replacing "cat" -> "fox" with Whole words enabled changes only "cat" -> "The fox watched a caterpillar.".
Input: Find (RegEx): (\d{4})-(\d{2})-(\d{2}) | Replace: $3/$2/$1 on "2026-11-27"
Output / Insight: Transforms ISO dates cleanly into "27/11/2026".
In plain Replace With boxes, browser inputs treat `\n` literally unless you paste an actual newline or split via Remove/Sort line utilities; in RegEx Find queries, `\n` and `\t` match newlines and tabs directly.
In RegEx mode you control exact boundaries directly (for instance `\b` or `(?<!\S)`), giving full expression freedom without auto-wrapping brackets.
Every time you press Apply Replace to Input, the previous input state is pushed to an Undo history array so you can step backward reliably.
A non-crashing error alert explains the syntax issue right away while leaving your source text completely intact.
Sanitize copied text: strip HTML, smart quotes, URLs, emails, emojis, and extra whitespace.
Open ToolCompare two texts side-by-side with highlighted additions, deletions, and unchanged lines.
Open ToolCollapse multiple spaces, trim leading/trailing tabs, and tidy messy whitespace.
Open ToolStrip blank or whitespace-only lines completely or collapse gaps to single line breaks.
Open Tool