Free · No signup · Runs locally

Find and replace with regular expressions.

Test JavaScript regular expressions against your text, replace matches, and extract capture groups without uploading anything.

  • Processed in your browser
  • No uploads
  • No account or email
  • Free to use
Developer Tools

Regex find and replace

Paste text, enter a pattern and replacement, then choose flags. Output stays separate from your input.

Use JavaScript regular expression syntax. The g flag replaces all matches; remove it to replace only the first. Replacement values can use $1, $2, and $&.

Runs in your browser. Nothing is uploaded.

Why use this tool

Regex testing in the browser

Useful for cleaning data, rewriting logs, and pulling values out of text.

Replace all or first

Use the g flag to replace every match, or omit it for the first match.

Capture group references

Reorder or reuse captured text with $1, $2, $&, and named groups.

Extract matches

List every match and its capture groups without changing the input.

Standard flags

Supports g, i, m, s, u, and y flags.

Use cases

Regex tasks in plain text

A regular expression is useful when a simple search string cannot describe the pattern you need.

Reformat dates

Turn YYYY-MM-DD values into DD/MM/YYYY without editing each line by hand.

Redact log data

Replace email addresses, tokens, or long identifiers before sharing a log excerpt.

Extract identifiers

List every order number or ticket ID that matches a pattern, with capture groups.

Example

Reordering a date

The pattern captures three groups and the replacement puts them in a new order.

Pattern and input
Pattern: (\d{4})-(\d{2})-(\d{2})
Input: 2026-11-10
Replacement
Replacement: $3/$2/$1
Output: 10/11/2026
How it works

Regex Replace: three quick steps

No upload step, no account, and no detour through a server.

  1. Paste the text

    Add the content you want to search.

  2. Write the pattern

    Enter a JavaScript regular expression and any flags.

  3. Replace or extract

    Review the output, then copy or download it.

Regex Find & Replace runs on your device

This tool runs entirely in your browser. Nothing you enter is sent to a server, and there is no upload step. Your input stays in this tab unless you explicitly download it.

No uploads. No account. No tracking scripts.

  • Runs in your browser
  • No uploads
  • No account or email
  • No tracking scripts
  • No usage limits
  • Open standards
FAQ

Regex Replace questions, answered

Is my text uploaded?

No. Matching and replacement happen in your browser. Nothing is sent to a server.

What regex syntax is supported?

The browser’s JavaScript regular expression engine. Lookbehind and named groups work in modern browsers, but availability can vary in older ones.

Why did only one match change?

The g flag is required to replace every match. Add g to the flags field, or leave the flags empty to replace only the first match.

Can I see capture groups?

Yes. Use Extract matches to list every match and its groups. Replacement strings can reference groups with $1, $2, or $<name>.

Is there an input limit?

The tool keeps inputs under 1 MB. Complex patterns can still be slow, so keep an eye on catastrophic backtracking when using nested quantifiers.