Zero Signup ToolsFree browser tools

Text Tools

Find and Replace

Find and replace text online in plain text or regex mode. Case-insensitive, whole-word, multiline, and capture-group backreferences. No signup.

Mode

Plain text find. Whole word and case toggles available.

Options

Enter a pattern to search

Common presets

0 lines, 0 chars

Preview after replace

0 lines, 0 chars

Highlighted matches in input

0 matches
Highlights will appear here once you type and search.

How to use

  1. Paste the text you want to edit into the Input text panel.
  2. Pick Plain text mode for literal find, or Regex mode for pattern matching with capture groups.
  3. Type the search string in Find and the replacement in Replace with. Leave Replace with empty to delete every match.
  4. Toggle the options that apply: Case insensitive, Whole word (plain text), Multiline and Dot matches newlines (regex), or Replace all to switch between every match and the first match only.
  5. Read the highlighted matches and the preview panel, then click Replace all to commit the change. Use Copy result or Reset all to finish.

About this tool

Find and Replace is a fast browser tool that searches a block of text for one pattern and swaps in another, with the safety net of a live preview before any change is committed. Two modes cover the cases people actually search for: Plain text mode treats the Find field as a literal string and supports a Whole word toggle (so replacing 'cat' will not touch 'category'), a Case insensitive toggle, and an optional 'Interpret backslash escapes' switch so a typed '\n' or '\t' becomes a real newline or tab inside both the Find and Replace fields. Regex mode accepts the full JavaScript regular expression syntax and exposes the standard flag toggles (case insensitive, multiline so ^ and $ anchor at line breaks, dotall so . matches newlines, and Unicode for property escapes and surrogate pair handling). The replacement field supports the JavaScript replacement tokens that most documentation references: $1 through $99 for numbered capture groups, $<name> for named groups defined as (?<name>...), $& for the full match, $` and $' for the text before and after the match, and $$ for a literal dollar sign. Live highlighting shows every match in the input with an amber underline so you can see exactly what is about to change before clicking Replace, and a count badge reports how many matches are pending. Replace all is the default; toggling it off limits the change to the first match only, which is useful for surgical edits in a long log line. Quick presets cover four jobs that come up constantly: strip trailing whitespace from every line, collapse runs of double spaces to a single space, swap curly smart quotes for straight ASCII quotes, and remove blank lines. Common use cases include renaming a variable across a snippet, normalizing a column of email addresses, mass-editing a Markdown export, fixing pasted smart quotes inside source code, removing CRLF line endings, formatting CSV fields, prepping a translation glossary, and rewriting log lines with capture-group rearrangement (turning '2026-05-08T12:34:56' into '08/05/2026 12:34', for example). Inputs up to 500,000 characters are processed locally, with the highlight panel capped at the first 5,000 matches to keep the UI smooth on huge documents. Everything runs in your browser, so the source code, contracts, logs, and pasted snippets you search and replace here never leave your device.

Free to use. Works in your browser. No signup, no login.

Related tools

You may also like

All tools
All toolsText Tools