Find & Replace (with Special Characters)

Utilities Client-side replace find text newline tab carriage-return special-characters regex

This tool runs entirely client-side, in your browser: your data is never sent anywhere.

What it does

Replaces every occurrence of a character (or sequence of characters) in a text with another one — entirely in your browser. Unlike a plain "find and replace" box, this tool understands special/whitespace characters that are otherwise impossible to type or paste directly, such as:

You can also enable regular expression mode for more advanced pattern-based replacements.

Try it

How it works

  1. Your text and "find"/"replace" values never leave your browser — all processing happens locally in JavaScript.
  2. Find type controls how the "Find" field is interpreted:
  1. Replace type works the same way for the replacement value (special sequence or literal text — regex isn't needed here since you're not matching, just substituting).
  2. If "Replace all occurrences" is checked, every match is replaced (equivalent to a global regex); otherwise only the first match is replaced.
  3. The result is displayed in the box below, exactly as produced — including any newlines/tabs it now contains (they'll render as actual line breaks/indentation since the box preserves whitespace).

Supported special sequences

SequenceMeaning
\nLine feed (newline)
\rCarriage return
\tTab
\0Null character
\\A literal backslash
\uXXXXUnicode character by 4-hex-digit code point (e.g. \u00A0)
\xXXCharacter by 2-hex-digit code point (e.g. \x09 = tab)

Common examples