What is a clipboard? How copy and paste actually works
When you press Ctrl+C, your selected text goes to "the clipboard." But what is that? Where does the text live? Can you see it? And why does it vanish when you copy something else? This guide explains the clipboard at a technical level while staying practical about how to use it better across every operating system.
The clipboard is a memory buffer in RAM
The clipboard is a temporary storage area in your computer's RAM (Random Access Memory). It's managed entirely by the operating system. There's no file for it, no folder, no visible location on your hard drive.
When you copy something, the OS takes the selected content from the source application and writes it into this memory buffer. When you paste, the OS reads from this buffer and hands the content to whichever application is currently focused. The application then inserts it at the cursor position.
Because it's stored in RAM, the clipboard has two fundamental characteristics:
- It's fast. Reading and writing to RAM takes nanoseconds. Copy and paste feel instant because they are
- It's temporary. RAM is volatile memory. Shut down your computer and the clipboard is gone. Restart, and it's empty
What happens step by step when you copy and paste
- You select content (highlight text with your mouse, or use Shift+Arrow keys)
- You press Ctrl+C (Windows/Linux) or Cmd+C (Mac)
- The OS sends a message to the active application: "give me the selected content"
- The application responds with the content in one or more formats (plain text, rich text, HTML, etc.)
- The OS writes all these format variants into the clipboard buffer
- You navigate to a new location and press Ctrl+V or Cmd+V
- The OS asks the receiving application: "what clipboard formats can you accept?"
- The receiving application picks its preferred format from what's available
- The OS delivers that format from the buffer to the application
- The application inserts the content at the cursor
This negotiation between formats is why pasting into a rich text editor gives you formatted text, while pasting into a plain text editor strips all formatting. The clipboard holds both versions simultaneously, and the target application chooses which one to use.
Why copying again erases the previous item
The standard clipboard is a single slot. One slot, last write wins. When you copy something new, it completely overwrites whatever was there before. There's no queue, no stack, no undo for clipboard operations.
This design dates back to the earliest implementations of copy-paste in the 1970s and 1980s. It was the simplest possible approach: one temporary holding area. Modern clipboard history features (covered below) add a tracking layer on top, but the actual system clipboard remains a single-item buffer.
Types of content the clipboard can hold
Plain text: Raw characters with no formatting. What you get when you use Ctrl+Shift+V (paste without formatting). A URL, a code snippet, a paragraph of text.
Rich text (RTF): Text with font, size, color, bold, italic, and other formatting attached. When you copy from a Word document or a web page and paste into another rich text editor, formatting comes along.
HTML: When you copy from a web page, most browsers put raw HTML on the clipboard in addition to the rendered text. Some applications (like email clients) use this HTML format when you paste.
Images: Screenshots go directly to the clipboard on most systems (Print Screen on Windows, Cmd+Shift+4 on Mac with Ctrl modifier). Some applications let you right-click an image and "Copy Image" to put it on the clipboard.
Files: When you Ctrl+C a file in File Explorer or Finder, the clipboard doesn't actually hold the file data. It holds a reference (file path) that the OS interprets on paste. This is why you can copy a 10GB file instantly but pasting it takes time.
Custom formats: Applications can define their own clipboard formats. A spreadsheet might put structured cell data on the clipboard. A design tool might include vector path data. These custom formats only work when pasting back into the same type of application.
The clipboard stores multiple formats at once. When you copy formatted text from a webpage, the buffer might contain: plain text, HTML, RTF, and a URL. The receiving application picks which format it prefers.
Clipboard on each operating system
Windows
Windows has the most developed built-in clipboard features. The basic clipboard (Ctrl+C, Ctrl+V) works as described above. But since Windows 10 version 1809, there's also Clipboard History:
- Press Win+V to open clipboard history
- Shows your last 25 copied items
- Pin items so they persist across restarts
- Clear all history with one click
- Optionally sync clipboard across Windows devices (requires Microsoft account)
To enable: Settings > System > Clipboard > Toggle "Clipboard history" on. If you haven't enabled it yet, do it now. It's one of the most useful Windows features most people don't know about.
macOS
macOS has a deliberately minimal clipboard. Copy with Cmd+C, paste with Cmd+V, paste without formatting with Cmd+Shift+V (or Cmd+Option+Shift+V in some apps). That's about it.
- No built-in clipboard history
- You can view current clipboard contents via Finder > Edit > Show Clipboard, but it only shows text
- A secondary "kill ring" exists for selected text operations (Ctrl+K to cut, Ctrl+Y to paste), but few people know about it
- Universal Clipboard syncs between Apple devices (see our cross-device guide)
For clipboard history on Mac, you need a third-party tool like Maccy, Paste, or Alfred's clipboard feature.
Linux
Linux actually has two clipboards:
- CLIPBOARD: The standard one (Ctrl+C / Ctrl+V). Works like Windows and Mac
- PRIMARY: An X11-specific selection. Highlight text with your mouse (no Ctrl+C needed), then middle-click to paste wherever the cursor is. This is unique to Linux/X11
Clipboard managers like CopyQ, GPaste, or Clipman add history and search functionality. KDE Plasma's built-in Klipper clipboard manager is excellent if you use the KDE desktop.
Android
Android's clipboard works via long-press: select text, tap "Copy" from the floating menu, long-press in a text field, tap "Paste."
- Gboard (Google's keyboard) includes clipboard history: tap the clipboard icon in the toolbar to see recent items
- Samsung keyboards also have built-in clipboard history
- Android automatically clears clipboard content after about an hour for privacy
- Android 13+ shows a visual confirmation when you copy something, with an edit option
iOS (iPhone and iPad)
iOS clipboard is basic by design:
- Long-press to select, tap Copy. Long-press elsewhere, tap Paste
- No clipboard history whatsoever
- Starting with iOS 16, apps need permission to read the clipboard (you'll see a prompt)
- Universal Clipboard works with Mac/iPad via iCloud
- The clipboard clears after a period of inactivity
ChromeOS
Chromebooks have a simple but useful clipboard:
- Standard copy and paste with Ctrl+C / Ctrl+V
- Press Search+V (or Launcher+V) to see your last 5 copied items
- Supports text, images, and links in history
Clipboard limitations you should know about
Single-item by default: Unless you explicitly enable clipboard history, copying overwrites the previous item permanently. No recovery possible.
No cross-device sync out of the box: Your phone clipboard and your computer clipboard are completely separate. They don't talk to each other unless you set up a sync tool. See how to copy paste between devices for solutions.
Size limits on some operations: While the clipboard itself doesn't have a hard size cap for text, very large content (multi-megabyte images, huge text blocks) can cause slowness or failures in some applications. Windows clipboard sync is limited to items under 4MB.
Format conflicts: Pasting formatted text when you wanted plain text is a universal annoyance. Use Ctrl+Shift+V (Cmd+Shift+V on Mac) to paste as plain text. Not all applications support this shortcut, which is frustrating.
Clipboard clearing: Some security software and mobile operating systems clear the clipboard automatically after a timeout. Password managers often clear it after 30 seconds. This is intentional but can be surprising if you didn't know about it.
Online clipboards: extending what the clipboard can do
An online clipboard like ClipboardSyncer works differently from the system clipboard. Instead of storing content in volatile RAM, it uses your browser's localStorage (which persists across sessions) and optionally syncs across devices via WebRTC.
The system clipboard is designed for quick, within-device copy-paste operations. An online clipboard solves the problems the system clipboard can't:
- Persistence: Text stays saved even after restart. Useful for frequently-pasted snippets
- History: See everything you've saved, not just the last item. Check our guide on clipboard history in browser without extension
- Cross-device: Transfer text between phone and laptop, or any two devices with a browser
- Sharing: Generate a link or room code to share text with someone else
Think of it as a complement to the system clipboard. You still use Ctrl+C and Ctrl+V for quick within-app operations. The online clipboard handles everything else: saving, syncing, and sharing.
Common clipboard problems and fixes
Copied text won't paste
- The target field may not accept paste (some form fields block it for security)
- Try right-click > Paste instead of Ctrl+V
- The clipboard may have been cleared by a password manager or security tool
- Some remote desktop software has clipboard limitations
Paste includes unwanted formatting
- Use Ctrl+Shift+V to paste as plain text
- Paste into Notepad first to strip formatting, then copy again from there
- Or paste into ClipboardSyncer which stores plain text by default
Clipboard stops working entirely
- On Windows: an app might have locked the clipboard. Close recently opened programs and try again
- Restart Windows Explorer (Task Manager > Restart explorer.exe)
- On Mac: run
pbcopy < /dev/nullin Terminal to clear the clipboard process - Restart your computer as a last resort
Accidentally copied over important text
- If you have Win+V clipboard history enabled, check there immediately
- If you were using an app with undo (Ctrl+Z), undo in the source application might restore the selected text
- If neither works, the text is gone. Consider using clipboard history tools to prevent this in the future
FAQ
Where does copied text go on a computer?
It goes into a temporary memory buffer in RAM, managed by the operating system. There's no file or folder for it. The data stays in memory until you copy something else (overwriting it) or shut down (erasing it).
Why does my clipboard only hold one thing at a time?
The standard system clipboard is designed as a single slot for simplicity and compatibility. Windows offers clipboard history (Win+V) that tracks your last 25 items, and ChromeOS saves 5 items (Search+V). macOS has no built-in history.
Can I recover something I accidentally copied over?
Only if you had clipboard history enabled before it happened. On Windows, check Win+V. On ChromeOS, check Search+V. On Mac, there's no recovery without a third-party clipboard manager. Once overwritten without history enabled, the content is gone.
Does the clipboard work the same on phones?
Conceptually yes, but with differences. Android keyboards (Gboard, Samsung Keyboard) often include clipboard history. iOS has no history at all. Both platforms clear the clipboard after some time for privacy. The interaction is long-press based rather than keyboard shortcut based.
What is an online clipboard?
An online clipboard is a web-based tool that stores text in your browser or syncs it between devices via the internet. Unlike the system clipboard, it persists after restart and works across different devices. ClipboardSyncer is an example that combines persistent storage with real-time device sync.