Find and Replace Text
Replace text across a whole document with plain matching or full regular expressions.
To find and replace text, paste your document above, enter what to search for and what to replace it with. Enable regular expressions for pattern matching with capture groups referenced as $1 and $2, or leave it off for literal matching where special characters are escaped automatically.
Runs in your browser- Privacy
- Runs entirely in your browser — nothing is uploaded
- Cost
- Free, unlimited, no sign-up
Frequently asked questions
When should I use regex rather than plain text?
What do $1 and $2 mean in the replacement?
How to use the find and replace text
- 1Enter or paste your text.
- 2Enter or paste your find.
- 3Enter or paste your replace with.
- 4Turn "Regular expression" on or off as needed.
- 5Turn "Case sensitive" on or off as needed.
- 6The result appears immediately — copy or download it.
Embed this tool
Put the working find and replace text on your own site. It runs in your visitors' browsers exactly as it does here — free, no account, nothing uploaded.
Share this tool
Related tools
Email, URL & Number ExtractorPull emails, URLs, IP addresses, phone numbers or hashtags out of any text.String Escaper & UnescaperEscape strings for JSON, JavaScript, CSV, SQL, XML or shell — and unescape them again.Add Line NumbersPrefix every line with a sequential number, with a custom start, separator and zero padding.ASCII Art Text GeneratorTurn words into large ASCII banner text for terminals, READMEs and code comments.Case ConverterConvert text to UPPERCASE, lowercase, Title Case, camelCase, snake_case, kebab-case and more.Columns to Lines ConverterSwitch between a delimited single line and one item per line, in either direction.
Last updated
More text tools