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.8k starsZlibUpdated 15 November 2026
  2. Opengist

    Pastebin powered by Git.

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

    Lightweight, minimal and fast pastebin with an SQLite backend.

    891 starsMITUpdated 20 October 2026
  4. rustypaste

    Minimal file upload/pastebin service.

    1.2k starsMITUpdated 13 November 2026
  5. ByteStash

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

    2.6k starsGPL-3.0Updated 10 November 2026
  6. Pastefy

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

    465 starsMITUpdated 15 November 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,759ZlibPHP
Opengist3,415AGPL-3.0Docker, Go, Node.js
Wastebin891MITRust, Docker
rustypaste1,217MITRust
ByteStash2,582GPL-3.0Docker
Pastefy465MITDocker, 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.