How to use
- Enter your original text.
- Enter the string to find and the string to replace it with.
- Turn on the regex option if needed, then click "Replace".
🎯 Use Cases
- Fix a typo scattered across many places at once
- Mask sensitive-data patterns in a log file
- Batch-rename a variable in a code snippet
Example
Input
start: 2026-07-22 end: 2026-07-25
Output
start: 2026/07/22 end: 2026/07/25
With "Use regex" and "Replace all" turned on, setting the find pattern to (\d{4})-(\d{2})-(\d{2}) and the replacement to $1/$2/$3 uses the captured groups ($1·$2·$3) to reformat every YYYY-MM-DD date into YYYY/MM/DD at once.
Regex pattern cheat sheet
Beyond literal replace, it supports regular expressions. Frequently used patterns:
| Pattern | Meaning |
|---|---|
\d | One digit (0-9) — \d+ matches runs of digits |
\w | Word character — \w+ matches a word |
\s | Whitespace, tab or newline |
(pattern) | Capture group — referenced as $1 in the replacement |
Flag g | Global — replace every match, not just the first |
Flag i | Case-insensitive matching |
FAQ
- What regex syntax does it use?
- It uses standard JavaScript regular expression syntax. Group references (like $1) can also be used in the replacement string.
- Can I search case-insensitively?
- Yes. Turn on the "Case-insensitive" option to match regardless of letter case.
- Is my text sent to a server?
- No. All replacement happens entirely in your browser.
- What does $1 mean in the replacement?
- A back-reference to a capture group — e.g.
(\d{4})-(\d{2})→$2/$1swaps year and month. - How do I match a literal dot or bracket?
- Escape regex specials with a backslash —
\.\(\[. Turning regex off searches literally.
More Text Tools
📝
Markdown Preview
Live-preview Markdown as HTML
🔗
URL Encoder/Decoder
Percent-encode/decode URL characters
🆚
Text Diff
Compare two texts line by line
↕️
List Sorter
Sort a list & remove duplicates
📧
Email Extractor
Extract & dedupe emails from text
🔢
Character Counter
Count characters, bytes, lines & words
🔠
Case Converter
Convert to UPPER/lower/Title Case
🔤
Fullwidth/Halfwidth Converter
Convert fullwidth chars ↔ halfwidth ASCII
🈚
Unicode Inspector
Check code points & look up characters
🔟
Text to Decimal
Convert text ↔ decimal code points
🧾
Text to Hex
Convert text ↔ UTF-8 byte hex
0️⃣
Text to Binary
Convert text ↔ UTF-8 byte binary
🔡
ASCII Art Generator
Turn text into an ASCII art banner