Analytics cookies only (Google Analytics, PostHog). No ad networks, no cross-site tracking. See our privacy policy.
Self-host wastebin
updated Nov 2026deployed by usprices checked · Jul 2026Install verified on Ubuntu 26.04 · Nov 2026 · how we test
We earn commissions when you shop through the links below. Full disclosure →
A minimal pastebin written in Rust: a single binary on an SQLite database that compresses pastes with zstd, highlights more than 170 languages, renders Markdown and shows a QR code for the paste URL. Pastes can expire, burn after reading or be encrypted with a password, and the web UI ships nine colour themes. It has no user accounts, so put it on a private network or behind a rate-limiting proxy.
Pick wastebin when you want the smallest pastebin that still highlights code well: it is one Rust binary on an SQLite database, compresses pastes with zstd, highlights more than 170 languages, renders Markdown and shows a QR code for each paste, with nine colour themes. Pastes can expire, burn after reading, or be encrypted with a password (ChaCha20Poly1305 with an argon2-hashed password). It is MIT-licensed and the Docker image is built from scratch. Our snippet is the README's Compose example with the image pinned to 3.9.0 (released 2026-10-15), the data directory owned by your own user, and the signing key and password salt generated into `.env`. We did not find an upstream RAM minimum, so our 64 MB floor is an estimate. In the catalog, MicroBin also takes file uploads and has an admin page, PrivateBin encrypts pastes in the browser so the server never sees the text, and Opengist keeps every snippet as a Git repository; wastebin lists arbitrary file uploads and user authentication as things it does not do.
What you need
Any VPS with at least 64 MB of RAM
A domain you control — most self-hosted setups need HTTPS in front of them
Wastebin's README flags these before you rely on it:
non-negotiableThere is no authentication and no admin interface, and the README's caution says not to run it facing the internet as is: it lacks DoS mitigations too, so rate limit inbound requests with iptables or a reverse proxy. Anyone who can reach port 8088 can create pastes.
non-negotiableThe password option encrypts a paste on the server, using WASTEBIN_PASSWORD_SALT for hashing; the default salt is somesalt, so our snippet generates one into .env. Unprotected pastes are stored as zstd-compressed text, not encrypted. PrivateBin encrypts in the browser instead.
non-negotiableWithout WASTEBIN_SIGNING_KEY a random key is generated at each start, which invalidates cookies and stops paste creators from deleting their pastes after a restart. Our snippet sets a fixed key, which must be at least 64 bytes; keep .env out of version control.
non-negotiableThe image is built from scratch and the database lives in ./data (/data/state.db). The README says the folder must be writable by the container user, so we run as your uid and gid. Back that folder up. If migrations fail with an extended sqlite error code 6410, the README says to set TMPDIR to a location sqlite can write to.
non-negotiableThe default maximum request body is 1 MB (WASTEBIN_MAX_BODY_SIZE), which caps paste size, and the default request timeout is 5 seconds. Port 8088 serves plain HTTP, so add TLS in front.