Glyph WidgetsGlyph Widgets
ToolsAboutContactBlogPrivacyTermsRemove AdsSupport on Ko-fi

© 2026 Glyph Widgets LLC. All rights reserved.

·

100% Client-Side Processing

Developer
Text & Writing
Images & Colors
Media
Web & SEO
Utilities
Privacy & Security
Calculators
  1. Home
  2. Text & Writing
  3. Text Tools
  4. Find and Replace

Find and Replace

Last updated: March 7, 2026

Search and replace text with support for regular expressions, case sensitivity, and whole word matching.

Options:
0 characters
0 characters

Saved Presets is a Supporter feature.

Tool History is a Supporter feature.

Tool Notes is a Supporter feature.

Features

  • ▶Literal text search
  • ▶Regular expression support
  • ▶Case sensitive/insensitive
  • ▶Whole word matching
  • ▶Replace first or all occurrences
  • ▶Match count preview
  • ▶Copy result to clipboard

How to Use This Tool

1

Enter Text

Paste the text you want to search and replace in.

2

Set Search Terms

Enter the text or pattern to find and the replacement text.

3

Apply and Copy

Click replace and copy the result to your clipboard.

Search Algorithm

Uses JavaScript's string replace method with optional regular expression support for pattern matching.

Replace Options

Supports replace first occurrence, replace all, and case-sensitive/insensitive matching.

String Replacement Engine

In basic mode, we use JavaScript's String.replaceAll() for simple substring replacement. In regex mode, we compile your pattern into a RegExp object and use String.replace() with the global flag. Capture groups in the pattern can be referenced in the replacement.

Match Highlighting

We use the same pattern to both highlight matches (by wrapping in styled spans) and perform replacements. This ensures the preview exactly matches what will be replaced. Match positions are calculated to correctly handle overlapping or adjacent matches.

Frequently Asked Questions

Yes! Toggle the "Use Regex" option to search using regular expression patterns. This allows for powerful pattern matching like finding all email addresses or phone numbers.

Related Tools

Case Converter

Convert text case formats

Duplicate Remover

Remove duplicate lines

Word Counter

Count words and characters