FOSS Face-Off: PrivateBin vs MicroBin vs Yopass — Best Open Source Pastebin Compared
Sooner or later everyone needs to hand a file or a password to someone else, or keep a snippet somewhere that is not a chat window. A public pastebin will happily take it, and then keep it forever. That is the gap the self-hosted pastebins fill: you run the service, you decide how long a paste lives, and in the best cases the server cannot read what it stores. Three projects dominate that niche, and they solve it in three different ways.
1. PrivateBin — Zero-Knowledge by Default
PrivateBin is the reference implementation of the idea: the browser encrypts the paste with 256-bit AES before it is sent, the decryption key never leaves the URL fragment, and the server stores ciphertext it has no way to open. The project has been around for years, is written in PHP and JavaScript, and will run on the cheapest shared hosting or in a container.
- Encryption: client-side, zero-knowledge by design — the server operator cannot read a paste, not even as an administrator
- Retention: expiry times plus burn-after-reading, and the burned paste is deleted on first retrieval
- Extras: optional passwords on top of the link key, optional comment discussions, file and text attachments
- Storage: files, SQLite, MySQL or PostgreSQL, chosen at install time
- Current release: 2.1.1 (November 2026), Zlib licence
2. MicroBin — The All-in-One Rust Binary
MicroBin packs three tools into one small Rust binary: pastes, file uploads and a URL shortener, all behind the same interface. It is the pragmatic choice when you want one service for everything short-lived, and it ships with a Docker image that starts in seconds.
- Encryption: storage is server-side, so the instance holds the plaintext of a paste unless you protect it — this is the opposite trade-off to PrivateBin
- Retention: per-paste expiry, burn-after-read, and a configurable maximum size for uploads
- Extras: URL shortening, file uploads, syntax highlighting, an optional admin mode with a password
- Storage: SQLite or JSON files, which makes it trivial to back up
- Current release: 2.1.0 (January 2026), BSD-3-Clause licence
3. Yopass — Built for One-Time Secrets
Yopass is narrower on purpose. It is not a pastebin for code snippets; it is a way to send a password, an API key or a small file to one person, once. The secret is encrypted in the browser, stored on the server, and destroyed after the first download or when the timer runs out. That single-use behaviour is what makes it safe to drop a credential into a chat window.
- Encryption: client-side, with the decryption key carried in the link rather than sent to the server
- Retention: one-time retrieval, plus a configurable expiration window and a maximum secret length
- Extras: a command-line client for both sending and receiving, which suits scripts and CI jobs
- Backends: Redis, Memcached or in-memory storage, with container and Kubernetes deployment
- Current release: 16.1.0 (November 2026), Apache-2.0 licence, with a Rust server rewrite in testing
Head-to-Head
- Encryption model: PrivateBin and Yopass encrypt in the browser, so the server is blind. MicroBin stores on the server side, which is faster to search and easier to administer, and correspondingly less private.
- Expiry and burn: all three expire pastes, and all three can destroy a paste on first read. Yopass makes single use the whole point rather than an option.
- Size limits: each instance sets its own ceiling — PrivateBin through its size limit setting, MicroBin through the upload limit, Yopass through the maximum secret length. Ask the operator of the instance you use.
- API and CLI: Yopass is the only one of the three with a first-class command-line client, which matters if secrets are moving between machines rather than between people.
- Deployment weight: MicroBin is a single static-ish binary and the lightest to run. PrivateBin needs PHP and a web server. Yopass needs a Go or Rust binary plus a Redis or Memcached backend for anything beyond a single instance.
- Accounts and multi-user: none of the three is a collaboration tool. PrivateBin has the richest set of sharing options through discussions and passwords, and MicroBin has an admin mode; Yopass deliberately has no notion of users at all.
Which One Should You Pick?
- Choose PrivateBin if the paste must stay unreadable to the server — internal notes, credentials in transit, anything where “trust me” is not good enough. It is the safest default and the easiest to explain to a colleague.
- Choose MicroBin if you want pastes, file drops and short links in one small service and you control who reaches the instance. Do not put secrets in it.
- Choose Yopass if the job is specifically sending a password or key that should be readable exactly once. Nothing else in this comparison does that as cleanly.
The Bottom Line
These three are not really competitors: they are three points on a line between convenience and confidentiality. PrivateBin is the one to host by default, Yopass is the one to keep for credentials, and MicroBin is the one to reach for when you want a lightweight multi-tool. Running all three is not unreasonable — they are small, and together they cover the whole job.
Browse the rest of the collection at the full directory, or submit a tool we have missed.