windows-clipboard
February 1, 2026 ยท View on GitHub
Access the Windows clipboard (copy/paste)
With full UTF-8 support.
Install
Download the binaries and put them somewhere in your %path%.
Usage
$ clipboard --copy < echo unicorn
$ clipboard --paste
unicorn
Important
When piping into clipboard --copy, stdin must be UTF-8.
In CMD, run chcp 65001 first.
In Windows PowerShell, set $OutputEncoding = [System.Text.Encoding]::UTF8.
If your shell emits non-UTF-8, use clip.exe (CMD) or Set-Clipboard (PowerShell) instead.
Build
Install Rust and run:
cargo build --release
Related
- clipboardy - Access the system clipboard from Node.js, cross-platform
- clipboard-cli - Access the system clipboard from the command-line, cross-platform