Free online pastebin for code, logs & text
Paste code online and share it instantly. Syntax highlighting for 20+ languages, password protection, burn-after-read and a one-line CLI.
Everything you need, nothing you don't
Syntax highlighting
20+ languages, detected automatically. Click line numbers to highlight and share lines.
Password protection
Generate a one-time password so only the people you choose can read it.
Burn after read
Self-destructing pastes for secrets and one-off messages.
Auto-expiry
Pastes disappear after 1 day up to 1 year. Nothing lives forever.
Paste from your terminal
cat error.log | curl --data-binary @- https://copyandpaste.at/api/logBrowser extension
Share selected text or the current page in one click.
Frequently asked questions
Is CopyAndPaste free to use?+
Yes, CopyAndPaste is a completely free online pastebin. No signup or registration required. Just paste your code and share the link.
How long do pastes last?+
You can set paste expiration from 1 day to 1 year. The default is 30 days. After expiration, pastes are automatically deleted.
What programming languages are supported?+
CopyAndPaste supports syntax highlighting for over 20 languages including JavaScript, TypeScript, Python, Go, Rust, Java, C/C++, PHP, Ruby, Kotlin, Swift, SQL, YAML, Bash, and more. The language is detected automatically.
Can I protect my paste with a password?+
Yes, enable password protection when creating a paste. A random password is generated and shown to you once. Only people with the password can view the paste.
What is burn-after-read?+
Burn-after-read automatically deletes a paste after it has been viewed once by the recipient. The creator can view it multiple times, but the first external viewer triggers deletion.
Is there an API for CopyAndPaste?+
Yes! Paste directly from your terminal by piping content to our API: cat error.log | curl --data-binary @- https://copyandpaste.at/api/log