Replace text across a document, with optional regular expressions.
Matched literally — punctuation is not special
Leave empty to delete matches
Fix a repeated typo
Whole-word match
Replace teh with theStrip a prefix
Literal matching
Remove "INFO: " from log linesA pattern
Regular-expression mode
\\d+ to #Any length.
The match count updates as you type.
The original is never modified in place.
Searching for "." finds full stops. Tools that treat every search as a regular expression turn that into "replace every character", which is rarely what anyone wanted.
The number of matches is shown live, so a replacement that would hit 400 places instead of 4 is obvious before you copy it.
An unclosed bracket reports the actual error rather than silently matching nothing.
Find every occurrence of something and replace it, with a live count of how many matches were made before you commit. Plain mode treats your search term literally, so searching for a full stop finds full stops rather than matching every character — the mistake that makes naive replace tools dangerous. Whole-word matching stops "cat" changing "category". Regular-expression mode is there when you need it, and an invalid pattern is reported with its error rather than silently doing nothing or throwing.
Keep going
Related pages in Text Tools, plus what others are using right now.
More text tools that pair well with this one.
Convert text between twelve cases — upper, lower, title, camel, snake and more.
Collapse repeated spaces, strip trailing whitespace and tidy blank lines.
Compare two pieces of text and see exactly what changed, line by line.
Remove duplicate lines while keeping the original order, with statistics.
Turn a broken-up block of text into continuous paragraphs.
Sort lines alphabetically, numerically or by length, in either direction.
Create strong random passwords with full control over length and characters.
Format, validate and minify JSON, with errors that point to the exact line.
Work out any percentage — of a number, as a share, or as a change.
Convert between length, weight, temperature, volume, speed, data and more.
Find the mean, median, mode and range of a list of numbers, with the working shown.
See how savings grow with compounding, including regular contributions.
Sample and population standard deviation and variance, both shown, with the working.
Turn a logo into favicon.ico, the PNG sizes a site needs, and the HTML to declare them.
Check a downloaded file against its published checksum, without uploading anything.
Stamp text like DRAFT or CONFIDENTIAL across a PDF, in your browser.
Turn JSON into readable YAML, with quoting and multiline strings handled properly.
Escape text for HTML, or turn entities back into readable characters.