Find and replace

Client

Replace literal text or regex matches in a paste—then trim lines or sort with adjacent writing tools.

Choose literal text or a regular expression

Literal mode replaces the exact characters you enter and is the safer choice for names, labels, and fixed snippets. Regex mode is useful for variable patterns, but punctuation and backslashes can change meaning.

Build and test a complex expression on the regex tester before applying it to a large paste, and confirm whether case-sensitive matching is intended.

Review replacements before copying

Check the match count and scan the output around boundaries such as punctuation, line endings, and empty values. Replacement group syntax follows JavaScript rules in regex mode.

For important edits, compare the original and result with Plain text diff so an unexpectedly broad match is visible before the text goes back into a document or ticket.

2 matches replaced.

Nearby workflows on Toolcore

  • Regex tester — to prove a variable pattern against positive and negative samples first.
  • Regex escape — when punctuation from literal input must be safe inside a pattern.
  • Plain text diff — to review every changed line before accepting replacement output.
  • Remove duplicate lines — when replacement normalization leaves repeated rows in the result.

Common use cases

  • Rename a placeholder across a config paste before commit.
  • Swap API hostnames in a log excerpt with regex capture groups.
  • Replace one typo across many lines without a desktop editor.

Common mistakes to avoid

  • Regex without escape

    Special characters like . or ( need escaping unless you intend a pattern.

  • Case-insensitive literal off

    Toggle case sensitivity when replacing Foo vs foo in prose.

FAQ

How is this different from the regex tester?

Regex tester shows matches on a pattern; this tool rewrites the whole input with replacements.

Replace only the first match?

Uncheck Replace all for a single literal or regex replacement.

Is my text uploaded?

No. Replacement runs locally in your browser.

Common search terms

Phrases people search for that match this tool. See the full long-tail keyword index.

  • find and replace text online
  • regex find and replace browser
  • replace all matches in pasted text
  • case sensitive text replacement

Related utilities you can open in another tab—mostly client-side.