Find and replace online means replacing an exact text match in pasted content, either the first occurrence or every non-overlapping occurrence. In this browser-based workflow, the search value and replacement are literal strings rather than regular expressions, so punctuation and dollar signs have no special pattern meaning.
The Find and Replace Text tool accepts source text up to one million characters, runs the operation locally in your browser, and reports both the number of replacements and the exact output preview. No source text is uploaded to Lizely.

The Basic Find-and-Replace Model
A find-and-replace operation has four connected parts: the source text, the literal string to find, the literal replacement, and the rules that control matching. The source remains available above the result, so you can adjust the settings and run another transformation without rebuilding the input.
| Part | What you provide | What the tool does |
|---|---|---|
| Source text | Pasted or typed text, up to 1,000,000 characters | Transforms it without trimming, reflowing, or normalizing its whitespace |
| Find value | A non-empty literal string | Locates exact occurrences, with optional case-insensitive comparison |
| Replacement value | Any literal string, including an empty value | Inserts it at selected matches; an empty value deletes them |
| Result | No additional input | Reports completed replacements and previews the transformed string |
The source and output are deliberately separate. This makes the preview safe to inspect before copying, while the unchanged source remains available for a different search, another replacement, or a repeated run with different options.
How Literal Matching Works
Literal matching follows the exact characters supplied in the find field. Periods, asterisks, brackets, parentheses, dollar signs, backslashes, and other punctuation match themselves without escaping. That behavior makes literal search practical for prose, code fragments, identifiers, delimiters, filenames, tags, and logs where a stray pattern character could otherwise change the result.
The replacement value is literal as well. Dollar patterns and backreferences have no special meaning, so the replacement is inserted exactly as entered. An empty find value is rejected because matching an empty string at every boundary is ambiguous. An empty replacement is valid and deletes each selected match. If the find value is longer than the remaining source text, the result is zero replacements and the original text remains unchanged.
How to Replace Text Step by Step
- Add the source text. Paste or type the content into the source field, which accepts up to 1,000,000 characters. Use copied plain text when working with application content; the tool does not open or edit a source file.
- Enter the find and replacement values. Type the exact string to locate in the find field and the text to insert in the replacement field. The find value cannot be empty, while the replacement can be empty for deletion. Do not escape punctuation because every character is treated literally.
- Choose the matching options. Select case-sensitive or case-insensitive comparison, then choose whether to replace the first match or every non-overlapping match.
- Run the replacement. The tool reports the number of completed replacements and displays the exact output. Editing any control clears the previous result, preventing stale output from being mistaken for the current settings.
- Check and copy the output. Confirm the reported count, inspect the full preview, and copy it through the browser if it is correct. Spaces, tabs, and line breaks remain visible, while a long line may wrap visually without adding newline characters.
Case Matching Has Defined Boundaries
Case-sensitive mode compares the find string and source text exactly, including capitalization. Case-insensitive mode creates lowercase comparison copies using an English locale before locating matches. It still takes unmatched characters from the original text, so unrelated casing, spacing, and punctuation are preserved rather than lowercased throughout the output.
Case-insensitive does not mean universal linguistic equivalence. The tool does not perform accent folding, Unicode normalization, fuzzy matching, stemming, locale-specific collation, or whole-word detection. It is therefore practical for ordinary English casing decisions, but it does not attempt to decide whether accented, normalized, inflected, or locale-specific variants should be considered equivalent.
First Match or Every Non-Overlapping Match
The scope control determines how far the operation continues after finding a literal match. This distinction matters whenever the same text appears more than once or inside a larger token.
| Scope | Matching behavior | Effect on the output |
|---|---|---|
| Replace first | Stops immediately after the earliest complete literal match | Appends the untouched remainder without replacing later matches |
| Replace all | Finds the next complete match from the current offset and advances by the full find length | Replaces every non-overlapping match and does not search newly inserted text again |
For example, searching for aa in aaaa and replacing it with X produces XX. The first match consumes the first pair of characters, so scanning resumes with the second pair. The inserted X is not searched again, and overlapping candidates are skipped.
Reading the Count and Output Preview
The replacement count reflects completed literal matches, not potential positions or every possible substring in the source. Zero is a valid result: it means no selected match was completed, and the preview returns the original text unchanged. The preview preserves whitespace, tabs, and line breaks unless they form part of an exact match. It does not trim, reflow, normalize line endings, sort lines, or modify the source textarea.
Visual wrapping is only a display feature. It does not create newline characters in the underlying result, so a line that appears wrapped in the preview can still be copied as one continuous line unless the original contained a line break. The generated preview has no internal undo stack, but the unchanged source stays available for another run. Match positions are not displayed because replacements can change later offsets; use Count Occurrences first when you need the original positions.
Practical Uses and Safe Boundaries
Literal replacement is well suited to controlled edits where the intended text is known exactly. Common uses include:
- Configuration tokens: Rename an exact identifier-like string in copied configuration text.
- Repeated phrases: Update every non-overlapping occurrence and confirm the result with the reported count.
- Deletion: Leave the replacement empty to remove a token or delimiter from selected matches.
- Tags and log entries: Change literal strings while keeping punctuation and inserted text free of pattern interpretation.
Review the exact preview whenever the search string may also occur inside a longer word or identifier. The tool deliberately searches for literal substrings rather than guessing semantic or whole-word boundaries.
Limits to Know Before You Start
The browser tool is a focused text transformer rather than a general-purpose document editor. Its relevant boundaries are:
- Input format: It works with pasted or typed text. It does not edit uploaded files, Word documents, PDFs, or multiple tabs, although text copied from an application can be pasted for processing.
- Matching syntax: It does not support regular expressions, capture groups, wildcards, whole words, or replacement templates.
- Result navigation: It does not show original match positions or provide an undo stack inside the generated preview.
- Advanced pattern work: Regex and other advanced modes require a separate interface with explicit syntax and safety documentation.
These limits do not prevent ordinary literal replacements. They define the boundary between a predictable browser text utility and pattern-based or application-specific editing systems.
Why the Result Is Repeatable
Processing is deterministic and network-free, so the same browser strings and options produce the same result. The tool does not store history or send analytics containing the source. Its local processing also means that matching, replacement, counting, and preview rendering happen without uploading the pasted text to Lizely.
At a technical level, the method locates the next literal match from the current offset, copies untouched original slices, inserts the literal replacement, advances by the full length of the completed match, and finally appends the remainder. JavaScript references for substring location and extraction illustrate the same basic model in String indexOf documentation and String slice documentation.
A reliable editing routine is to run the first-match option, inspect the count and preview, and then use the all-match option if the same change should be applied throughout. Because the source is unchanged, you can repeat the process without reconstructing the input.