Stop reopening Notepad just to run Find & Replace. Save your regex rules once, assign a hotkey, then: select → hotkey → paste. Anywhere.
Delete Newline is a system-wide hotkey tool for instant text transformation. Drag-select text in any application, press your hotkey, and the selection is instantly run through your regex rules and pushed to the clipboard - ready to paste. Your browser, code editor, PDF reader, chat window - it doesn't matter where the text lives.
No more copy → open editor → paste → find/replace → copy → paste back. Just one keystroke.
- 🔗 Chained regex rules - apply multiple find/replace patterns in sequence
- ⌨️ Multiple hotkey profiles - bind different rule chains to different shortcuts
- 🌐 Works anywhere - capture selected text from any Windows application
- 📋 Auto-clipboard - transformed text is ready to paste immediately
- 🤖 MCP server built in - let an AI assistant author, edit, and test your regex profiles for you
Tell Delete Newline what you want to do. This setup is required only once per workflow.
- Create a rule chain - add one or more regex rules that define your transformation
- Assign a hotkey - bind a unique keyboard shortcut to that rule chain
Once it's set up, the daily flow is dead simple:
- Select any text (mouse drag or keyboard selection)
- Press your custom hotkey
- Paste - the transformed text is on your clipboard, ready to go
A few real-world examples of what you can build with regex chains:
PDFs frequently break sentences with hard line breaks. Restore the original flow in one keystroke.
| Pattern | Replace with |
|---|---|
| `[\r\n | \n]` |
Remove utm_*, fbclid, gclid, and other junk before sharing a link. This is a great example of chained rules - three small rules combine into a robust cleaner:
| # | Pattern | Replace with | What it does |
|---|---|---|---|
| 1 | `[?&](utm_[^=]+ | fbclid | gclid)=[^&]*` |
| 2 | ^([^?\n]*)& |
$1? |
Repairs URLs that lost their leading ? |
| 3 | \?$ |
(empty) | Trims a bare trailing ? if all params were tracking |
Chain rules to strip formatting - perfect for pasting into plain-text fields. Rule order matters: bold must run before italic, or **word** gets mangled into *word*.
| # | Pattern | Replace with | What it does |
|---|---|---|---|
| 1 | \*\*(.+?)\*\* |
$1 |
Remove bold |
| 2 | \*(.+?)\* |
$1 |
Remove italic (must run after rule 1) |
| 3 | \[([^\]]+)\]\([^)]+\) |
$1 |
Convert links to plain text |
| 4 | (?m)^#+\s+ |
(empty) | Strip heading markers (#, ##, …) |
Swap date formats without leaving the app you're already in.
| Pattern | Replace with | Result |
|---|---|---|
(\d{4})-(\d{2})-(\d{2}) |
$2/$3/$1 |
2025-04-28 → 04/28/2025 |
Specifying complex regular expressions is incredibly tricky - and asking an AI to write one, then copy-pasting it back, is an exhausting cycle. To address this pain point, Delete Newline ships with a built-in Model Context Protocol server. Connect any MCP-aware AI assistant (Claude Code, GPT Codex, local agents, …) and let it manage your settings profiles through conversation:
"There's an MCP server on 127.0.0.1:39333 (streamable HTTP). Probe it, then make a hotkey that strips Markdown bold/italic and bind it to Ctrl+Shift+M."
- Open Settings in Delete Newline.
- Toggle MCP server on. (The default port is
39333; change it while MCP is disabled if you need to.) - Chat with your AI! (Only MCP-capable clients work - Claude Code, GPT Codex, or other local LLMs.)
That's it - your assistant can now read and write Delete Newline state through the same surface the GUI uses. Hotkey changes are re-registered the moment they're saved, so transformations are usable on the next keystroke.
You normally don't need to check the MCP tools at all. But if you're a developer - or just want to see how MCP works under the hood - run npx @modelcontextprotocol/inspector in your command prompt (Node.js required).
Get Delete Newline from the Microsoft Store:
- Windows 11 (build 26100 or later)
- .NET 10
Bug reports, feature ideas, and pull requests are welcome. #

