Skip to main content

Find & Replace

Loading…

About Find & Replace

The Find & Replace tool lets you search for any word, phrase, or pattern in your text and replace it across every line at once. Supports plain text matching, case-sensitive mode, whole-word matching, and full regular expressions with capture groups.

This tool is faster and more powerful than using a text editor for bulk replacements. It works on any text you paste — lists, logs, code snippets, CSV data, and more.

Regex mode unlocks advanced replacements: use capture groups to rearrange text, use lookaheads to match patterns conditionally, and use back-references to transform matched content. The replacement field supports $1, $2 syntax for captured groups.

All replacements happen instantly in your browser. Your data is never uploaded or stored on a server.

Practical Uses for Find & Replace

  • Swap first and last name order across a whole contact list
  • Remove a repeated boilerplate phrase from log lines
  • Replace a deprecated API endpoint across a list of URLs
  • Fix a consistent typo across an entire document at once
  • Convert Windows-style line endings to Unix using regex
  • Reformat phone numbers using regex capture groups

How to Use Find & Replace

  1. Paste your text into the input.

  2. Enter the search term in the Find field.

  3. Enter the replacement text in the Replace field. Leave blank to delete the matched text.

  4. Enable regex mode for advanced pattern matching. Copy the result.

Examples

Example — Simple replace
Input
Hello world
Hello there
Hello everyone
Output
Hi world
Hi there
Hi everyone
Example — Regex: swap first and last name
Input
Smith, John
Doe, Jane
Brown, Bob
Output
John Smith
Jane Doe
Bob Brown
Example — Delete a word
Input
Error: file not found
Error: permission denied
Error: timeout
Output
file not found
permission denied
timeout
Example — Reformat phone numbers with regex
Input
5551234567
5559876543
Output
(555) 123-4567
(555) 987-6543
Example — Fix a repeated typo
Input
The recieve function failed.
Please recieve confirmation.
Output
The receive function failed.
Please receive confirmation.
Example — Update a deprecated API path
Input
https://api.example.com/v1/users
https://api.example.com/v1/orders
Output
https://api.example.com/v2/users
https://api.example.com/v2/orders

Who Uses the Find & Replace Tool

  • Developers run regex-powered bulk replacements across config values, logs, or code snippets.
  • Writers and editors fix a recurring typo or terminology change across an entire draft.
  • Data analysts reformat inconsistent data, like swapping name order or fixing date formats, across a whole list.
  • SEO professionals update a deprecated URL path across an exported list of links.
  • Support teams scrub a consistent phrase or reference number out of exported logs or transcripts.

Comparisons

Find & Replace vs Filter by Keyword

Find & Replace changes the content inside your lines — matched text is swapped, deleted, or rearranged using regex capture groups, but every line stays in the output. Filter by Keyword doesn't change any content — it decides whether to keep or drop entire lines based on whether they contain your keyword.

Use Find & Replace when you need to fix or transform text; use Filter when you need to narrow a list down to a subset of lines.

Frequently Asked Questions

Can I use regex capture groups?

Yes — use $1, $2, etc. in the Replace field to reference capture groups from your regex pattern. For example, find (\w+) (\w+) and replace with $2 $1 to swap two words.

Is it case-sensitive?

Case-insensitive by default. Enable the Case Sensitive toggle for exact case matching.

Can I delete text by replacing it with nothing?

Yes — leave the Replace field empty and all matches will be deleted from the text.

Does it replace all occurrences or just the first one?

It replaces all occurrences throughout the entire text by default.

Can I match whole words only?

Use regex mode with word boundaries: \bword\b matches 'word' as a whole word but not 'sword' or 'words'.

What regex syntax is supported?

Full JavaScript (ECMAScript) regex syntax, including lookaheads (?=...), lookbehinds (?<=...), named groups (?<name>...), character classes, quantifiers, and Unicode.

Can I replace line breaks?

In regex mode, use \n to match newline characters. This lets you join lines or replace line endings with other characters.

Can I use this to reformat phone numbers?

Yes — with regex, e.g. find (\d{3})(\d{3})(\d{4}) and replace with ($1) $2-$3 to reformat a plain 10-digit number into (555) 123-4567 style.

Can I fix a typo that appears throughout a long document?

Yes — paste the full document, enter the misspelled word in Find and the correction in Replace, and every occurrence is corrected in one pass.

Can I convert CRLF line endings to LF using this tool?

Yes — enable regex mode, find \r\n and replace with \n. For a dedicated tool that also handles other line-break formatting, use Remove Line Breaks instead.