Quick answer: the macOS find and replace shortcut
On most Mac apps, open the find field with Command+F, type your search term, then press Command+Option+F to extend to a replace field and add the replacement text. To replace individual hits, use Command+G (Next) and Command+Shift+G (Previous) with optional modifiers; full bulk replace often requires clicking Replace or Replace All after confirming matches. These steps work in TextEdit, Pages, and many document apps, while Finder and some code editors use their own in-place or modal replace dialogs. Keyboard layouts and app modes can change shortcut availability.
Why app matters for find and replace on Mac
macOS provides system-level shortcuts such as Command+F for find, but each app decides how to extend them to replace. In text apps like TextEdit and word processors like Pages and Microsoft Word, Replace lives under an Edit menu and can be invoked with additional Option or Shift modifiers. In Safari, Chrome, and terminal tools, you generally use in-page or panel replace with distinct shortcuts or menu commands. Understanding the active app and whether you are in a dialog or inline mode reduces errors and prevents accidental changes.
Step-by-step: basic find and replace in common apps
Follow consistent steps in everyday apps to avoid confusion:
- TextEdit (Rich Text): Command+F to find, then Command+Option+F to show Replace, type replacement, click Replace or Replace All.
- Microsoft Word for Mac: Command+F to open Navigation, choose Replace (or Ctrl+H), enter find and replace text, then Find Next, Replace, or Replace All.
- Google Docs in browser: Command+F, then Shift+Command+H to open Replace, enter both terms, and use Replace or Replace all.
- Safari: Command+F for on-page find; use Develop > Show Web Inspector or menu-driven Replace where available.
- Terminal: Use sed or awk one-liners or editor-specific replace if supported; these are advanced and app-specific patterns.
Keyboard shortcuts summary and edge cases
Shortcuts can shift with context, input source, and full-screen or legacy app behavior. Below is a concise reference of common patterns and when they apply or diverge.
| App or Context | Find shortcut | Replace shortcut | Notes |
|---|---|---|---|
| TextEdit (Rich Text) | Command+F | Command+Option+F to open Replace field | Use Replace or Replace All after entering text |
| Pages | Command+F | Shift+Command+H | Online replace panel; may need to click into field |
| Microsoft Word | Command+F or Ctrl+H | Ctrl+H opens Replace pane | Pane-based workflow; scope options available |
| Safari | Command+F | No universal in-page Replace; use Develop tools or extensions | In-page replace limited; consider alternatives |
| Chrome | Command+F | Shift+Command+H | Inline replace in many versions; availability varies |
Advanced tips: accuracy, backups, and accessibility
To keep replacements precise and safe: match case and whole words when possible; preview matches before applying bulk changes; create an undo-friendly workflow by saving or committing beforehand. Accessibility settings and Voice Control can change key behavior, so verify your keyboard and system preferences align with your intended modifiers. When in doubt, open the app’s Replace dialog via the Edit menu to confirm the correct key sequence for your current context.
Troubleshooting when shortcuts fail
If a shortcut does nothing or opens a different command, check for active input method, full-screen restrictions, or Dictation overlays that intercept keys. Try the menu path (Edit > Replace) to confirm whether the feature is supported. Some apps require focus inside the search field; click the text area first or tab into it. For web apps, browser extensions or different UI patterns can shift expected behavior. If a specific app consistently lacks replace, consider its feature scope or update to a version that supports it.