Find and Replace Text
Find and replace in text, with regex and capture groups.
Runs in your browserFree, no sign-upOpens any text file
Loading tool…
How to use it
- Paste text or open a file.
- Type what to find and the replacement.
- Copy or download the result.
About this tool
Replace plain text or use a regular expression with $1-style capture groups, case matching and whole-word mode. \n in the replacement inserts a new line. Results update as you type.
Your input is processed on your device. Nothing is sent to a server or stored.
Questions
How do capture groups work?
With Regex on, (\d+) captures digits, and $1 in the replacement puts them back.
Text
All textMore tools like this
TextWord & Character CounterCount words, characters, sentences and reading time.Opens filesOpen →TextCase ConvertercamelCase, snake_case, kebab-case, Title Case and more.Opens filesOpen →TextDiff CheckerCompare two texts or files and highlight the changes.Opens filesOpen →TextRegex TesterTest JavaScript regular expressions with live highlighting.Opens filesOpen →TextSort & Dedupe LinesSort, remove duplicates, trim, reverse and shuffle lines.Opens filesOpen →TextURL Slug GeneratorTurn titles into clean, SEO-friendly URL slugs.Opens filesOpen →TextHTML to Markdown ConverterConvert HTML into clean Markdown.Opens filesOpen →TextMarkdown to HTML ConverterConvert Markdown into HTML you can paste anywhere.Opens filesOpen →