Find & Replace

Search for text and replace every match with new content. Use literal matching for exact strings or enable regex for pattern-based replacements. Regex mode always replaces all matches and supports an ignore-case option in tool settings.

  • Runs entirely in your browser
  • No data stored or sent to a server
  • Free forever — no signup
  • Instant conversion

Input and Output

Use the interactive encoder and decoder on this page to process your text.

Learn more about find and replace

Find and Replace Text: Literal vs Regex

Find & Replace

When to Use Find & Replace

Bulk-update strings in configs, logs, code snippets, or pasted data without opening an editor. Choose literal mode for exact matches or regex mode for patterns with capture groups.

Real-World Examples

Literal: replace http:// with https:// across a config file

Regex: find id=(\d+) and replace with user_id=$1

Remove trailing whitespace from every line with regex \s+$

Common Mistakes

  • Using regex mode for strings that contain regex metacharacters like . or *
  • Expecting case-insensitive literal matching — use regex mode with Ignore case enabled, or match exact casing in literal mode
  • Replacing in production data without a backup copy in the input panel

Developer Tips

  • Test regex patterns in the Regex Tester tool before using them here — catastrophic patterns (e.g. (a+)+) are blocked here and in the Regex Tester on large input (up to 100 KB)
  • Use literal mode when replacing URLs, file paths, or exact error messages
  • Regex mode replaces every match automatically — no need to add a global flag to your pattern

Frequently asked questions

What is the difference between literal and regex mode?

Literal mode treats the search string as exact text. Regex mode interprets patterns, flags, and capture groups ($1, $2) using JavaScript regular expressions.

Are replacements case-sensitive?

Literal mode is case-sensitive. In regex mode, enable Ignore case in tool settings for case-insensitive matching.

Is my text sent to a server?

No. All find and replace runs locally in your browser.