Skip to content
All tools
English

Find and replace

Replace a word everywhere at once, with the count before you commit. Regular expressions when you need them.

Your files never leave your device

Type, paste or drop a .txt file. Everything stays on this device.

Words
0
Characters
0
Without spaces
0
Lines
0
Sentences
0
Reading time
0

Options

How to use it

  1. Paste your text

    Type, paste, or drop a .txt file into the editor. Long documents are fine.

  2. Type what to find and the replacement

    The number of matches updates as you type. Press Replace all when it looks right.

  3. Copy or download

    Copy the result, download it as a .txt file, or press Undo to go back a step.

The options

  • Match case: Apple will not match apple. Off by default.
  • Whole words only: cat matches "cat" but not "category" or "concatenate". Word boundaries follow Unicode, so this works for Arabic words too.
  • Ignore tashkeel (Arabic): محمد also matches مُحَمَّد. The diacritics in the original text are replaced together with the word.
  • Regular expression: the search is a JavaScript regular expression.

Regular expressions in 60 seconds

\d+ matches a number, \s+ any run of whitespace, ^ and $ the start and end of the text, . any character, and (…) captures a group you can reuse in the replacement as $1, $2. For example, find (\d{4})-(\d{2})-(\d{2}) and replace with $3/$2/$1 to turn 2026-11-10 into 10/11/2026. In the replacement, \n inserts a line break and \t a tab. Without the regex option, everything you type is literal, including $ and ..

Safe to try

The match count shows before you replace anything, and Undo restores the previous text. For bigger cleanups, the ready-made tools are faster: remove line breaks and extra spaces, remove tashkeel, or change case.

Frequently asked questions

Why does my regex show an error?
The pattern is not valid JavaScript regex syntax, for example an unclosed bracket. The message under the field says what is wrong. Turn off "Regular expression" to search for the characters literally.
Can I replace with a line break?
Yes, with "Regular expression" on: type \n in the replacement. For example, find ,\s* and replace with \n to put each comma-separated item on its own line.
Does whole-word search work with Arabic prefixes like ال and و?
Whole-word search treats الكتاب as a different word from كتاب, because they are written as one word. Turn whole words off to match the word inside longer words too.