Online notepad with find & replace
A free plain-text notepad that keeps nothing: refresh and it’s wiped. Press Ctrl/⌘+F to find or Ctrl+H (⌥⌘F on Mac) to replace — with match case, whole word and regex options.
Ln 1, Col 10 lines0 words0 charactersNot saved — clears on refresh
How to use this online notepad
- Type or paste text into the page. Use Open to load a
.txtfile from your computer. - Press Find (Ctrl/⌘+F) and every match is highlighted as you type, with a running count.
- Press Replace (Ctrl+H, or ⌥⌘F on Mac) to swap the current match or all of them at once.
- When you’re done, use Copy all or Save .txt. Nothing is kept after you refresh or close the tab.
Regex find & replace: examples that save time
Turn on Regex in the Replace bar, paste the pattern into Find and the replacement into Replace, then click Replace all.
| To do this | Find | Replace with |
|---|---|---|
| Squash repeated spaces into one | [ ]{2,} | a single space |
| Delete blank lines | \n[ \t]*(?=\n) | (leave empty) |
| Strip spaces at the end of lines | [ \t]+(?=\n) | (leave empty) |
| Dates from DD/MM/YYYY to YYYY-MM-DD | (\d{2})/(\d{2})/(\d{4}) | $3-$2-$1 |
| Swap “Sharma, Priya” to “Priya Sharma” | (\w+), (\w+) | $2 $1 |
| Put every word in quotes | (\w+) | "$1" |
Patterns use JavaScript regular-expression syntax. Replace all can be undone with Ctrl/⌘+Z.
Private by design
Most online notepads save what you type to their servers or to your browser so it’s there next time. This one deliberately doesn’t: your text exists only in the open tab and disappears on refresh. That makes it a good scratchpad for draft messages, customer details, or anything else you don’t want left behind — especially on an office or shared computer.
FAQ
- Is my text saved or uploaded anywhere?
- No. Your text lives only in the open tab — it's never sent to a server and isn't stored in your browser, so refreshing or closing the page wipes it. That also makes it safe on a shared computer. Use Save .txt to keep a copy.
- How do I find and replace text?
- Press Ctrl+F (⌘F on Mac) to find, or Ctrl+H (⌥⌘F on Mac) to find and replace — or use the toolbar. Enter jumps to the next match and Shift+Enter to the previous one. In the replace box, Enter replaces the current match and Ctrl/⌘+Enter replaces all.
- Can I use regular expressions?
- Yes. Turn on Regex to search with a JavaScript regular expression, and use $1, $2 in the replacement to insert captured groups. Match case and Whole word narrow any search. See the examples above for common clean-up jobs.
- Can I undo a replace?
- Yes — in most browsers Replace and Replace all go onto the normal undo history, so Ctrl+Z (⌘+Z) reverts them.
- Does it count words and characters?
- Yes. The status bar under the text shows your cursor's line and column plus live line, word and character counts — handy for posts, bios and form fields with a length limit.