Find and replace
Replace literal text once or everywhere, with optional case-insensitive matching and a downloadable result.
How it works & useful details
How to use this tool
Enter the source text and a nonempty search value. Leave the replacement empty to delete matches, or disable replace all to change only the first occurrence.
How the result is calculated
Search and replacement are literal: dots, brackets, backslashes, and dollar signs have no special syntax. Matches do not overlap. Optional case-insensitive matching follows JavaScript Unicode case folding, not locale-specific rules. Source line endings are preserved; pasted multiline search text must use matching line endings.
Up to 500,000 UTF-16 code units per input. Text stays on your device.
Find and replacement values are each limited to 10,000 UTF-16 code units; the result is limited to 2,000,000.
About this tool
Find and replace swaps literal text once or everywhere, with optional case-insensitive matching. It is the tool for a precise text edit when a regular expression would be overkill.
Because matching is literal, characters like dots and brackets are treated as ordinary text rather than pattern syntax. The result is previewed locally and can be downloaded.
How to use it
- Paste the text to edit.
- Enter the text to find and its replacement.
- Choose whether to replace the first match or every match, and whether matching ignores case.
- Review the result and copy or download it.
Worked example
Replacing $ with "EUR " in
Price: $5.00 (was $7.00). Price valid until Friday.gives "Price: EUR 5.00 (was EUR 7.00). Price valid until Friday." and reports 2 replacements. Because the search is literal, the dollar sign needs no escaping. In a regular-expression tool, $ means "end of line" and would match something else entirely.
Literal vs. pattern replacement
Literal search is the safer default for everyday edits: renaming a product in a document, changing a domain in a list of links, or removing a repeated phrase. Characters like . * ? ( ) [ ] \ and $ have no special meaning, so what you type is exactly what is matched.
Use the regex replace tester when the text you want to change varies. Examples are dates in several formats, any number followed by "px", or swapping "Last, First" to "First Last" using capture groups. Leaving the replacement empty deletes every match. Turning off "replace all" changes only the first occurrence, which is handy for fixing a single heading.
Frequently asked questions
Can I use regular expressions here?
No. This tool is deliberately literal. Use the regex replace tester when you need patterns and capture groups.
Does case-insensitive mode change the replacement casing?
No. The replacement is inserted exactly as you typed it; only the matching is case-insensitive.
What is the limit?
Up to 500,000 characters of text.
Can I search across line breaks?
Yes. Paste a multiline search value. The line endings in the search text must match those in the source: Windows text uses CRLF, while most other text uses LF.
