How to clear the clipboard on Mac

Clear the Mac clipboard by copying something harmless, running pbcopy in Terminal, or restarting. How to clear clipboard history too, including OneNotch's Shelf.

On this page
  1. Three ways to clear the current clipboard
  2. When you'd want to
  3. Clear clipboard history, too
  4. What clearing doesn't do
  5. Let your password manager do it
  6. FAQs

macOS has no "clear clipboard" button. The simplest way to clear it is to copy something harmless, such as a single space, which replaces whatever was there. To empty it completely, run pbcopy < /dev/null in Terminal. Restarting or logging out also empties it. If you use a clipboard history, clear that separately, because it keeps its own copies.

Three ways to clear the current clipboard

1. Copy something harmless. Select a space or a single word in any document and press ⌘C. The previous item is gone from the clipboard. This is the quickest way, and it works everywhere.

2. Empty it with Terminal.

  1. Open Terminal (in Applications → Utilities).
  2. Type pbcopy < /dev/null and press Return.
  3. The clipboard is now empty: pasting does nothing.

3. Restart or log out. The clipboard lives in memory and doesn't survive a restart.

To confirm it worked, open Finder and choose Edit → Show Clipboard. See how to see what's on your Mac's clipboard.

When you'd want to

  • After pasting a password, a recovery code or an account number.
  • Before handing your Mac to someone, or sharing your screen.
  • When a paste keeps bringing in the wrong item and you want a clean start.

For a deeper look at the risks, see clipboard history and passwords.

Clear clipboard history, too

Clearing the system clipboard doesn't touch a clipboard history. If you use one, it may still hold the item.

Spotlight on macOS 26 Tahoe keeps its own clipboard history. Check Apple's Mac User Guide for your version's options for removing items or turning the history off.

OneNotch's Shelf:

ToDo this
Remove one itemSelect it on the Clipboard tab and press Delete
Clear everything except pinned itemsClear history (keeps pinned) on the Shelf
Clear everythingClear clipboard history in Settings → Clipboard
Stop recordingTurn off Keep clipboard history in Settings → Clipboard
Erase it all at once, pins includedQuit OneNotch: the history lives in memory only

OneNotch never records items that password managers mark as concealed, so passwords copied from a password manager shouldn't be there in the first place. Text copied from a note or chat isn't marked, so delete those items yourself.

What clearing doesn't do

Clearing the clipboard removes the item from your Mac's current clipboard, nothing more:

  • It doesn't remove what you already pasted. A password pasted into a chat stays in the chat; delete the message there.
  • It doesn't clear other devices. If Universal Clipboard was on, a nearby iPhone or iPad may have had the item available briefly. It expires on its own.
  • It doesn't clear app histories. Apps with their own history, such as Spotlight's Clipboard view on macOS 26 (how to open it) or OneNotch's Shelf, keep their copies until you clear them there.
  • It doesn't affect undo. An app's undo history can still restore text you deleted in it.

The Shelf in the notch guide covers everything OneNotch keeps and for how long.

Let your password manager do it

Many password managers can clear the clipboard automatically a short while after you copy a password. If yours has that option, turn it on: it covers the moments you forget. Better still, use autofill so the password never touches the clipboard.

FAQs

Is there a keyboard shortcut to clear the clipboard?

Not built in. Copying a single space with ⌘C is the closest equivalent.

Does emptying the Trash clear the clipboard?

No. The Trash and the clipboard are unrelated.

Does clearing the clipboard on my Mac clear it on my iPhone?

Each device has its own clipboard. Universal Clipboard only shares the item you copy, for a short time.

Will pbcopy < /dev/null harm anything?

No. It replaces the clipboard's contents with nothing. Your files and apps are unaffected.