◈ hastebin alternative
Hastebin alternative — no login, no API token
Hastebin now lives at Toptal: its API needs a GitHub-linked token and pastes disappear after 7 days. NullPaste keeps what made hastebin great — paste from the terminal, get a link — with no key, your own expiry, burn-after-read, passwords, and end-to-end encryption.
What changed with hastebin
- It moved to Toptal — hastebin.com now redirects to toptal.com/developers/hastebin
- The API needs a token — you sign in with GitHub and send an
Authorization: Bearerheader, so old one-line scripts stopped working - Pastes expire on a fixed timer — 7 days, or 30 days if you are signed in; you cannot keep one longer or make it shorter
- No way to delete a paste — and no passwords, encryption, or burn-after-read for anything sensitive
Paste from the terminal, no API key
The NullPaste API takes plain text and returns a link — no account, no token. Drop this helper into your shell config and use it the way you used haste:
# Add to ~/.bashrc or ~/.zshrc
npaste() {
curl -s --data-binary @"${1:--}" \
-H "Content-Type: text/plain" \
https://nullpaste.org/api/v1/pastes
}
# Usage:
# npaste file.txt — paste a file
# some-command | npaste — paste from stdinOptional headers set expiry (NP-Expiry: 10m | 1h | 1d | 1w | never), burn-after-read (NP-Burn: 1), a password, or the language. The response includes a raw URL and a one-time delete code.
NullPaste vs hastebin
| Feature | NullPaste | Hastebin |
|---|---|---|
| Free to use | ✓ | ✓ |
| Paste from the browser without an account | ✓ | ✓ |
| API without an account or token | ✓ | GitHub token |
| Choose how long a paste lasts | ✓ | 7 or 30 days |
| Pastes that never expire | ✓ | ✗ |
| Syntax highlighting | ✓ | ✓ |
| Burn-after-read | ✓ | ✗ |
| End-to-end encryption | ✓ | ✗ |
| Password protection | ✓ | ✗ |
| Delete a paste yourself | ✓ | ✗ |
What NullPaste adds over hastebin
⏱️Custom expiry
10 min · 1 h · 1 day · 1 week · never. Pastes auto-delete when time is up.
🔥Burn-after-read
Paste self-destructs on first view. Perfect for one-time secrets.
🔒End-to-end encryption
Content encrypted in your browser — server never sees the key.
🛡️Password protection
Restrict access to people who know the passphrase.
🗑️Delete code
Remove any paste on demand without an account.
🎨100+ languages
Shiki syntax highlighting — auto-detected, no config needed.
Frequently asked questions
- Is hastebin still working?
- Yes, but it has changed. hastebin.com now redirects to Toptal (toptal.com/developers/hastebin). You can still paste from the browser without signing in, but the API now requires a token you generate by signing in with GitHub, and pastes are removed after 7 days (30 days for signed-in users).
- Why did my hastebin curl command stop working?
- Old scripts that POSTed to hastebin.com/documents with no credentials now fail, because the Toptal-hosted API requires an Authorization: Bearer token tied to a GitHub account. NullPaste's API needs no key: pipe text to curl and you get a link back.
- What is the best hastebin alternative?
- If you used hastebin for quick pastes from the terminal, NullPaste is the closest fit: no account, no API key, syntax highlighting, and a one-line shell helper. It also adds what hastebin never had — your choice of expiry, burn-after-read, password protection, end-to-end encryption, and a delete code.
- How long do NullPaste pastes last compared to hastebin?
- On hastebin, pastes are removed after 7 days (30 if you are signed in). On NullPaste you choose: 10 minutes, 1 hour, 1 day, 1 week, or never. The API defaults to 1 day; send NP-Expiry: never to keep a paste.
- Is NullPaste free like hastebin?
- Yes. NullPaste is free with no account, no plans, and no paywalled features. Paste creation is rate-limited per IP to stop abuse, which normal use never comes close to.
- Can I self-host hastebin instead?
- Yes — the original open-source haste-server is still on GitHub if you want to run your own instance. If you would rather not run a server, NullPaste is a hosted option with no sign-up.
Related