New paste Use cases Explore public pastes Text tools Developer API The Paste Library Security Sign in with Google

Free online pastebin
for code, logs, and text.

Create an unlisted link without signing up. Add expiration, password access, a view limit, or browser encryption when the text needs stronger controls.

1 MB per paste60+ language modes0 signup required
1 line0 characters
Protect your pasteOptional access and retention controlsCompare protection →
Local sensitive-data checkNo likely credentials detected. Detection runs in this browser.
⌘ + Enter to create Draft recovery is ready

Why developers choose Pastebin.ai

Each control solves a different sharing problem, with precise language about what it can and cannot protect.

Unlisted by default

Anonymous pastes stay out of public discovery unless the creator deliberately changes visibility.

Secrets checked locally

Likely credentials are flagged before submission, with a redacted preview that never leaves the browser.

Browser-side encryption

AES-256-GCM turns clear text into ciphertext before upload and keeps the key in the URL fragment.

Access and retention controls

Combine expiration, passwords, unique-view limits, or burn-after-read to fit the handoff window.

Readable developer output

Use language suggestions, line links, raw text, download, clone, search, and API access.

No code execution

Pastebin.ai displays text with syntax highlighting; it never compiles or runs pasted code.

Unlisted by default

New pastes stay out of public discovery and carry noindex directives.

Expires on your terms

Ten minutes, a month, or whenever you decide.

</>
Made for readable code

Line numbers, raw views, copy, and language modes.

No friction

No account, no CAPTCHA, no clutter.

Free online pastebin: How it works

A pastebin stores one focused block of text and returns a URL you can send instead of filling a chat, email, or support ticket with hundreds of lines.

01

Paste exact text

Add source code, a stack trace, JSON, configuration, Markdown, or plain text. Choose one of more than 60 syntax modes when highlighting makes the structure easier to review.

02

Choose access and retention

Start unlisted, select an expiration, and add a password when a second access check is useful. Use browser encryption when readable content should not be stored by the service.

03

Share the clean link

Recipients get a read-only view with line numbers, copying, downloading, and raw text when the protection mode allows it. Public discovery is always a deliberate choice.

What is a pastebin?

A pastebin is an online text-hosting service designed for short, line-preserving artifacts such as code snippets and error logs. A paste link is ideal for conversation; durable project knowledge still belongs in documentation or version control.

Read the complete pastebin guide →

Client-side encrypted pastes keep plaintext off the server

Encrypted pastes use AES-256-GCM in your browser. The decryption key lives in the link fragment, so the server only stores unreadable ciphertext.

  • Encryption happens before upload
  • Key never appears in the HTTP request
  • Combine with expiry or burn-after-read
Read our security model
AaYOUR TEXTReadable in your browser
AES-GCM
#%OUR SERVERSees only ciphertext
⌁ key stays with you

Pastebin guides for safer text sharing

Clear, practical guides for code sharing, data privacy, technical formats, and better developer communication.

Free online pastebin questions and answers

Everything you should know before turning your text into a link.

Still curious? Talk to us →
Is Pastebin.ai free?+

Yes. Core paste creation, syntax highlighting, raw views, expiration, burn-after-read, and client-side encrypted sharing are free and require no account.

Are pastes public by default?+

No. The default visibility is unlisted, so a paste is accessible by its random URL but omitted from public discovery pages.

Can Pastebin.ai read an encrypted paste?+

Encrypted mode uses AES-GCM in your browser. Only ciphertext reaches the server, and the decryption key stays in the URL fragment after #, which is not sent in normal HTTP requests.

Should I paste passwords or API keys?+

No. Use a dedicated password manager or secret-sharing product. Secret detection is helpful but cannot guarantee that every sensitive value is found.

What happens when a paste expires?+

Expired pastes stop resolving and are removed from active storage during cleanup. Copies already made by recipients cannot be recalled.

Is there an API?+

Yes. POST JSON to /api/v1/pastes and retrieve public or unlisted pastes from /api/v1/pastes/{id}. See the API documentation for examples and limits.

Can I edit and organize my pastes?+

Yes. Pastes created while signed in can be edited, deleted, categorized, tagged, and organized into folders. Each saved edit keeps a revision snapshot.

What is an owner-only paste?+

Owner-only pastes return no content unless the creating Google account is signed in. This is different from unlisted sharing, password protection, and client-side encryption.

Are drafts recovered automatically?+

Yes. The editor saves non-password form fields and paste text in local browser storage. Draft text is removed after successful creation and never synchronized to another device.

How do authenticated API tokens work?+

Signed-in users can create independently revocable bearer tokens for listing, reading, updating, and deleting their own pastes. The token value is shown once and stored by the service as a one-way hash.

Create a free paste in seconds

Share code, logs, or notes in seconds - No account and no clutter.

Create a paste