Relic
Get Relic free
Copy and paste across devices

Pastebin alternatives, by what you actually need

Pastebin is quick, but the default is public, and public means scraped. If you paste anything you would not post on a billboard, a different tool fits better. This is a Pastebin alternative for each real need: code you want kept, a secret meant for one person, or a paste that vanishes on its own.

Jordan Gibbs July 10, 2026 7 min readUpdated September 12, 2026

What is the best Pastebin alternative?

It depends on what you are protecting. For code you want to keep and edit, use a GitHub Gist. For a paste only your recipient can read, use PrivateBin or an encrypted one-time note. For something that should disappear on its own, use an ephemeral host like 0x0.st. For work data, use your team’s own tools.

Pastebin has been the reflex for two decades. You dump some text, you get a link, you send the link. That is genuinely useful, and for throwaway snippets that were never sensitive, it is fine. The trouble starts when people treat it as a private drop box, which it was never built to be. A public paste is indexed, crawlable, and fair game for scrapers. If you have ever pasted a config file, a stack trace with a token in it, or a chunk of a private repo, it may not have stayed as private as it felt.

There is now a right tool for each version of the job. Below is why people move off Pastebin, then the alternatives grouped by what you actually need, with the trade-offs stated plainly rather than a leaderboard. Each one earns its place by being better at a specific thing than Pastebin is.

Why do people leave Pastebin?

The reasons cluster into four honest complaints, and each one points at a different replacement.

The single most important habit: never paste a live secret into anything public, even “just for a minute.” If a credential touches a public paste, treat it as compromised and rotate it. That rule holds no matter which tool you pick below.

For code you want to keep: GitHub Gist

If the thing you are pasting is code, and you might want it again, a GitHub Gistis the natural home. A gist is a small Git repository, so every edit is versioned and you can view the full commit history. Gists can be public, which means they show up in GitHub’s Discover feed and are searchable, or secret. GitHub spells out what secret buys you: a secret gist stays out of Discover and out of search, but it is not private, and anyone who gets hold of the URL can read it. So “secret” here means unlisted, not encrypted.

The trade-off is that a gist ties the snippet to your GitHub account and is not designed to disappear. That is exactly what you want for a reusable snippet or a bug reproduction you will reference again, and exactly what you do not want for a one-time secret. Reach for gists when the value is in keeping the code, not hiding it.

For genuinely private pastes: PrivateBin

PrivateBin is the reference point for private pasting. It is open source, and the server stores only ciphertext: the paste is encrypted and decrypted in your browser with 256-bit AES in Galois Counter mode, and the key sits in the part of the URL after the # symbol, which browsers do not send to the server. The operator of the instance cannot read your paste. Expiry times and a burn-after-reading option are built in, and each instance decides which ones it offers.

The catch is trust and effort. You are relying on whoever runs that PrivateBin instance to run the real, unmodified software, so the strongest setup is to self-host your own. If you have a server and want a private pastebin you fully control, PrivateBin is the answer. If you do not, a hosted instance is still a large improvement over a public paste, as long as you trust the operator.

For something that vanishes: 0x0.st and ephemeral hosts

Sometimes you do not need encryption, you need the paste to not stick around. Minimalist services like 0x0.st and similar temporary file hosts let you push text or a file from the command line and get a short URL back. How long it lasts depends on how big it is: uploads live at least 30 days and at most a year, the largest files expire soonest, and the ceiling is 512 MiB. No account, no ceremony.

These are excellent for a log you need a colleague to glance at in the next hour, and a poor fit for anything secret, because the link is still an unauthenticated public URL for as long as it lives. Use them as a fast, disposable drop. Read each service’s retention and acceptable-use rules before leaning on it, since small hosts change or disappear.

Where should you paste work code and logs?

If the paste only ever needs to reach coworkers, the safest place is usually somewhere the public internet cannot reach at all. Most teams already run one: a self-hosted GitLab or Gitea with its own snippets feature, an internal wiki, or a private channel in your chat tool. Access is tied to your existing accounts and permissions, and nothing leaks to a public URL.

It is less convenient than a one-click public paste, which is precisely the point. For work data, the extra step of putting it behind your company’s login is what keeps it safe, and that is worth the friction.

For a one-time secret or quick scratch: Relic’s free tools

Two of the free tools we built cover the two cases Pastebin handles worst. Neither needs an account.

A secret for exactly one person

When the thing you are sharing is a password, an API key or a private message, use a one-time note instead of a paste. Our private note tool encrypts the text in your browser with AES-256, uploads only the ciphertext, and puts the key in the link fragment so it never reaches the server. The link opens once, then the note is deleted. It is the same encrypt-on-your-device, key-in-the-fragment model as PrivateBin, with nothing to set up. If it is specifically a password you are moving, how to send a password securely compares the safe methods.

A scratchpad that never leaves your machine

If you were only using Pastebin as a place to park text for yourself, you do not need a URL at all. Our online notepad auto-saves to your own browser and never sends the text anywhere, so it survives a refresh without ever touching a server. It is the local-only version of a scratch paste.

How do the alternatives compare?

Match the row to what you are protecting. Encryption means the operator cannot read the content. Expiry control means you decide when it is gone. Self-hostable means you can run it yourself and trust no one else.

Private notePrivateBinGitHub Gist0x0.stPastebin
Encrypted (operator can't read)YesYesNoNoNo
Expiry / burn controlYesYesNoPartialPartial
Self-hostableNoYesNoYesNo
No account neededYesYesNoYesYes
Best forOne-time secretPrivate pasteReusable codeDisposable dropPublic snippet

Which Pastebin alternative should you use?

  • Reusable code or a bug repro: a GitHub Gist, secret if it should not be listed.
  • A private paste you fully control: self-hosted PrivateBin.
  • A password or key for one person, once: an encrypted one-time note.
  • A log to glance at and forget: an ephemeral host like 0x0.st.
  • Anything work-related: your team’s internal wiki or snippet store.
  • Truly public sharing: Pastebin is still fine. Just never for secrets.

The one line to remember: let what you are protecting pick the tool for you. Public paste sites are great at being public. For everything else, one of the options above fits better.

Sources

Written by
Jordan GibbsFounder, Relic

Jordan Gibbs is the founder of Relic, an end-to-end encrypted, permanent, searchable memory for everything you copy. He writes widely about AI, agents, and practical tooling on Medium, where he is read by tens of thousands, and builds privacy-first software. Here he covers how everyday tools like the clipboard actually work, and how to use them without handing your data to someone else.

MediumGitHubLinkedIn
Part of
Copy and paste across devices
Keep reading
Pillar·8 min

How to copy and paste between your phone and computer

You copy a link on your phone and want it on your laptop, or the other way around. The real ways to move text between phone and computer, on every platform pairing.

Read
7 min

LocalSend vs KDE Connect vs Quick Share

A side-by-side look at three free ways to move files between phone and computer: platforms, iPhone support, same-Wi-Fi rules, clipboard sharing, and where each one falls down.

Read
6 min

Can you AirDrop to Android?

Google's Quick Share can now send to and receive from an iPhone's AirDrop on newer Pixel, Galaxy, OnePlus, OPPO and other phones. Which ones work, the steps both ways, and what to use if yours is left out.

Read
privacysecuritycomparison