How to find and replace text online
- Paste the text you want to edit into Your input.
- Enter the exact text in Find. A word, phrase, punctuation character or actual line break can be a search.
- Enter Replace with, or leave it empty to delete matching text.
- Choose Ignore letter case or Match whole words only if required.
- Select Replace matches. Read the match count and output before copying or downloading the result.
Every run starts from the original input. Changing an option clears the previous result; select Replace matches again to recalculate. The Find field cannot be empty because that would not identify a specific piece of text to replace.
How finding and replacing works
The search is literal, global and non-overlapping. All matching occurrences in the original input are replaced in one pass. It does not search newly inserted replacement text again, so replacing a with aa does not expand indefinitely.
For example, finding aa in aaa matches the first two characters once; the overlapping pair starting at the second character is not another match. Finding a period searches for the period itself. Regular-expression syntax such as .* has no special meaning.
Replacement text is literal too. A dollar sign, backslash or string such as $& is inserted as written, rather than interpreted as a captured group or matched-text reference. Use an actual newline in the multiline Find or Replace with field when you need a line break; typing backslash-n searches for or inserts those two characters.
Case sensitivity and whole-word matching
Matching distinguishes letter case by default: finding red will not change Red. Ignore letter case enables JavaScript’s Unicode-aware case-insensitive matching. It does not offer a language selector or normalize every visually similar spelling.
Match whole words only requires that the characters immediately outside the match are not letters, combining marks, numbers or underscores. Thus a whole-word search for cat matches cat! but not catalog, cat2 or cat_name.
This is a boundary rule, not a dictionary or grammar check. Punctuation such as a hyphen can create a boundary. Leave whole-word mode off when replacing separators or ordinary spaces: adjacent letters would otherwise prevent many of those matches.
Find and replace examples
Input
red apple, red pear, red cherry
Result
Find: red Replace with: green Result: green apple, green pear, green cherry Matches replaced: 3
A repeated label can be corrected consistently in one pass. Review a short search carefully: without whole-word matching, it can also appear inside a longer word. Use Text Diff to compare the original and edited copies if the change spans a large passage.
Remove spaces from text
To delete every ordinary space, put one space in Find and leave Replace with empty. Keep Match whole words only off. For A B C, this produces ABC with two replacements. Because the search field contains an invisible character, check the match count to confirm the intended search ran.
This does not remove tabs, non-breaking spaces or newlines unless you search for those actual characters in a separate pass. To collapse repeated spaces while retaining word separation, use Text Cleaner’s whitespace options. Removing every separator from ordinary prose usually joins words together, so use literal deletion only when that is intended.
Convert a list into comma-separated text
A comma-separated list places a comma between successive entries, such as apple, pear, banana. For a simple newline-separated list, the multiline Find and Replace controls can change those line breaks into commas without requiring another tool.
- Paste one item per line and remove unwanted blank entries or a final trailing newline from the input.
- In Find, enter one actual line break by pressing Enter in the empty field.
- In Replace with, enter a comma followed by a space, or just a comma if that is the required separator.
- Leave whole-word matching off, select Replace matches and inspect the joined result.
Input
apple pear banana
Result
apple, pear, banana
This is literal separator replacement. A trailing newline becomes a trailing separator, and repeated blank lines become repeated separators. No blank items are filtered automatically.
A simple list is not a CSV serializer
If an item contains a comma, quote or embedded newline, replacing separators alone does not produce correctly quoted CSV. The tool does not add quotes or escape quotes inside values. For real tabular files, use the CSV delimiter converter, which parses fields and handles quoting. Do not convert a multiline CSV by globally replacing its newlines.
Text to list and list to text with a known separator
To turn a simple apple;pear;banana string into one item per line, find ; and enter an actual line break in Replace with. If the source uses a semicolon followed by a space, find that exact two-character separator to avoid leaving a leading space on the next entry.
To join a list with pipes or another delimiter, find its actual newline and replace it with the required text, such as | . The same controls can join lines with a space. Text Cleaner is more convenient when you need to distinguish hard wraps from paragraph breaks.
These workflows assume the delimiter does not also appear inside an item. There is no automatic delimiter detection, quoted-field handling, bullet generation or sentence-to-list analysis. After splitting a simple list, you can remove duplicate lines or sort its entries alphabetically.
Practical uses and replacement limits
Use literal replacement to update a repeated product label in a draft, remove a known prefix, swap a simple delimiter or correct a specific repeated typo. A search for one name cannot determine whether every occurrence refers to the same person, so review matches in context.
The main input accepts up to 1 MiB; the Find and Replace with controls each allow up to 2,000 characters. Replacement output is bounded at 20 MiB. A very large expansion is rejected instead of generating an unbounded result. Copy and Download save only the transformed output, and processing stays in the browser.
An empty output can be a correct result if every input character matched a deletion. Zero matches can also be valid; check case, punctuation, invisible spaces and the whole-word setting before assuming the tool missed an occurrence.
Processing and privacy
Find and Replace Text performs literal matching in the page; search terms and replacement text stay on the device. Input stays in browser memory until you reset or leave the page. Copy and download run only when you choose them. No tool input is sent to a processing service. Website pages and scripts still make ordinary hosting requests; the privacy policy separates those from tool processing.
Frequently asked questions
Does this support regex?
No. Search and replacement are literal. Characters such as dots, asterisks and dollar signs keep their literal meanings.
How do I replace a line break?
Use an actual newline in the multiline Find field, and enter the desired separator in Replace with. Leave whole-word matching off. The two typed characters backslash and n are not interpreted as a newline.
Can I make a comma-separated list with quoted values?
Literal replacement does not quote or escape fields. It is suitable only for simple entries whose contents do not conflict with the separator. Use a record-aware CSV tool for structured data.
How this tool was checked
Find and Replace Text was checked with literal metacharacters, replacement text containing dollar signs and backslashes, whole-word boundaries, case-insensitive matching and real line breaks. See the testing method or report a failure.