Convertful
ImagePDFVideoUtilityBlog

Image Tools

  • Compress Image
  • Resize Image
  • Remove Background
  • HEIC to JPG
  • All Image Tools →

PDF Tools

  • Compress PDF
  • Merge PDFs
  • Split PDF
  • PDF to Images
  • All PDF Tools →

Video & Audio

  • Video to GIF
  • Compress Video
  • Trim Video
  • Extract Audio
  • All Video Tools →

Utility

  • QR Code Generator
  • JSON Formatter
  • Color Converter
  • All Utility Tools →
All processing happens in your browser. Your files never leave your device.
AboutBlogTermsPrivacyContact
© 2026 Convertful. All rights reserved.
HomeUtilityFind and Replace

Find and Replace

Plain and regex find/replace with preserve-case option. Free, private, runs in your browser.

100% private — your files never leave your browser. All processing happens locally on your device.

Match Settings

Enter source text and a find pattern to see replacements.

You might also need

Regex TesterTest and debug JavaScript regular expressions with live highlighting
Strip HTMLRemove HTML tags to extract plain text
Trim WhitespaceTrim, collapse, and clean whitespace from text
Case ConverterConvert text between UPPER, lower, camel, snake, and more

When Plain Find-Replace Isn't Enough

Your code editor has find-and-replace, but browser text tools don't. Paste a block into Notion, an email draft, or an AI response, and you're stuck with whatever the native control provides — which usually isn't much. This tool gives you full find-replace with regex, case-sensitivity, whole-word matching, and case-preserving replacements, all running locally.

Regex Mode with Capture Groups

Enable regex mode to use JavaScript's standard RegExp engine. Capture groups work: find `(\w+): (\w+)` and replace with `$2 is my $1` transforms `name: Alice` into `Alice is my name`. Named groups work too — use `(?<year>\d{4})` in the pattern and `$<year>` in the replacement. The tool catches invalid regex early and shows a clear error instead of crashing.

Preserve Case — the Feature Most Tools Skip

'Preserve case' replacement adopts the casing of each match. Searching 'hello' and replacing with 'world' produces `WORLD` for `HELLO`, `World` for `Hello`, and `world` for `hello`. This matches how serious code editors like VS Code and JetBrains handle the feature, and it's essential for refactoring identifiers or rewriting prose without manual case fixing.

Is My Text Private?

Yes. Every replacement happens inside your browser's JavaScript engine. Your source text, your find pattern, and your replacement string are never transmitted to any server.

FAQ

Can I use regex capture groups?

Yes. Enable regex mode, then reference captures with `$1`, `$2`, etc. Named groups work with `$<name>`. Your find pattern is a standard JavaScript RegExp.

How do I match across lines?

In regex mode, enable the 'Multi-line' flag so `^` and `$` match line boundaries, and the 'Dotall' flag so `.` matches newlines.

What does 'Preserve case' do?

In plain mode, the replacement adopts the casing of the match. Searching 'hello' and replacing with 'world': `HELLO` becomes `WORLD`, `Hello` becomes `World`, `hello` becomes `world`. Mixed-case matches pass through as the raw replacement.

What if my regex is invalid?

The tool shows a friendly error (e.g., 'Unterminated character class') instead of failing silently. Your input text is never lost.