Pastebin

Share code snippets via URL. Syntax highlighting for multiple languages. No data stored on any server.

Loading tool...

How to Use This Tool

  1. 1

    Type or paste your code or text into the editor.

  2. 2

    Select the language from the dropdown to enable syntax highlighting.

  3. 3

    Click Share to generate a URL — the encoded paste appears in your browser's address bar.

  4. 4

    Copy the URL and send it to anyone. They will see your paste with full syntax highlighting when they open it.

What is Paste?

A pastebin is a web application that lets you paste text or code and get back a shareable URL. The original Pastebin.com launched in 2002 and popularised the concept of ephemeral code sharing — a lightweight alternative to sending files by email or posting walls of code into chat. Pastebins have become indispensable in developer workflows for sharing stack traces with colleagues, providing a minimal reproducible example for a bug report, or quickly reviewing a code snippet during a call.

Most traditional pastebins store content on a server and assign an ID in the URL (e.g., /paste/a3f9b2). This means the paste data is persisted on someone else's infrastructure, is potentially indexed by search engines, and may be accessible indefinitely unless you explicitly delete it. For sensitive code — credentials, proprietary algorithms, personal data — this is a significant privacy risk.

Our pastebin takes a different approach: the content is compressed and encoded directly into the URL fragment (the part after the #). The fragment is never sent to the server, which means your code exists only in the URL itself and never touches any server. Sharing the URL shares the content. There is nothing to delete because nothing was ever stored. The trade-off is that very long pastes produce very long URLs, but for typical code snippets this approach offers unmatched privacy.

Frequently Asked Questions

helpWhere is my paste stored?

It is not stored anywhere. Your content is compressed and encoded into the URL fragment (the part after #). The fragment is never sent to our server — it exists only in the URL itself. Sharing the URL is the only way to access the paste.

helpCan I delete a paste?

There is nothing to delete. Because the content is encoded in the URL and never stored on a server, you cannot delete it — but neither can we. If you want a paste to go away, stop sharing the URL. Anyone who already has the URL can still decode it.

helpWhat languages does syntax highlighting support?

Syntax highlighting is provided by Shiki and supports all languages in its grammar library, including JavaScript, TypeScript, Python, Rust, Go, Java, C, C++, C#, Ruby, PHP, Swift, Kotlin, SQL, HTML, CSS, JSON, YAML, Markdown, Bash, and many more.

helpIs there a size limit?

There is no server-imposed limit because nothing is uploaded. In practice, URLs above a few kilobytes may be rejected by some chat applications or email clients that truncate long URLs. For larger pastes, consider a traditional pastebin or a version-controlled code hosting service.

Related Tools