DevNet KitTHE EVERYDAY TOOLBENCH
Text & Productivity · Local-first

Find & Replace Online

Replace literal text or regular-expression matches with configurable flags.

Open Find & Replace

Free · No sign-up · Browser-based processing

What Find & Replace does

Apply a literal replacement to text or use the browser JavaScript regular-expression engine. Literal mode treats replacement text literally, including dollar signs. Regex mode supports capture substitutions such as $1 and uses the provided flags. The output is text and no script is evaluated.

Common uses

  • Rename repeated labels in logs
  • Clean exported text with regex captures

How to use Find & Replace

  1. Paste the text to edit.
  2. Enter find and replace strings in Options JSON; enable regex only when using a pattern.
  3. Run and inspect the result, especially capture groups and case sensitivity.

Privacy: Runs locally in your browser. Input is not uploaded to the DevNet Kit server.

Find & Replace example

Try the tool with this representative input:

Hello Ada. Hello Linus.

Options

{"find":"Hello","replace":"Welcome","regex":false,"caseSensitive":true}

Expected result

Welcome Ada. Welcome Linus.

Find & Replace FAQ

Are dollar signs special?

In literal mode they are ordinary text. Regex mode supports JavaScript replacement tokens such as $1 and $&.

Can a complex regex take a long time?

Regex replacements run in a separate worker and are stopped after two seconds. Input is limited to 1,000,000 characters. Simplify nested patterns if the operation times out.

Rename matching IDs with a regex capture-group replacement

Paste the source text and provide find, replace and regex fields in Options JSON. In regex mode, JavaScript replacement tokens such as $1 insert captured text into the replacement; flags control global or case-insensitive behavior.

Literal mode treats the replacement as plain text, including dollar signs. Regex work runs in a separate worker with a two-second timeout and a one-million-character input limit. Inspect the full output before applying the transformation to important source files.

Worked example

Input and settings:

id=17 id=204

Options:

{"find":"id=([0-9]+)","replace":"user_$1","regex":true,"flags":"g"}

Expected result or interpretation:

user_17 user_204

Questions about this workflow

Why is $1 copied literally instead of inserting the capture?

Capture substitutions apply only when regex is true and the pattern contains a capturing group. In literal mode, replacement text is intentionally inserted without interpreting dollar tokens.

How do I replace every regex match instead of just the first?

Include the g flag in Options JSON. Without it, a JavaScript regex replacement can stop after the first match.

Continue this workflow