Find and replace
Find and replace text online with match-case, whole-word, and regex modes — live match count and highlighted preview.
Everything runs in your browser — your text is never uploaded.
About the Find and replace
Find and replace lets you search any block of text and swap matches in bulk, right in your browser. Switch on match-case or whole-word matching for precise edits, or enable regex mode for powerful pattern replacements with capture groups ($1, $2). A live match counter and a highlighted preview show exactly what will change before you copy the result — and nothing you paste is ever uploaded.
Find and replace features
- 01
Full regex with capture groups
Turn on regex mode to match patterns and reference captured groups in the replacement using $1, $2, and so on — the same syntax you'd use in a code editor.
- 02
Match case and whole word
Restrict replacements to exact-case matches or whole words only, so "cat" doesn't replace the "cat" inside "category."
- 03
Live count and highlighted preview
See how many matches were found and a highlighted preview of every match as you type, so a bulk replace never surprises you.
Find and replace FAQ
- How do I replace all occurrences of a word?
- Type the word in the Find box and its replacement in the Replace box. Every occurrence is replaced instantly and the count shows how many were changed.
- Does it support regular expressions?
- Yes. Enable "Regex" to use full JavaScript regular expressions, including character classes, anchors, and capture groups referenced as $1 in the replacement field.
- What does whole-word matching do?
- It only replaces the search term when it stands alone as a word. With it on, replacing "art" leaves "start" and "party" untouched.
- Why does my regex show an error?
- The pattern couldn't be compiled — usually an unclosed bracket or group. Fix the syntax and the error clears; until then the text is left unchanged.
- Is my text uploaded?
- No. Find and replace runs entirely in your browser, so your text and patterns never leave your device.
Related tools
Utility →- Live
Remove line breaks
Strip line breaks and hard returns from text — join everything into one block or keep paragraph breaks and replace newlines with spaces.
UtilityFreeRuns locallyOpen - Live
Remove extra spaces
Collapse multiple spaces and tabs into one, trim each line, and optionally remove all spaces or delete empty lines.
UtilityFreeRuns locallyOpen - Live
Remove duplicate lines
Delete repeated lines from a list — case-insensitive and trim options, keep the first or last occurrence, and see how many were removed.
UtilityFreeRuns locallyOpen
Explore other tools
All tools →- Live
Unlock PDF
Remove the password from a PDF you can already open in your browser. Enter the password once and download an unprotected copy.
PDFFreeRuns locallyOpen - Live
Schengen Visa Photo Maker
Make a 35×45 mm Schengen visa photo online — correct size, plain background, free and private in your browser.
ImageFreeRuns locallyOpen - Live
MP4 to MP3
Extract the audio track from an MP4 video as an MP3 in your browser — files never leave your device.
VideoFreeRuns locallyOpen - Live
Convert audio
Convert MP3, WAV, OGG and M4A files between formats.
AudioFreeRuns locallyOpen - Live
JSON formatter
Pretty-print, minify and validate JSON.
DocumentFreeRuns locallyOpen