Create New Snippet

Share your code with the world or keep it unlisted.

πŸ”’ Private
Auto-detecting language...
1

Snippet Visibility

A vault lets you keep your snippets private and organizedβ€”completely free, no strings attached. 😍

πŸ”’ Get a Vault

Visibility Guide

πŸ”’ Private: Only you can see it

πŸ”— Unlisted: Anyone with URL can view

🌐 Public: Appears in Browse section

πŸ“š How to Use Pastr

πŸ”’

Create a Vault

Get your private vault code to save snippets securely. Only you can access your vault with your unique code.

1. Click "Get a Vault" 2. Save your vault code 3. Start creating private snippets

Share Code Instantly

πŸš€

Paste your code, choose visibility, and share the URL. Perfect for collaboration, debugging, or showcasing projects.

1. Paste your code 2. Add title and tags 3. Choose visibility 4. Share the URL
🎨

Syntax Highlighting

Automatic language detection with beautiful syntax highlighting. Supports PHP, JavaScript, HTML, CSS, Python, SQL, and more.

1. Type or paste code 2. Language auto-detected 3. Beautiful highlighting applied
πŸ“‹

Organize with Tags

Tag your snippets for easy organization and discovery. Find popular tags or create your own.

1. Add relevant tags 2. Browse by tag 3. Discover popular snippets
πŸ”„

Version Control

Edit your vault snippets anytime. Each edit creates a new revision, so you never lose your work.

1. Edit existing snippet 2. Save creates new revision 3. View revision history
🌐

Visibility Controls

Choose who can see your code: private (vault only), unlisted (URL only), or public (browseable).

πŸ”’ Private: Vault members only πŸ”— Unlisted: Anyone with link 🌐 Public: Appears in browse