Skip to content

Best Self-Hosted Pastebin Tools

Self-hosted pastebins replace Pastebin.com and GitHub Gist with a place to share snippets that you own. The six picks differ mainly in who can read a paste and how you submit one. PrivateBin encrypts and decrypts in the browser, so the server holds only ciphertext. MicroBin and wastebin are single Rust binaries: MicroBin also takes file uploads and has an admin page, while wastebin focuses on code with syntax highlighting for over 170 languages and Markdown rendering, and can encrypt a paste with a password. rustypaste is a Rust file and paste server for the command line: you POST with curl, it has no database or web editor, and it supports expiring and one-shot links. Opengist is the Gist replacement, where every snippet is a Git repository you can clone and push to, with revisions and search. Pastefy is a Gist-like site with folders, forks and rendered previews for Markdown, Mermaid, CSV and more, and it needs a MariaDB or MySQL database. Choose PrivateBin for sensitive text, Opengist for snippets you want to keep and version, Pastefy for a fuller Gist-style site, rustypaste for scripts, and MicroBin or wastebin for quick sharing on a small server; the catalog gives the five smaller picks a RAM floor of 256 MB or less and Pastefy 1024 MB. None should be left open on the internet unmanaged: wastebin's README warns that it has no authentication, rustypaste has none until you set an auth token, and Pastefy accepts anonymous pastes until you configure a login provider, so rate limit them or keep them private, and put TLS in front of all of them.

We earn commissions when you shop through the links below. Full disclosure →

Pastebin apps

Pastebin

MicroBin

A small, self-contained pastebin and file-sharing server: paste text or upload a file, get a short link, optionally with an expiry, a password, client-side end-to-end encryption or a burn-after-reading limit. A single Rust binary with a built-in admin page.
Rust
easyRead guide →
Pastebin

Opengist

A self-hosted pastebin powered by Git: every snippet is a Git repository you can clone and push to over HTTP or SSH, with revisions, search and embeds, as an open-source alternative to GitHub Gist.
GoGit
easyRead guide →
Pastebin

Pastefy

An open-source alternative to GitHub Gist and Pastebin: paste code or text, fork pastes, copy or fetch the raw text, and organise them in folders when signed in. It renders previews for Markdown, Mermaid, SVG, CSV, GeoJSON, diff, calendar and Asciinema files, has a documented API and editor extensions, and accepts anonymous pastes unless you require login. A Java backend with a Vue frontend that needs a MySQL or MariaDB database.
JavaVueMariaDB
easyRead guide →
Pastebin

PrivateBin

A minimalist pastebin where pastes are encrypted and decrypted in the browser with 256-bit AES, so the server has zero knowledge of the pasted data. Supports expiring and burn-after-reading pastes, discussions and optional file uploads.
PHPJavaScript
easyRead guide →
Pastebin

rustypaste

A minimal file and paste server driven by curl: POST a file or a URL and it returns a link, with pet-name or alphanumeric random file names, expiring and one-shot links, password-protected files, MIME blacklisting and an optional list and delete endpoint. It has no database, since the filesystem is the store, and its configuration hot-reloads. A single Rust binary with an optional auth token and a command-line client.
Rust
easyRead guide →
Pastebin

wastebin

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.
RustSQLite
easyRead guide →
Where to host itaffiliate disclosure
Kamaterafree trial
From $4/mo · 1 vCPU / 1 GB / 20 GB · US + EU + Asia
Start free on Kamatera → (opens in new tab)
DigitalOceanalso works on
From $6/mo · 1 vCPU / 1 GB / 25 GB · US + EU + Asia
Deploy on DigitalOcean → (opens in new tab)

Paid link — we earn a commission if you shop through it.

Common questions

How much RAM do self-hosted apps in Pastebin need?

Across the 6 apps in Pastebin, minimums run from 64 MB (MicroBin) to 1024 MB (Pastefy).

Which app in Pastebin uses the least RAM?

Of the 6 apps in Pastebin we measured, rustypaste used the least: 3 MB at idle (first boot, measured Nov 2026).

Do self-hosted apps in Pastebin support Docker?

All 6 apps in Pastebin list Docker support.

Analytics cookies only (Google Analytics, PostHog). No ad networks, no cross-site tracking. See our privacy policy.