Short answer: to send code snippets between devices instantly, paste them into copy-paste.online on one machine and copy them on the other – indentation and special characters are kept as plain text. From a Linux terminal you can send output directly with the cpy command or the API.
From a browser
- Copy the snippet in your editor.
- Paste it at copy-paste.online – the box keeps tabs, spaces and line breaks.
- Open the site on the other computer (same network) or enter the code.
- Copy and paste into your IDE or terminal.
From the command line
Install the cpy command on Linux to push a file or command output to your clipboard, or call the Copy-paste.online API from scripts. Useful when you are on a server over SSH and want a log excerpt on your laptop.
Developer tips
- Never paste API keys, passwords or tokens into any online clipboard – everyone on a shared network sees the same board.
- Need to embed data in JSON or a URL? Use the Base64 encoder or URL encoder.
- Shrink a stylesheet or script before sending: CSS minifier, JS minifier.
Formatting questions? See copy and paste without losing formatting.
