Skip to content
1001 Tools
sr
Text tools

Find and Replace

Paste your text, type what to find and what to put in its place — every occurrence is replaced at once and the counter tells you how many. Whole-word matching stops “sat” from mangling “satellite”, and a regex mode with capture groups handles the jobs plain search cannot, like swapping name order across a whole list.

Result

How it works

In plain mode the search term means exactly what it says: dots, brackets and other special characters are matched literally, so replacing “3.50 (net)” just works. The whole-word option uses Unicode-aware boundaries — š, đ and ž count as letters — so “raž” will not match inside “ražanj”, which ASCII-based tools get wrong.

Regex mode hands you the full pattern language: \d+ for digit runs, ^ and $ for line edges, alternations, and capture groups you can reference in the replacement as $1, $2. The pattern is validated as you type; a malformed one shows a clear error instead of silently doing nothing.

Everything is live — text, term and options re-run the replacement on each keystroke, and the count above the output doubles as a search counter: type the term and leave the replacement empty to just count occurrences.

Practical examples

Renaming a product across a document

“ProPlan” became “ProPlan Max” in 47 places of a sales document. One replacement, count confirms 47, paste the result back. Word can do this too — but not from a phone, and not in a plain .txt.

Swapping first and last names

A list of “Firstname Lastname” entries needs “Lastname Firstname”. Regex mode: find (\S+) (\S+), replace with $2 $1 — the classic capture-group trick, applied to hundreds of lines at once.

Deleting a repeated boilerplate phrase

An export prefixes every line with “[INFO 2026-07-14] ”. Find it, replace with nothing, and the log becomes readable. Regex \[INFO [^\]]+\] handles varying dates.

Counting occurrences without changing anything

How many times does “rizik” appear in the contract? Enter it as the search term, leave replace empty, enable whole word — the counter answers without altering a character you keep.

Frequently asked questions

Does it replace all occurrences or just the first?

All of them, always — and the counter reports exactly how many. Selective, one-at-a-time replacement is editor territory; a paste-in tool is at its best doing the whole sweep with a verifiable count.

What does “whole word” actually check?

That the match is not glued to a letter or digit on either side. Boundaries are Unicode-aware: “čas” as a whole word will not match inside “časopis”, because č and s are recognized as letters — unlike in tools that only know ASCII.

Do I need to escape dots and brackets in plain mode?

No — plain mode is literal. Search for “(v2.1)” and exactly that string is found. Escaping only matters in regex mode, where those characters carry meaning.

What regex flavor is supported?

JavaScript regular expressions with the Unicode flag — the same syntax as browser DevTools and Node. Backreferences $1–$9 work in the replacement; lookaheads and lookbehinds work in the pattern.

Why is the whole-word checkbox disabled in regex mode?

Because a regex defines its own boundaries — wrapping your pattern in extra assertions behind your back would change its meaning. Write \b (or the Unicode-aware (?<!\p{L}) …) where you want it.

Can I replace line breaks or tabs?

In regex mode, yes: \n matches a line break and \t a tab. Replacing \n with a space joins lines — a common cleanup for text copied from PDFs.

How large a text can I process?

Hundreds of thousands of words replace in well under a second — the engine is the browser’s native regex implementation, which is heavily optimized C++ underneath.

Is my text or search term sent anywhere?

No. The replacement runs locally on every keystroke; nothing about your text, terms or patterns leaves the browser.

Related tools