Jump to a tool

Text cleanup

Find and Replace

Make a precise replacement and see the match count before copying the result.

Processed locally in your browser. Your data is never uploaded or stored.
Processed locally in your browser. Your data is never uploaded or stored.

Ready

Input0 lines · 0 characters
Output0 lines · 0 characters
OptionsAdjust how this tool processes your text
Find and Replace options
Press Ctrl/Cmd + Enter to process

What this tool does

A focused tool for a specific cleanup job

Find and Replace supports literal searches and guarded JavaScript regular expressions. It reports matches, validates patterns, keeps replacements literal, and can optionally remember a short local history of patterns.

Common use cases

  • Rename repeated labels in pasted content
  • Normalize structured identifiers with a pattern
  • Replace only the first header occurrence
  • Check how many edits a search will make

How to use Find and Replace

  1. Paste the source text.
  2. Enter the search and replacement values.
  3. Choose plain text or regular expression mode.
  4. Set case sensitivity and first/all behavior, then review the match count.

Options explained

  • Plain-text mode treats punctuation as ordinary characters.
  • Regex mode uses browser regular-expression syntax and rejects suspiciously expensive patterns.
  • Replacement text is inserted literally, so dollar signs are preserved.
  • History is optional, limited, and never stores the source input.

Example

Before
draft-01, draft-02
After
final-01, final-02

Edge cases and limitations

  • Empty search patterns are rejected.
  • Regex patterns are length-limited and checked for common nested-quantifier risks.
  • History is disabled by default for privacy.

Questions

Find and Replace FAQ

What happens with an invalid regular expression?

Processing stops and the pattern field receives an accessible error message.

Does history save my pasted text?

No. When enabled, it stores only short search settings, never the input or output text.