Replace / Pastebin

Best free Pastebin alternatives (open source, self-hosted) 2026

The best open-source alternative to Pastebin is PrivateBin (or Opengist) with Microbin, self-hosted on Railway. Pastes you host. PrivateBin is Zlib/libpng (GitHub license Other); Opengist is AGPL-3.0 — Pastebin without the hosted paste seat.

Estimated save $1,200 a year.

Open the stackStart on Railway

How Pastebin compares

PastebinPrivateBin / Opengist
Pricing modelHosted subscription Open-source or fair-code license; you pay the host
HostingVendor cloud Self-hosted on Railway or any VPS
Rough monthly costPublic list price not verified this run Hosting only — no SaaS seat meter in this repo

FAQ

What is the best free open-source Pastebin alternative?
The best open-source alternative to Pastebin is PrivateBin (or Opengist) with Microbin, self-hosted on Railway. Pastes you host. PrivateBin is Zlib/libpng (GitHub license Other); Opengist is AGPL-3.0 — Pastebin without the hosted paste seat.
Is it free?
The PrivateBin / Opengist licenses are open source or fair-code. You still pay hosting (Railway or any VPS) and any APIs the stack calls. There is no Pastebin seat or task bill on this path.
Can I migrate from Pastebin?
Yes. Start with the workflows or data you actually use, then cut over. The PrivateBin / Opengist stack page has the agent prompt and the cost table; most teams rebuild the slice that matters and leave old Pastebin links until they expire.
How do I deploy it?
Open the PrivateBin / Opengist stack, copy the agent prompt, and deploy on Railway (one service, PORT, and a volume when the app needs disk). Placeholder: PrivateBin (PHP + a data path) or Opengist plus a volume for gists. Bind HTTP to 0.0.0.0:$PORT. No one-click template in this repo yet — Start on Railway.
What does this replace?
Pastebin / GitHub Gists. The published small-team estimate on this stack is $1,200 a year.

Related pages

Stack of the Week

Get one stack a week that replaces a SaaS bill.

Sponsor this page