Find and Replace

Find and replace text instantly, with optional regular expression (regex) support and exact case matching. Useful for renaming a variable across a config file, removing extra blank lines with a regex pattern, or standardizing quotation marks, free online without sign-up.

Output

Usage examples

Renaming a variable across a config file

Replace every occurrence of a specific word or variable name scattered throughout a file in one pass.

Replacing pattern-based text with a regular expression

Turn on regex mode to match patterns like phone numbers or emails and reformat only the matching parts.

Replacing text with exact case matching

Turn on case sensitive mode so words with the same spelling but different capitalization are left untouched.

Removing extra blank lines with a regex pattern

Turn on regex mode, search for repeated newlines like \n{3,}, and replace with a single line break to clean up a document with excessive blank lines.

Standardizing quotation marks or dashes in a manuscript

Replace every curly quote or em dash pasted in from a word processor with a plain straight quote or hyphen, so the text matches a simpler publishing format.

Frequently asked questions

Is my text sent to a server?

No. All processing happens entirely in your browser, and what you enter is never sent to a server.

Do I need to know regular expressions to use this?

No. With 'Use regular expression' turned off, your find text is matched literally as plain text.

What happens if my regular expression has an error?

If the pattern is invalid, an error message explains what's wrong instead of showing a result.

Can I see how many matches were replaced?

Yes. The match count is shown next to the output label after each replacement.

What happens if the 'Find' field is left empty?

With nothing to search for, no replacements are made and the output simply mirrors your input text unchanged.

Can I use capture groups in my replacement text?

Yes, when regex mode is on. Use parentheses in your pattern to capture parts of the match, then reference them in the replacement field with $1, $2, and so on.

Does this replace all matches, or just the first one?

All matches in the text are replaced in one pass, not just the first occurrence — the match count tells you exactly how many replacements were made.