Find & Replace

Search and replace text with simple or regex matching.

Informational only; verify critical results independently.

How to use

  1. Paste the full text you want to search within.
  2. Enter the literal string or enable regex for pattern matching.
  3. Enter the replacement text—use capture groups if your regex mode supports $1, $2.
  4. Toggle case sensitivity depending on whether FOOD should match food.
  5. Run replace-all or step through if the tool offers preview to avoid mistakes.
  6. Copy the output; keep an undo buffer elsewhere because bulk replace is destructive.

Examples

  • Rename variable foo → bar in a pasted code block
  • Regex: replace dates YYYY-MM-DD with DD/MM/YYYY
  • Strip double spaces with replace ' ' → ' ' iteratively
  • Change Windows CRLF to LF by replacing \r\n (regex mode)
  • Redact emails in a log with a fixed placeholder
  • Swap CSV delimiter from semicolon to comma cautiously

FAQ

Regex dialect?
We follow JavaScript-style regex when regex mode is on; anchors ^ $ work per line if multiline is enabled.
Why did nothing match?
Check case mode, whitespace, and escaping—dots and brackets are special in regex.
Replace newlines?
Use \n in regex mode carefully; mixed CRLF files may need \r?\n.
Global vs first only?
Default is usually replace all occurrences; confirm in the UI.
Huge files?
Browser memory limits apply; use sed/awk for multi-GB logs.
Privacy?
Text stays local to your browser.

Related guides

Related tools

Last updated: 2025-09-15