Skip to content
AldeaCode Logo
Basic text100% local · 0 bytes sent

Find and Replace Text

Replace text in any input with full control: literal or regex, all or first occurrence, case-sensitive or insensitive. Perfect for refactoring large pastes without firing up an editor. Prototype the pattern in the Regex Tester first, then prune unwanted rows with Remove Lines Containing… or reorder the result with Sort Text Lines.

Loading…

How it works

Literal mode uses indexOf/split. Regex mode passes your pattern to JavaScript's RegExp constructor with the right flags. If your regex is invalid, the input is returned untouched.

How to use it

  1. Paste the source text

    Drop in a paragraph, a config file, a code block, anything you want to refactor without firing up an editor.

  2. Write find and replace

    Type the literal string or regex to find, plus the replacement. Toggle case sensitivity and all-vs-first occurrence.

  3. Run the replacement

    Literal mode uses indexOf/split. Regex mode passes your pattern to RegExp with the right flags. Invalid regex returns input untouched.

  4. Copy the replaced text

    Take the rewritten output into your file, your CMS body, or your next pipeline step. Capture groups work in regex mode.

Use cases

Fix a typo across a whole paste in one shot.

Replace placeholders like {{name}} with real values.

Use a regex to convert spaces into commas.

Mask emails or phone numbers in a sample dataset.

When NOT to use it

  • On regex patterns you do not understand. Test with the Regex Tester first; replace with $1, $2 backrefs only after confirming the match.
  • Against very large input where regex backtracking may explode. The browser will hang. Run in chunks or use an editor with timeout.
  • When the replacement contains literal $ characters. Use $$ to insert a single $ in regex mode.

Your data never leaves your browser

Every utility runs entirely on your device. Nothing is uploaded, nothing is stored on a server. You can disconnect from the internet and they keep working.

Frequently asked questions

Related tools

Curated next destinations. Use complementary tools in a pipeline; alternatives swap in for a different angle; next-step tools pick up where this one leaves off.