Find and Replace Text
Search for a value and replace it throughout a block of text. You can match a plain string (the default) or a regular expression. Enter the text, the search value or pattern, and the replacement.
This tool runs in your web browser: your files and text are processed on your device and are not uploaded to TidyKit servers. Free, no sign-up.
How to replace
1. Paste the text. 2. Choose text mode or regexp mode. 3. Enter what to find and what to put in its place. 4. Copy the result.
Replacing `colour` with `color` in a British draft is a typical plain-text job. A regex such as `\d+` can stand in for any run of digits.
Privacy and care with regex
The text never leaves this tab. An over-broad regular expression can change more than you intended – try it on a short sample first. There is no “preview only” step, so keep a copy of the original.
Frequently asked questions
Is this case-sensitive?
Plain text matches as typed. In regex mode you can use flags or character classes if you need a case-insensitive match, depending on how the pattern is applied – test with a sample.
Is my text uploaded?
No.
Can I replace several different words at once?
One search and one replacement per run. Run the result through the tool again for a second pair.
What if the search value is empty?
Nothing useful is replaced. Enter a string or a pattern to find.
More Text Tools
- Base64 Encoder/Decoder – Encode or decode data using Base64.
- Bcrypt – Hash strings with Bcrypt
- Text Censor – Quickly mask bad words or replace them with alternative words.
- Create palindrome – Create text that reads the same forward and backward
- Email Extractor – Extract email addresses from text
- Extract substring – Extract a portion of text between specified positions
- Hidden Character Detector – Find hidden Unicode characters in text
- Join Text – Join text elements with a specified separator
- Palindrome – Check if text reads the same forward and backward
- Password Generator – Generate secure random passwords with custom options
- Text Quoter – Add quotes around text with various styles
- Randomize case – Randomize the case of letters in text
- Remove duplicate lines – Quickly delete all repeated lines from text
- Repeat Text – Repeat text multiple times
- Reverse – Reverse any text character by character
- ROT13 Encoder/Decoder – Encode or decode text using ROT13 cipher.
- Rotate Text – Shift characters in text by position.
- Slug Generator – Generate URL-friendly slugs from text.
- Split – Split text into multiple parts using a separator
- Text Statistics – Get statistics about your text
- Table Text Converter – Convert tables between Markdown, CSV, HTML, MySQL, and JSON
- Compare Texts – Compare two texts and spot differences instantly
- String To morse – Quickly encode text to morse
- Truncate Text – Truncate text to a specified length
- Unicode Encoder / Decoder – Encode or decode text using Unicode escape sequences.
- Convert to Uppercase – Convert text to uppercase
- String URL decoder – Quickly URL-unescape a string.
- URL Editor – Inspect and edit URL components and query parameters.
- String URL encoder – Quickly URL-escape a string.