One thing in common across all systems is that keyboard shortcuts such as CtrlC are not system-level – they are handled by each program individually, just like the "Copy" or "Paste" menu items are specific to each program. So it's not the OS itself that "copies" something, but rather it's the app (Word) that uses some OS-specific function to put data in the global clipboard.

Windows

In Windows the clipboard API and storage buffer are provided by the OS at kernel level. (The clipboard belongs to the "window station" kernel object.)

  • When you "copy" something, the program will store the "copied" data using the Win32 API function SetClipboardData(), which also corresponds to NtUserSetClipboardData() in the Native API.

    Normally the copied data is immediately stored in the OS-managed clipboard buffer and no longer depends on the source program. The program can provide several different formats – e.g. text copied from Word can simultaneously come in HTML, RTF, and plain-text formats in addition to Word's own format.

    However, the program may store 'null' data and defer conversion until a paste is requested using WM_RENDERFORMAT, e.g. if the copied data is large. In this case the data is lost when the program is closed. You might've seen Word or Photoshop ask about this when exiting the program.

    (Note that when you "cut" or "copy" a whole file through Explorer, this doesn't put the entire file's contents in the clipboard, but only a file reference that Explorer itself will understand when it's pasted.)

  • When you ask the program to "paste", the program chooses the desired format and retrieves it using GetClipboardData(). Some programs, e.g. WordPad or Paint, have a "Paste as" feature that lets you choose the preferred format (e.g. if you copied from a web browser but want to paste without formatting).

See also the blog post "NT Debugging: How the clipboard works".

Linux, BSD, Solaris, OpenVMS

In Linux and other similar systems, the clipboard is provided by the graphical environment you're using (that is, an X11 server or a Wayland compositor) – there is no shared clipboard for programs running outside such an environment.

X11

X11 handles the clipboard a little bit differently – the X server doesn't provide storage at all, it only facilitates communications between the copy-source program (which announces that it has something "copied") and the paste-target program.

Both the initial "copy" announcement and the later "paste" transfer are done via X11 messages according to the ICCCM protocol. (Each X display therefore has a separate clipboard

  • Upon pressing CtrlC, the source program will keep track of "copied" data in its own memory and will claim ownership of the X11 "selection" called 'CLIPBOARD', which is done using XSetSelectionOwner().

    This ownership is tracked centrally by the X server (e.g. Xorg). Whenever you "copy" something new, the previous app that owned the 'CLIPBOARD' selection is informed about losing its ownership so that it can discard the now-unneeded data.

    Because clipboard transfer is always deferred, the copied data is usually lost as soon as you close the "source" program (unless you're running a "clipboard manager" which proactively stores everything that is copied). So if you copy something from Firefox and then close Firefox, you cannot paste it anymore.

  • When pasting, the program will look up the current owner of the 'CLIPBOARD' selection using XGetSelectionOwner(). Similar to Windows, it is possible for X11 clipboard to hold data in several alternative types so the destination program will ask the source for the preferred type using XConvertSelection().

    (Usually a special type named 'TARGETS' is available, which has the source program return an ASCII list of data types that are currently available.)

See this link for a practical example.

Note: When you "copy" text by selecting it and paste it using middle-click, the mechanism is the same but the 'PRIMARY' selection is used instead. This is where the term 'X11 selection' comes from.

Wayland

I don't actually understand how it works in Wayland, all I have is the protocol docs:

  • https://wayland.freedesktop.org/docs/html/ch04.html#sect-Protocol-data-sharing

  • https://wayland.freedesktop.org/docs/html/apa.html#protocol-spec-wl_data_device

  • See https://github.com/bugaevc/wl-clipboard for a command-line tool.

Non-graphical programs

Traditional text editors (Vim, emacs, nano) often have their own internal clipboards (aka registers/killrings).

Terminal-based apps may access X11 or Wayland clipboards if running inside a graphical terminal emulator, e.g. Vim's "+ register will paste from the X11 clipboard (whereas other Vim registers are internal to the program).

macOS (Mac OS X)

In macOS, something called a "pasteboard server" appears to be used (which I think means that programs communicate with it through Mach APIs). Other than that, it behaves like the Windows clipboard and stores the currently copied data itself.

  • https://developer.apple.com/documentation/appkit/nspasteboard

  • There is a sample application: https://developer.apple.com/library/archive/samplecode/ClipboardViewer/Introduction/Intro.html

I'm more intrigued with images, how can they be copied so easily

There is nothing special about images – they're still just chunks of binary data that can be represented as bytes, so if they can be saved in a file (e.g. in PNG or JPEG format), they can also be stored in the clipboard using the same format.

Windows apps typically store copied images in BMP/DIB formats (the same as in a .bmp file), while on Linux it is common for apps to offer PNG (i.e. "image/png" target).

🌐
Microsoft Community Hub
techcommunity.microsoft.com › microsoft community hub › communities › products › windows › windows 10
Ctrl + C and Ctrl + V stopped working | Microsoft Community Hub
After working perfectly for years usin my Lenovo laptop, now when I try to copy or paste using the keyboard shortcuts they do not work. For instance Ctrl +V ends up simply as "v" not what I was trying to paste.
Top answer
1 of 1
169

One thing in common across all systems is that keyboard shortcuts such as CtrlC are not system-level – they are handled by each program individually, just like the "Copy" or "Paste" menu items are specific to each program. So it's not the OS itself that "copies" something, but rather it's the app (Word) that uses some OS-specific function to put data in the global clipboard.

Windows

In Windows the clipboard API and storage buffer are provided by the OS at kernel level. (The clipboard belongs to the "window station" kernel object.)

  • When you "copy" something, the program will store the "copied" data using the Win32 API function SetClipboardData(), which also corresponds to NtUserSetClipboardData() in the Native API.

    Normally the copied data is immediately stored in the OS-managed clipboard buffer and no longer depends on the source program. The program can provide several different formats – e.g. text copied from Word can simultaneously come in HTML, RTF, and plain-text formats in addition to Word's own format.

    However, the program may store 'null' data and defer conversion until a paste is requested using WM_RENDERFORMAT, e.g. if the copied data is large. In this case the data is lost when the program is closed. You might've seen Word or Photoshop ask about this when exiting the program.

    (Note that when you "cut" or "copy" a whole file through Explorer, this doesn't put the entire file's contents in the clipboard, but only a file reference that Explorer itself will understand when it's pasted.)

  • When you ask the program to "paste", the program chooses the desired format and retrieves it using GetClipboardData(). Some programs, e.g. WordPad or Paint, have a "Paste as" feature that lets you choose the preferred format (e.g. if you copied from a web browser but want to paste without formatting).

See also the blog post "NT Debugging: How the clipboard works".

Linux, BSD, Solaris, OpenVMS

In Linux and other similar systems, the clipboard is provided by the graphical environment you're using (that is, an X11 server or a Wayland compositor) – there is no shared clipboard for programs running outside such an environment.

X11

X11 handles the clipboard a little bit differently – the X server doesn't provide storage at all, it only facilitates communications between the copy-source program (which announces that it has something "copied") and the paste-target program.

Both the initial "copy" announcement and the later "paste" transfer are done via X11 messages according to the ICCCM protocol. (Each X display therefore has a separate clipboard

  • Upon pressing CtrlC, the source program will keep track of "copied" data in its own memory and will claim ownership of the X11 "selection" called 'CLIPBOARD', which is done using XSetSelectionOwner().

    This ownership is tracked centrally by the X server (e.g. Xorg). Whenever you "copy" something new, the previous app that owned the 'CLIPBOARD' selection is informed about losing its ownership so that it can discard the now-unneeded data.

    Because clipboard transfer is always deferred, the copied data is usually lost as soon as you close the "source" program (unless you're running a "clipboard manager" which proactively stores everything that is copied). So if you copy something from Firefox and then close Firefox, you cannot paste it anymore.

  • When pasting, the program will look up the current owner of the 'CLIPBOARD' selection using XGetSelectionOwner(). Similar to Windows, it is possible for X11 clipboard to hold data in several alternative types so the destination program will ask the source for the preferred type using XConvertSelection().

    (Usually a special type named 'TARGETS' is available, which has the source program return an ASCII list of data types that are currently available.)

See this link for a practical example.

Note: When you "copy" text by selecting it and paste it using middle-click, the mechanism is the same but the 'PRIMARY' selection is used instead. This is where the term 'X11 selection' comes from.

Wayland

I don't actually understand how it works in Wayland, all I have is the protocol docs:

  • https://wayland.freedesktop.org/docs/html/ch04.html#sect-Protocol-data-sharing

  • https://wayland.freedesktop.org/docs/html/apa.html#protocol-spec-wl_data_device

  • See https://github.com/bugaevc/wl-clipboard for a command-line tool.

Non-graphical programs

Traditional text editors (Vim, emacs, nano) often have their own internal clipboards (aka registers/killrings).

Terminal-based apps may access X11 or Wayland clipboards if running inside a graphical terminal emulator, e.g. Vim's "+ register will paste from the X11 clipboard (whereas other Vim registers are internal to the program).

macOS (Mac OS X)

In macOS, something called a "pasteboard server" appears to be used (which I think means that programs communicate with it through Mach APIs). Other than that, it behaves like the Windows clipboard and stores the currently copied data itself.

  • https://developer.apple.com/documentation/appkit/nspasteboard

  • There is a sample application: https://developer.apple.com/library/archive/samplecode/ClipboardViewer/Introduction/Intro.html

I'm more intrigued with images, how can they be copied so easily

There is nothing special about images – they're still just chunks of binary data that can be represented as bytes, so if they can be saved in a file (e.g. in PNG or JPEG format), they can also be stored in the clipboard using the same format.

Windows apps typically store copied images in BMP/DIB formats (the same as in a .bmp file), while on Linux it is common for apps to offer PNG (i.e. "image/png" target).

🌐
Graham Chastney
grahamchastney.com › 2008 › 11 › 07 › my-tools-keyboard-shortcuts-ctrlx-ctrlc-and-ctrlv
My Tools: Keyboard Shortcuts Ctrl+X, Ctrl+C and Ctrl+V – Graham Chastney
November 7, 2008 - I feel a little embarrassed writing ... what people don’t know. So for those of you who didn’t know: Ctrl+X is Cut Ctrl+C is Copy Ctrl+V is Paste The first ......
🌐
Quora
quora.com › Is-there-one-key-instead-of-Ctrl-C-or-Ctrl-V
Is there one key instead of Ctrl+C or Ctrl+V? - Quora
Answer (1 of 2): Use an add-in utility or one included with your operating system to redefine a keystroke as “Copy” and another as “Paste.” In many operating systems, you can also use Ctrl+ for Copy and Shift+ for Paste. I preferred that, but some notebook keyboards no longer hav...
🌐
Apple Community
discussions.apple.com › thread › 1591594
ctrl C and ctrl V - Apple Community
I have lived too long in the Windows world. But, without even thinking about it, I use ctrl C for copying and ctrl V for pasting. The keys are just the right distance apart to make this easy. On my Intel MacBook, I have to use the Apple key and either C or V to copy and paste.
🌐
Reddit
reddit.com › r/southpaws › alternative to ctrl+c, ctrl+v, ctrl+x
r/southpaws on Reddit: Alternative to Ctrl+C, Ctrl+V, Ctrl+X
June 24, 2012 -

I've recently realised how many people don't actually know these rather archaic keyboard shortcuts - I find them a hell of a lot more comfortable to use compared to Ctrl+C, Ctrl+V, particularly when I have my mouse in my left hand:

  • Ctrl+Insert instead of Ctrl+C

  • Shift+Insert instead of Ctrl+V

  • Shift+Delete instead of Ctrl+X

Unfortunately, (Correct me if I'm wrong) I'm pretty sure this won't work on a Mac even if you have a PC keyboard connected.

Find elsewhere
🌐
Reddit
reddit.com › r/lifeprotips › lpt we all know about ctrl + c, ctrl + v. but how about win + v instead of ctrl + v. it brings up the clippboard and lets you paste anything that has been copied previously. super useful when copypasting different stuff multiple times.
r/LifeProTips on Reddit: LPT we all know about CTRL + C, CTRL + V. But how about WIN + V instead of CTRL + V. It brings up the clippboard and lets you paste anything that has been copied previously. Super useful when copypasting different stuff multiple times.
February 20, 2021 - Ctrl+PageUp / Ctrl+PageDown does the same! Without switching tabs in most recent order. ... Side note that shift+win+S will bring up a little dim area and you can select which part of the screen you want to screenshot, you can clip it to any size you like ... ALT+Print Screen to grab the active window instead of everything on your monitors. ... I learned this last year and it is the most used hotkeys on my keyboard, I was even going to comment about it here.
🌐
GeeksforGeeks
geeksforgeeks.org › techtips › fix-ctrl-c-ctrl-v-not-working-in-windows
How to Fix Ctrl+C and Ctrl+V Not Working in Windows - GeeksforGeeks
July 23, 2025 - Sometimes there is a possibility that a third-party applications prevent the functioning the keyboard shortcut keys. You can disable the recently installed software which is causing this issue. Follow these simple steps to solve the issue: Press Ctrl + Shift + Esc to open Task Manger or go to Start Menu and search for Task Manager.
🌐
Lenovo
lenovo.com › home
Ctrl C: What is Control C? Can I Customize the Keyboard Shortcut? | Lenovo US
Some items in your cart are no longer available. Please visit cart for more details. ... Please review your cart as items have changed. ... Ctrl C is a keyboard shortcut that allows you to copy selected text or images to your clipboard.
🌐
Waveshare
waveshare.com › rp2040-keyboard-3.htm
Ctrl C/V Shortcut Keyboard For Programmers, 3-Key Development Board, Adopts RP2040 Microcontroller Chip | RP2040-Keyboard-3
Ctrl C/V Shortcut Keyboard For Programmers, 3-Key Development Board, Adopts RP2040 Microcontroller Chip, Programmable Key Function, Dual Type-C Ports, Plug And play Without Driver
🌐
Microsoft Learn
learn.microsoft.com › en-us › answers › questions › 3834481 › ctrl-c-and-ctrl-v-on-keyboard
CTRL + c and CTRL + v on keyboard - Microsoft Q&A
I have an external keyboard attached to my laptop using Windows 10. Somehow I must have hit something on my keyboard because now when I highlight a line and use CTRL + C it does remove that line but replaces it with a c. same thing with a CTRL + V, replaces it with a v.
🌐
Apple Community
discussions.apple.com › thread › 252394589
Windows Shortcuts - Ctrl C and Ctrl V - Apple Community
I believe that you’ll find that the equivalent key combinations are actually Cmd-C and Cmd-V. ... When using an external keyboard with iOS/iPadOS, Ctrl-C (Copy) and Ctrl-V (Paste) are supported by the OS.
🌐
Computer Hope
computerhope.com › jargon › c › ctrl-v.htm
What Does Ctrl+V Do?
Alternatively written as Control+V and C-v, ^v, Ctrl+V is a keyboard shortcut most commonly used to paste text or other objects from the clipboard.
🌐
Reddit
reddit.com › r/computers › ctrl-c and ctrl-v don´t work in just one of my keyboards
r/computers on Reddit: CTRL-C and CTRL-V don´t work in just one of my keyboards
January 12, 2024 -

I have a notebook and two external keyboards, a bluetooth one and a wired one.

JUST the bluetooth keyboard is having this problem: both CTRL-C and CTRL-V do not work. The C, V, and even the CTRL keys work separately (for example, CTRL-A, CTRL-N work fine). The same combo works with the notebook keyboard and the wired keyboard. I tested the keyboard on another computer and the same thing happened: the keyboard doesn’t allow CTRL-C and CTRL-V on another computer as well.

What could it be? Does it make sense for the key combination to "break"?

🌐
Lenovo
lenovo.com › home
CTRL V: What is a Ctrl+V | How do I use Ctrl+V | Lenovo US
Ctrl+V is used to quickly copy or move data from one place to another. When you press Ctrl + V on your keyboard, the highlighted content will be copied and placed where your cursor is located, enabling quick transfer of text or other items.
🌐
PCMAG
pcmag.com › home › encyclopedia
Definition of Ctrl-V | PCMag
(ConTRoL-V) In Windows, holding down the Ctrl key and pressing the V key pastes the contents of the clipboard into the current cursor location. The Mac equivalent is Command-V.