Free, open-source alternatives to Pastebin

Share text and code snippets by link. 7 apps you can run yourself instead of Pastebin, sorted by how well they replace it. Each one is open source, so your data stays with you.

  1. PrivateBinBest match

    Minimalist pastebin/discussion board where the server has zero knowledge of hosted data.

    8.7k starsZlibUpdated 8 October 2026
  2. Opengist

    Pastebin powered by Git.

    3.4k starsAGPL-3.0Updated 3 October 2026
  3. Wastebin

    Lightweight, minimal and fast pastebin with an SQLite backend.

    872 starsMITUpdated 9 October 2026
  4. rustypaste

    Minimal file upload/pastebin service.

    1.2k starsMITUpdated 8 October 2026
  5. ByteStash

    Pastebin and file storage service with a simple web interface. Supports syntax highlighting, optional user authentication and public sharing.

    2.5k starsGPL-3.0Updated 7 October 2026
  6. Pastefy

    Beautiful, simple and easy to deploy Pastebin with optional client encryption, multitab pastes, an API, a highlighted editor and more.

    460 starsMITUpdated 1 June 2026
  7. dpaste

    Simple pastebin with multiple text and code option, with short url result easy to remember.

    643 starsMITUpdated 20 February 2026

Side by side

AppStarsLicenseActivityRuns on
PrivateBin8,662ZlibPHP
Opengist3,384AGPL-3.0Docker, Go, Node.js
Wastebin872MITRust, Docker
rustypaste1,213MITRust
ByteStash2,550GPL-3.0Docker
Pastefy460MITDocker, Kubernetes, Java
dpaste643MITDocker, Python

Why replace Pastebin?

Pastebin works, but your data lives in someone else's account, the price can change at any time, and features can disappear. An open-source app you run yourself is yours: you choose where it runs, who can see the data, and when to update.

Questions

What is the best free alternative to Pastebin?

PrivateBin is the closest open-source replacement for Pastebin in our list. Opengist and Wastebin are worth a look too, depending on what you need.

Can I self-host an alternative to Pastebin?

Yes. All 7 apps on this page are open source and can run on your own server, usually with Docker, or on a managed host that installs them for you.