WeblixTools
100% In-Browser • Free, No Sign-Up

Find and Replace Text

Swap a word everywhere in a long document, or rewrite dates, phone numbers and names with a regular expression. Matches light up as you type, and the result is ready to copy.

Find and replace

JavaScript syntax with the u and m flags: ^ and $ match at the start and end of each line.

Use $1, $2… for groups, $& for the whole match, \n for a new line and \t for a tab.

3 matches

A badly built pattern such as (a+)+$ can take very long on some texts and freeze this tab until it finishes. Reload the page if that happens.

Matches in your text

Order 1042 shipped on 2026-03-14 to Lisbon. Order 1043 shipped on 2026-03-15 to Porto. Order 1047 is waiting for stock, expected 2026-03-21. Questions? Write to support@shop.example and quote the order number.

See it before you copy

Every match is marked in the preview, with a live count.

Groups and $1 codes

Rearrange captured text with $1, $& and named groups.

Private by design

Your text never leaves the browser tab you're working in.

From a simple swap to regex rewrites

For everyday edits use Plain text mode. Type the word or phrase to find and what to put in its place. Characters like dots, brackets and dollar signs mean nothing special here, so searching for "$9.99" finds exactly that, and the replacement is inserted exactly as typed.

Switch to Regular expression when the thing you're looking for follows a pattern rather than a fixed spelling. The example that loads with the page turns ISO dates like 2026-03-14 into 14/03/2026: the pattern (\d{4})-(\d{2})-(\d{2}) captures year, month and day, and the replacement $3/$2/$1 puts them back in a different order.

Every match is marked in the preview so you can check you're catching the right things before you copy anything. The counter shows how many matches there are in total, and invalid patterns show the browser's error message straight away instead of failing quietly.

How to use it

  1. 1Paste your text or open a file.
  2. 2Choose Plain text or Regular expression and type what to find.
  3. 3Set Match case, Whole word and Replace all as needed.
  4. 4Check the highlighted matches, then copy or download the result.

Replacement codes in regex mode

In Plain text mode none of these codes apply: $1 is inserted as the two characters $ and 1.

  • $1, $2 and so on insert what the first, second (and further) group in brackets captured.
  • $& inserts the whole match. Searching for \d+ and replacing with [$&] wraps every number in square brackets.
  • $<name> inserts a named group, written (?<name>...) in the pattern.
  • $$ gives a literal dollar sign.
  • \n starts a new line and \t inserts a tab, so you can split one line into several.

How matching works

Patterns use JavaScript regular expression syntax with two flags always on. The m flag makes ^ and $ match at the start and end of every line, so ^- finds dashes that begin a line. The u flag makes the search Unicode-aware: emoji count as one character and you can use classes like \p{L} for any letter in any alphabet.

Whole word only matches when there's no letter, digit or underscore directly before or after the match. Searching for cat with Whole word on finds "cat" and "Cat." but skips "category". It works for accented and non-Latin letters too, where the classic \b shortcut doesn't. With Replace all off, every match is still counted and marked, but only the first one is replaced.

Patterns worth keeping

Try a new pattern on a few lines first. When the highlights look right, paste the whole document and copy the result.

  • [ \t]+$ with an empty replacement removes spaces and tabs at the end of every line.
  • ^ with the replacement "> " puts "> " at the start of each line, the way quoted email text looks.
  • \b(\w+) \1\b finds a word typed twice in a row, like "the the". Replace with $1 to keep one.
  • [^\x00-\x7F] marks every character outside basic ASCII: curly quotes, accented letters and emoji. Useful before pasting into a system that only accepts plain characters.
  • (\d{3})(\d{3})(\d{4}) with ($1) $2-$3 formats 5551234567 as (555) 123-4567.

Big texts and slow patterns

The search runs in the background while you type, so a long document doesn't make the text box lag. The preview marks the first 5,000 matches; beyond that they're still counted and replaced, just not coloured.

One honest warning. Some patterns, typically nested repeats such as (a+)+$, can take an extremely long time on certain inputs. Browsers run regular expressions in one go, so the tab can freeze until the search finishes. If that happens, reload the page and simplify the pattern.

Related tools

Reviews

What Our Users Say

Real feedback from people using WeblixTools, checked by our team before it appears.

5.0 out of 5 · 1 review

very nice

good ho gye g maza hi a gye
October 2026
See all reviews

Frequently Asked Questions

How do I use capture groups in the replacement?

Switch to Regular expression, put brackets around the parts you want to reuse, and refer to them as $1, $2 and so on. Finding (\w+), (\w+) and replacing with $2 $1 turns "Smith, John" into "John Smith".

Why is my dollar sign or dot not working?

In Plain text mode they work as ordinary characters, which is usually what you want. In regex mode a dot matches any character and $ means end of line, so write \. and \$ to search for them literally.

Can I search for line breaks?

Yes, in regex mode. \n matches a line break, so finding \n{3,} and replacing with \n\n squeezes several blank lines into one.

Is the search case-sensitive?

Not unless you tick Match case. By default "apple" finds Apple, APPLE and apple.

What happens with very large texts?

They work. Matching runs in the background so typing stays smooth, and the preview colours the first 5,000 matches. The count and the replacement still cover the whole text.

Can a pattern crash the page?

A badly built pattern such as (a+)+$ can freeze the tab on some texts, because the browser keeps trying combinations until it's done. Reload the page if that happens. Normal patterns finish almost instantly.

Can I undo a replacement?

There's nothing to undo. Your text in the input box is never changed; the result sits in its own box below the preview. Edit the Find or Replace boxes and the result follows, and only what you copy or download leaves the page.

Is my text uploaded?

No. Searching and replacing happens in your browser, and nothing is stored or sent anywhere.

See all FAQs →