# Find and Replace Online - Bulk Text Replace with Multiple Rules & Regex

> Free online find and replace: several rules applied in order, plain text or regex, case and whole-word options, a live match count and $1 capture groups.

- URL: https://qilingtools.com/en/text-replace
- Category: Productivity (https://qilingtools.com/en/office)
- Tags: [Text](https://qilingtools.com/en/tags/text), [Productivity](https://qilingtools.com/en/tags/office)
- Last updated: 2026-10-26
- Price: Free, no sign-up
- Privacy: Runs locally in the browser; files are never uploaded

Need to replace several words in a text at once? Doing find/replace one by one in an editor is slow. Here you can add as many rules as you like; they run top to bottom, each showing how many matches it found, and the result updates instantly. Choose plain text or regular expressions, case sensitivity and whole-word matching (which also works for Chinese). In replacements, \n is a line break and \t a tab, and in regex mode $1, $2 reference capture groups — perfect for reformatting dates, adding prefixes/suffixes, or joining and splitting lines. Everything runs in your browser.

## How to use

1. Paste the text into the input box
2. Enter what to find and what to replace it with; click Add rule for more
3. Pick regex, case-sensitive or whole-word options if needed, then copy the result

## Features

- Multiple rules applied in order, each can be toggled
- Live match count per rule, with invalid-regex warnings
- Plain-text and regular-expression modes
- Case-sensitive and whole-word matching (Unicode-aware)
- \n and \t escapes in replacements
- $1, $& and $<name> group references in regex mode
- Feed the result back as input; nothing is uploaded

## FAQ

### How do I replace line breaks with commas (or the other way round)?

Switch to Regular expression mode, find \n and replace with , to join all lines into one. To split a comma-separated list into lines, find , and replace with \n. The \n escape in replacements works in both modes.

### How do I reuse the matched text in a regex replacement?

Use $1, $2 for the first and second capture groups and $& for the whole match. For example, find (\d{4})-(\d{2})-(\d{2}) and replace with $2/$3/$1 to turn 2025-09-25 into 09/25/2025. In plain-text mode $ is literal.

### In what order are multiple rules applied?

Top to bottom; each rule works on the output of the previous ones. To swap A and B, replace A with a temporary placeholder, then B with A, then the placeholder with B.

### Is my text uploaded?

No. All processing runs locally in your browser with no network upload, and nothing is kept after you close the page. The tool is free and needs no account.

## Related tools

- [QiLing Mind](https://qilingtools.com/en/mindmap): QiLing Mind is a free online mind map editor: add nodes with Tab/Enter, drag to restructure, import and export XMind and Markdown, export PNG/SVG/PDF.
- [Password Generator](https://qilingtools.com/en/password): Free online random password generator: choose length, character sets and look-alike exclusions, generate several at once with a strength meter, all locally.
- [QR Code Generator](https://qilingtools.com/en/qrcode): Free online QR code generator: turn URLs, text, Wi-Fi or contact cards into QR codes with custom size, colour and error correction. Crisp PNG or vector SVG.
- [Word Counter](https://qilingtools.com/en/word-count): Free online word counter: live counts of characters with and without spaces, words, CJK characters, lines, paragraphs, sentences, bytes and reading time.
- [Case Converter](https://qilingtools.com/en/case-convert): Free online case and naming converter: get UPPERCASE, lowercase, Title Case, camelCase, PascalCase, snake_case, kebab-case and CONSTANT_CASE at once.
- [Lorem Ipsum Generator](https://qilingtools.com/en/lorem): Free online Lorem Ipsum generator: classic Latin placeholder text or Chinese filler by paragraph, sentence or word, with one-click copy for mockups.
- [Sort & Dedupe Text](https://qilingtools.com/en/text-sort): Free online text tool: sort lines alphabetically or by length, remove duplicate and empty lines, trim whitespace, optionally ignoring case. Runs locally.
- [Sign & Stamp PDF](https://qilingtools.com/en/pdf/sign): Free online PDF signing tool: drop in a handwritten signature or company stamp, drag it into place on a page preview, adjust size and opacity, then export.
