How to clear the clipboard on a Mac
Copied a password, a card number or something private? It stays on the clipboard until you copy something else, and any app you paste into can read it. Here's how to wipe it.
Updated
The quickest way: copy something else
The Mac clipboard holds one item at a time, so copying anything replaces it. Select a single space or a harmless word and press ⌘C. The old content is gone from the clipboard.
Empty it completely with Terminal
- Open Terminal from Applications → Utilities.
- Type the command below and press
Return.
pbcopy < /dev/nullThis puts nothing on the clipboard, so a paste afterwards pastes nothing. If clipboard behaviour itself has gone wrong, see copy and paste not working.
Where else it might still be
- Your iPhone or iPad. With Universal Clipboard on, what you copy is offered to your nearby devices for a short time.
- Spotlight in macOS Tahoe. macOS 26 keeps its own clipboard history in Spotlight. See clipboard history on a Mac.
- A clipboard manager. Its whole job is to remember what you copy, so clear it there too (below).
Clear history in Maclip
- One clip. Select it in the dashboard and delete it. It goes to the Trash, and Empty Trash removes it for good.
- Everything. In the Floating Shelf, open the … menu and choose Clear All History. Pinned clips are kept.
- Before you copy something private. Press
⇧⌥Ifor Incognito Mode and nothing is recorded for 15 minutes. - Automatically. 2FA codes are erased minutes after you copy them, and app rules can erase everything copied in an app like your bank after a set time.
Password managers such as 1Password and Bitwarden are skipped automatically, and clips Maclip spots as passwords or API keys stay hidden until you click Show. See is a clipboard manager safe?.
Questions
Does restarting a Mac clear the clipboard?
Yes. The clipboard lives in memory, so restarting or logging out empties it. A clipboard manager's saved history is kept until you clear it there.
How long does the Mac keep what I copied?
The clipboard keeps the last item until you copy something else, restart or log out. macOS 26 Tahoe's Spotlight also keeps a short clipboard history for 30 minutes, 8 hours or 7 days.