Find and Replace

Paste text below, enter what to find and what to replace it with. TextVix shows the result and the number of replacements instantly.

  • Free, no sign-up
  • Runs in your browser

Drop your file here, or

TXT, CSV, JSON, Markdown, HTML, XML, DOCX, PDF, RTF and more

Type, paste with Ctrl V, or drop a file

Options

or press Ctrl EnterRuns in your browser

Result

Your edited text will appear here.

Add your text, then press Find & replace.

How to use Find & Replace

  1. Paste your text into the input box.
  2. Type the text to find and its replacement. Leave the replacement empty to delete matches.
  3. Use Match case, Whole word or Regular expression for precise matching.
  4. Choose Replace all or Replace first, then copy or download the result.

Example

Before
John Smith
Jane Doe
After
Smith, John
Doe, Jane

Regular expression (\w+) (\w+) replaced with $2, $1.

Good for

  • Renaming a term throughout a document
  • Reformatting data with regular expressions
  • Removing unwanted words or characters
  • Swapping separators, such as commas for tabs

Regular expression tips

Use $1, $2… to insert capture groups and $& for the whole match. Type \n in the replacement for a new line and \t for a tab. ^ and $ match the start and end of each line. Invalid patterns show a friendly error, and slow patterns are stopped automatically so the page never freezes.

What happens to your text

Your text is processed in your browser and kept only in this tab’s memory. It is not uploaded, saved or used for analytics.

Questions about Find & Replace

More answers in the TextVix FAQ.

What does “Whole word” do?

It only matches complete words, so finding “cat” won’t match “catalog” or “bobcat”. It works with accented and non-Latin letters.

Why does my regular expression show an error?

The pattern isn’t valid JavaScript regex syntax — often an unclosed bracket or a trailing backslash. Fix the pattern and the error disappears.

Is my text uploaded anywhere?

No. This tool runs entirely in your browser. Your text and files are never sent to a server or stored.