Loading…
Find and replace text with literal, regex, and case-insensitive modes. Shows replacement count.
Find and Replace is loading — interactive editor will appear here. Use examples below to try instantly once loaded.
Press ? for keyboard shortcuts
Finds text in a document and replaces it — with literal (exact) matching by default, optional case-insensitive search, and optional regular expressions. Reports how many replacements were made.
Every text editor has find/replace, but pasting into an editor risks losing the original, and many CLI tools are platform-specific. A browser tool with literal/regex modes and a replacement count is the neutral answer.
This tool is part of the DevStackIO platform — a collection of free online developer tools from DevStackIO. Browse more free developer resources on DevStackIO.
Developers renaming identifiers, editors doing bulk style changes, data cleaners normalizing values, and anyone pasting multi-paragraph text.
Paste the text
Enter what to find and what to replace it with
Toggle regex and case sensitivity as needed
Copy the result; the replacement count shows in the header
find 'fox' replace 'cat' → 2 replacements in 2 sentencesregex \d+ → '#' replaces every number runliteral 'x+y' is matched exactly, not as a regexQ: Does the regex support groups? A: No capture groups in the replace string
plain replacement only.
Q: What happens on an invalid regex?
A: The input passes through unchanged and the count is 0.
Q: Unlimited text length?
A: Browser memory; multi-MB is fine.
Authoritative specifications, standards, and in-depth reading for Find and Replace.
2 replacements
Special characters are escaped unless Regex is on. Invalid regex returns the input unchanged.
Remove duplicate lines from text while keeping first-seen order. Case and trim options.
Sort lines alphabetically and remove duplicates. Use when cleaning lists; for comparing two texts use text-diff-visual. Input: text lines ≤10MB. Returns sorted unique lines. 100% client-side.
Visual side-by-side diff for two texts with char-level highlights. Use as default diff tool; for similarity score use string-comparison, for JSON use json-diff. Input: two texts ≤10MB. Returns visual diff. 100% client-side.
Reverse text by characters (grapheme-safe for emoji), words, or lines.
Count words, characters, and sentences. Get reading time and Flesch score as you type.
Preview rendered Markdown without editing. Use for quick read-only preview; for editing use markdown-editor, for HTML output copy use markdown-to-html. Input: Markdown ≤10MB. Returns rendered HTML preview. 100% client-side.
Generate URL slugs from titles with lowercase rules. Use as default slug tool; slugify-string is a noindex alias. Input: text ≤10MB. Returns slug string. 100% client-side.
Obfuscate strings with masking and reversible transforms. Use when hiding PII in demos; for hashing use hash-generator. Input: text ≤10MB. Returns obfuscated text. 100% client-side.