A find and replace online example replaces exact literal strings in pasted text, with controls for case sensitivity and whether to replace the first match or every non-overlapping match.
The Find and Replace Text tool is designed for predictable text-to-text substitutions. Paste up to 1,000,000 characters, enter the string to find and its literal replacement, then check both the replacement count and exact preview before copying the result. Processing happens locally in your browser, so the source text is not uploaded to Lizely.

A Literal Find and Replace Online Example
Suppose a copied configuration contains the same old hostname twice:
Original input, line 1: api_url = "https://old.example.com/v1"
Original input, line 2: fallback = "https://old.example.com/v1"
Use these settings:
- Find value: old.example.com
- Replacement value: new.example.com
- Case sensitivity: Case-sensitive
- Replacement scope: Replace all
The transformed output is:
Output, line 1: api_url = "https://new.example.com/v1"
Output, line 2: fallback = "https://new.example.com/v1"
The reported replacement count is 2 because two complete literal matches were changed. The surrounding quotation marks, equals signs, spaces, and line structure remain intact. Only the selected hostname text is replaced; the other URL components remain unchanged.
If only the earliest occurrence should change, select Replace first. The tool stops after that match and appends the untouched remainder, leaving the second hostname unchanged.
Run the Replacement
- Paste or type the source text. Add the material you want to transform, up to the 1,000,000-character input limit. Keep the original available elsewhere if you need to compare it after the run. The tool does not trim the input, reflow lines, normalize line endings, sort lines, or modify the source textarea.
- Enter the literal find and replacement values. The find value cannot be empty. The replacement may be empty when you want to delete each selected match. Both values are treated literally: periods, asterisks, dollar signs, backslashes, brackets, parentheses, and other punctuation match themselves rather than acting as pattern syntax. Then choose case-sensitive or case-insensitive comparison and select Replace first or Replace all.
- Run the replacement and verify the output. Check the reported count against the number of complete matches you expected, then read the exact preview for unintended changes. Copy the preview through your browser when it is ready. Editing any control clears the previous result so that output from old settings cannot be mistaken for the current result.
Choose Match Scope and Case Behavior
The two setting groups answer separate questions: whether the strings count as equivalent and how much of the source should be changed.
| Setting | Defined behavior | Best fit |
|---|---|---|
| Case-sensitive | Compares the find and source strings exactly. | Renaming an exact token or changing text whose capitalization must remain controlled. |
| Case-insensitive | Uses English-locale lowercase copies for matching while preserving unmatched characters from the original text. | Updating repeated phrases that appear with different capitalization. |
| Replace first | Stops after the earliest complete match and appends the untouched remainder. | Making a single controlled change at the first occurrence. |
| Replace all | Replaces every completed, non-overlapping literal match and does not search the inserted replacement text again. | Renaming repeated tokens or updating the same phrase throughout pasted text. |
Replace all consumes each complete match before scanning continues, which prevents overlapping candidates from being replaced twice. It also prevents a loop when the replacement contains the find value.
Case-insensitive matching provides practical English behavior, not universal linguistic equivalence. It does not perform accent folding, Unicode normalization, fuzzy matching, stemming, locale-specific collation, or whole-word detection. Unmatched portions of the source still come from the original text, so surrounding capitalization and whitespace are preserved.
Understand Literal Matching
Literal matching means the find value is compared as the exact sequence of characters you entered. A period represents a period, not an arbitrary character. Likewise, an asterisk, square bracket, dollar sign, backslash, or parenthesis has no special pattern meaning and does not need regex-style escaping.
The replacement value is literal for the same reason. Strings such as dollar patterns or backreferences are inserted as written; they do not refer to captured groups. This behavior is useful for prose, copied code fragments, identifiers, delimiters, filenames represented as text, and logs because the operation does not reinterpret familiar-looking symbols.
The tool does not support regular expressions, capture groups, wildcards, whole-word matching, or replacement templates. It also does not perform whole-word detection as a substitute for those modes. If any of those advanced behaviors is required, use a separate interface that provides explicit syntax and safety documentation.
Whitespace is equally literal. Source spaces, tabs, and line breaks remain unchanged unless they are part of the exact match. A visual wrap in the preview may make a long line appear to continue onto another display row, but it does not add newline characters to the underlying output.
Verify the Count and Exact Preview
The replacement count is based on completed literal matches. A count of zero is valid and returns the original text unchanged. This can occur when the requested text is absent, differs in case under case-sensitive comparison, or is longer than the remaining source text.
Read the preview as the final transformed string rather than relying on the count alone. The count confirms how many matches changed, while the preview reveals where each replacement occurred and whether the find value accidentally included a space, tab, punctuation mark, or line break. Both checks matter because an exact substring can occur in more than one intended context.
There is no undo stack inside the generated preview, but the unchanged source remains available above for another run. If the first attempt is not right, adjust the settings and run it again. To locate matches in the original text before modifying it, use Count Occurrences, since replacement can change later character offsets and this tool does not display original match positions.
Keep Processing Local and Repeatable
Matching, replacement, counting, and preview rendering all happen locally in the browser. The source is not uploaded to Lizely, the tool does not store replacement history, and it does not send analytics containing the source. The operation is also network-free and deterministic: the same browser strings and options produce the same result.
Local processing does not make every type of editing possible. The source must still be text that you paste into the tool. The tool does not open or modify uploaded files, Word documents, PDFs, or multiple tabs. Use the preview as a new copy of the transformed text rather than expecting it to edit those files in place.
Know the Tool Boundaries
The 1,000,000-character bound applies to the pasted source, while the output preview and replacement count are generated from that bounded input. An empty find value is rejected because matching an empty string at every boundary would be ambiguous. An empty replacement is accepted and acts as a literal deletion.
The tool preserves the source text’s whitespace and line structure instead of cleaning or formatting it. It will not turn line breaks into visible escape sequences, such as literal backslash-n characters. For that newline-syntax task, use a dedicated Line Break Converter. For a prefix or suffix on each line, use Add Prefix and Suffix instead of attempting to simulate line-level affixes through a global replacement.
Apply the Workflow to Common Text Jobs
The same literal workflow suits several common editing tasks:
- Rename a copied configuration token: replace its complete identifier while leaving surrounding operators and delimiters untouched.
- Update repeated prose: replace every exact phrase occurrence, then verify the count and preview.
- Remove a repeated delimiter: leave the replacement empty and select Replace all.
- Change literal tags: enter the opening and closing tag as plain text without regex syntax.
- Make a case-insensitive substitution: enable case-insensitive matching when English capitalization differences should not block the match.
For these jobs, the most reliable sequence is the same: paste the source, define exact literal values, choose the comparison and scope, run the operation, and inspect the count and preview. The tool is best suited to controlled substitutions in pasted text, not direct editing of files or advanced pattern-based transformations.
Related reading: Bulk Convert Literal \n Text to Real Newlines.
Related reading: Character Counter Example: See Every Count Explained.