Skip to content
everylittletool

Find and Replace

Replace every match in a block of text, with plain text or regex.

Runs in your browser — nothing is uploaded

4 replacements made

How to use Find and Replace

  1. 1

    Paste your text into the Text box.

  2. 2

    Type what to look for in Find and what to put instead in Replace with; leave Replace with empty to delete the matches.

  3. 3

    Tick Case-sensitive, Whole words only or Use regular expression as needed, and check the count of replacements.

  4. 4

    Select Copy result, or Apply to text to make further replacements on the new version.

About this tool

By default the search is plain text and ignores case, so finding “office” also matches “Office” and “OFFICE”. Every match is replaced at once and the counter shows how many there were. Tick Case-sensitive to match capitals exactly, and Whole words only so that “cat” no longer matches inside “category”.

Tick Use regular expression for pattern-based replacements written in JavaScript regex syntax. In the replacement, $1, $2 and so on insert captured groups, $& inserts the whole match and $<name> inserts a named group. For example, find (\w+)@(\w+)\.com and replace with $1 at $2 to rewrite email addresses. In regex mode ^ and $ match the start and end of each line. If the pattern is invalid, the tool says so and leaves your text unchanged.

In plain-text mode characters such as . * ? and $ have no special meaning, so you can safely replace prices or punctuation. All processing happens in your browser, so you can use it on private documents.

Questions people ask

How do I delete a word everywhere in a text?

Type the word in Find and leave Replace with empty. Tick Whole words only so it is not removed from inside longer words.

Can I replace line breaks?

Yes. Tick Use regular expression and search for \n, then type the replacement, such as a comma and a space.

What regex syntax is supported?

JavaScript regular expressions, the same syntax used in browsers and Node.js, including lookaheads, lookbehinds and named groups.

Is the search case-sensitive?

Not by default. Tick Case-sensitive to match upper and lower case exactly.