Troubleshooting

How Long Does the Clipboard Keep What You Copied?

Windows, macOS, Android, iPhone and Linux each forget what you copied at a different moment. What clears your clipboard, when, and how to keep something longer.

  • 6 min read
  • Published
  • By MyClipCloud Team
Short answer

On a desktop the clipboard normally holds the last thing you copied until you copy something else, sign out or restart. The exceptions matter: Windows clipboard history keeps 25 entries and empties on restart unless you pin them, Android 13 and later wipe the clipboard automatically after about an hour, and on Linux what you copied can disappear the moment you close the window you copied it from.

"How long does copy and paste last" is one of the questions people reach this site with, and it does not have one answer. It has five, because five operating systems made five different decisions — and two of them changed their minds in the last few years.

The short version

Platform The last thing you copied survives It is gone when
Windows Closing the app you copied from You sign out, restart, or copy something else
macOS Closing the app you copied from You restart, or copy something else
iPhone / iPad Switching apps You copy something else (and anything reading it asks first)
Android 13+ Switching apps Roughly an hour passes, or you copy something else
Linux (X11) Usually not closing the app you copied from The source window exits, or you copy something else

The pattern worth noticing: nothing is permanent anywhere, and the newer the platform decision, the shorter the window. Clipboards used to be plumbing. They are now treated as a privacy surface.

Windows: one slot, plus an optional 25-item history

Windows has always kept one clipboard in memory, and it normally survives closing the app you copied from, because the data was handed to the system rather than left inside the application.

Normally, not always. An application is allowed to say "I have something on the clipboard, ask me for it when someone wants it", and if it has exited by then, nobody can. That is why Office sometimes asks whether you want to keep a large item on the clipboard as you quit: it is offering to hand the data over properly instead of letting it evaporate.

Clipboard history (Windows key + V) is a separate, opt-in layer on top. Microsoft's own documentation is specific about its limits: the history holds 25 entries, drops the oldest to make room, and is cleared every time you restart, apart from items you have pinned (Microsoft: using the clipboard). Pinning is the only way to make something survive a reboot, and it is the part most people never find.

There is also an optional sync-across-your-Windows-devices switch tied to a Microsoft account. It is off by default, it only covers Windows, and it is worth knowing it exists before you go looking for a third-party tool.

macOS: the pasteboard outlives the app, not the reboot

macOS calls it the pasteboard. Behaviour is close to Windows minus the history: one item, survives quitting the app, cleared on restart. There is no built-in multi-item history, which is why the Mac has a long tradition of clipboard manager apps.

Universal Clipboard is the cross-device piece, and Apple is refreshingly blunt about its lifetime — the copied content, in Apple's words, "remains there briefly" or until you copy something else on either device (Apple: Universal Clipboard). No number is published. Reports put it in the low minutes. Treat it as a hand-off for something you are about to paste, not a place to leave anything.

It also needs Handoff on, Bluetooth and Wi-Fi on, and the same Apple Account on both devices — four conditions, any one of which silently breaks it.

iPhone and iPad: one item, and a prompt when anything reads it

iOS keeps the last copied item across app switches. What changed is who may look at it. Since iOS 16, when one app reads a clipboard written by a different app, you get an Allow Paste prompt. It was a direct response to apps quietly reading the clipboard on launch.

That prompt is also why clipboard tools behave differently on an iPhone than on a desktop: every automatic read becomes a tap. Not a bug in the tool, a deliberate choice by Apple, and the right one.

Android: the strictest rules of the five

Android has tightened the clipboard three times, and the changes stack.

  • Android 10 (2019). An app cannot read the clipboard at all "unless your app is the default input method editor (IME) or is the app that currently has focus" (Android 10 privacy changes). That single sentence ended background clipboard monitoring on Android.
  • Android 12. When an app reads clipboard content written by another app, the system shows a toast naming it. Visible, unskippable accountability.
  • Android 13. The clipboard is now cleared automatically after a period with no copying — reported at one hour by default. Google documents the auto-clear as standard behaviour from API level 33 (Android: secure clipboard handling).

Gboard's own clipboard panel keeps recent copies for about an hour too, unless you pin them, and that is a keyboard feature rather than a system one. If you switch keyboards, it goes with the old keyboard.

Android is the platform most likely to surprise you, because "I copied that twenty minutes ago" is no longer a safe assumption.

Linux: the clipboard can belong to a window that no longer exists

Under X11 the clipboard is not a buffer the system owns. It is a selection owned by the application you copied from, handed over on request. Copy from a terminal, close the terminal, and there is nothing left to hand over — the paste fails or pastes nothing.

This is not a bug, it is the ICCCM design, and it is the reason a clipboard manager is close to mandatory on a Linux desktop: the manager keeps a copy so the content outlives the window. Wayland uses a similar ownership model with the same practical consequence. Desktop environments vary in how much they paper over it.

Where the browser fits

A web page never gets its own copy of the clipboard. It asks the operating system at the moment you grant it access, and the modern Clipboard API only exists on HTTPS pages (MDN: Clipboard.read()). So a browser inherits every rule above, plus its own: reading needs your consent, and writing has to follow a click.

Which means a tab cannot "hold" your clipboard for later, and a site that was open an hour ago knows nothing about what you copied since. If you want text to outlive the clipboard, something has to store it on purpose.

Three things that clear it sooner than people expect

  1. Password managers clear after a timeout. Most wipe a copied password after 30–90 seconds. Paste it and it is already gone, which is the intended behaviour.
  2. Android's hourly wipe. Copy an address at the station, arrive, paste — and get nothing. First time it happens it reads like a broken phone.
  3. Remote desktop sessions have their own clipboard. What you copy inside a remote session is often not what your local machine holds, and the bridge between them is a separate, frequently-blocked feature. We wrote about that in why a browser says it cannot access the clipboard.

Making something outlast the clipboard

If a snippet matters for longer than your next copy, stop treating the clipboard as storage.

  • Pin it in Windows clipboard history if it only needs to survive on one PC.
  • Put it in notes. MyNotes works with no account; notes stay in the browser until you sign in.
  • Use a clipboard history with a retention you pick. In MyClipCloud items expire after 1, 7 or 30 days (7 unless you change it), and up to 50 pinned items stay until you unpin them. That is deliberately bounded: a clipboard that keeps everything forever is a liability, not a feature. See clipboard history.

One thing no service can do — and you should be suspicious of any that claims otherwise — is erase what is already sitting on a device's own clipboard. That slot belongs to the operating system. It changes when you copy something else, and not before.

The question underneath the question

Most people asking how long a copy lasts are really asking whether they can trust the clipboard with something for a few minutes. The answer is yes for a few minutes, usually, on a desktop. Beyond that, the clipboard is the wrong container — and on a modern phone, "beyond that" can mean an hour.

If what you actually want is the same snippet available on your laptop and your phone, that is a different problem with a different fix: see copy and paste between devices.

Want to try it? Copy on one device and pick it up on another, in your browser. Same Wi-Fi? Nearby needs no account at all.

Copy once. Find it on your other browsers.

Sign in on each browser you use. Copy on one and it is ready to paste on the others — no Send button.

No account? Use it right now on the same Wi-Fi — free, no sign-up.