Find and Replace Text

Literal or regular-expression replace, with case and global options. Runs entirely in your browser, no upload, no sign-up.

Result

Find and replace text in your browser

Paste your text, enter what to find and what to replace it with, and get the result instantly. Everything runs locally in your browser — your text is never uploaded to a server.

Options

Examples

Leave Replace with blank to simply delete every match.

FAQ

Why doesn't \n in the replacement insert a newline?

In the default literal mode, both the find and replace strings are taken exactly as typed — \n is a backslash followed by an "n". Switch on Regular expression mode if you want escapes like \n or \t to be interpreted.

How do I reuse part of the match in the replacement?

Enable regex mode and use capture groups: wrap parts of the pattern in parentheses, then reference them as $1, $2, or ${name} in the replacement. For example, find (\w+)@(\w+) and replace with $2:$1 turns user@host into host:user.

Can I replace only the first occurrence?

Yes — untick Replace all. By default every match is replaced (and the match count is reported); with it off, only the first match changes and the rest of the text is left alone.

Is my text sent anywhere?

No. The search and replacement run entirely in your browser via WebAssembly, so you can safely paste logs, config files, or anything private.

Developer & Automation Access

Run it from the terminal

Same engine as this page, headless — via the gizza CLI:

gizza tool find-replace "Paste the text to search…" 'find=text or regex to find'

New to the CLI? Get gizza →

Open it by URL

Pre-fill and auto-run this tool with query parameters — the names match the API/CLI:

https://gizza.ai/tools/find-replace/?text=Paste%20the%20text%20to%20search%E2%80%A6&find=text%20or%20regex%20to%20find&replace=replacement%20%28blank%20%3D%20delete%20matches%29&regex=true&case_sensitive=true&global=true

Machine-readable descriptor: tool.json — title + parameters JSON Schema for agents.