πŸ”‘

OAuth 2.0 Scope Builder

Build and decode OAuth 2.0 scope strings for Google, GitHub, Stripe, and custom providers. Toggle permissions with risk indicators, generate ready-to-use scope strings, and decode existing scope strings to understand what access they grant.

Security ToolsPrivacy & Security
Loading tool...

How to Use OAuth 2.0 Scope Builder

How to Use the OAuth 2.0 Scope Builder

Build Mode

Step 1: Choose a Provider

Select the OAuth provider your app integrates with:

ProviderNotes
GoogleUses full URL scopes such as https://www.googleapis.com/auth/drive
GitHubUses short token-style scopes such as repo, read:user
StripeUses two Connect scopes: read_only and read_write
CustomEnter any scopes manually for non-listed providers

Step 2: Toggle Scopes

Each scope shows:

  • A human-readable label and description
  • The actual scope value used in the OAuth request
  • A risk indicator: low (green), medium (amber), or high (red)

Click a scope row to select or deselect it. Use Select all or Clear all for bulk actions.

Step 3: Copy the Scope String

The generated scope string appears at the bottom once at least one scope is selected. You can copy:

  • The raw space-separated string (standard OAuth 2.0 format)
  • The URL-encoded version (for embedding in query strings)

Decode Mode

Paste an existing scope string (space-separated) and the tool will:

  • Match recognized scopes against the selected provider and explain each one
  • List any unrecognized tokens separately

Switch to Custom provider to decode non-standard or internal scopes.

Risk Indicators

LevelMeaning
LowRead-only or limited write access
MediumWrite access to specific resources
HighAdmin, full access, or destructive capability

Always request the minimum scopes your app needs. Users are more likely to approve narrow permissions, and fewer scopes reduce your attack surface if credentials are compromised.

Principle of Least Privilege

OAuth scopes are your authorization boundary. Requesting drive:readonly instead of drive means a leaked token cannot modify or delete files. For any app:

  1. Start with the most restrictive scope that lets the feature work
  2. Add broader scopes only when users explicitly unlock advanced features
  3. Never request admin or delete scopes unless the feature genuinely requires them

Frequently Asked Questions

Most Viewed Tools

πŸ”

TOTP Code Generator

2,924 views

Generate time-based one-time passwords from a TOTP secret key. Enter your base32 secret, choose a period and digit length, and get the current and next codes with a live countdown timer. Useful for testing and debugging 2FA integrations.

Use Tool β†’
πŸ”

Secret and Credential Scanner

2,468 views

Scan pasted text, code, or config files for accidentally exposed API keys, tokens, passwords, and private keys. Detects 50+ secret types across AWS, GitHub, Stripe, OpenAI, and more β€” all client-side, nothing leaves your browser.

Use Tool β†’
πŸ”‘

Password Entropy Calculator

2,393 views

Calculate the information-theoretic bit entropy of any password or API key. Detects character set pools automatically, shows the total number of possible combinations, and estimates crack time across five attack scenarios from rate-limited web logins to GPU cracking clusters.

Use Tool β†’
πŸ”’

Content Security Policy Generator

2,062 views

Build Content Security Policy headers interactively. Toggle directives like script-src, style-src, and img-src, select allowed source tokens, and add custom origins. Instantly outputs your CSP as an HTTP header, meta tag, Nginx directive, or Apache header.

Use Tool β†’
πŸ“Ί

Screen Size Converter

1,820 views

Calculate screen width and height from diagonal size and aspect ratio. Convert between inches and centimeters for displays, TVs, and monitors with instant dimension calculations.

Use Tool β†’
πŸ”

API Key Hasher

1,756 views

Hash API keys using SHA-256, SHA-512, or PBKDF2 before storing them in your database. Generates a Node.js verification snippet and shows the recommended storage format β€” all 100% client-side using the Web Crypto API.

Use Tool β†’
πŸ”

SSH Key Generator

1,565 views

Generate Ed25519 and RSA 4096-bit SSH key pairs entirely in your browser. Keys are never sent to any server β€” 100% client-side using the Web Crypto API.

Use Tool β†’
πŸ›‘οΈ

PGP Key Generator

780 views

Generate PGP public and private key pairs for email encryption and code signing. Supports ECC (Curve25519) and RSA up to 4096-bit. Entirely browser-side β€” keys never leave your device.

Use Tool β†’

Related Privacy & Security Tools

πŸ”

API Key Hasher

Hash API keys using SHA-256, SHA-512, or PBKDF2 before storing them in your database. Generates a Node.js verification snippet and shows the recommended storage format β€” all 100% client-side using the Web Crypto API.

Use Tool β†’
πŸ›‘οΈ

PGP Key Generator

Generate PGP public and private key pairs for email encryption and code signing. Supports ECC (Curve25519) and RSA up to 4096-bit. Entirely browser-side β€” keys never leave your device.

Use Tool β†’
πŸ”

TOTP Code Generator

Generate time-based one-time passwords from a TOTP secret key. Enter your base32 secret, choose a period and digit length, and get the current and next codes with a live countdown timer. Useful for testing and debugging 2FA integrations.

Use Tool β†’
πŸ”‘

Password Entropy Calculator

Calculate the information-theoretic bit entropy of any password or API key. Detects character set pools automatically, shows the total number of possible combinations, and estimates crack time across five attack scenarios from rate-limited web logins to GPU cracking clusters.

Use Tool β†’
πŸ”’

Content Security Policy Generator

Build Content Security Policy headers interactively. Toggle directives like script-src, style-src, and img-src, select allowed source tokens, and add custom origins. Instantly outputs your CSP as an HTTP header, meta tag, Nginx directive, or Apache header.

Use Tool β†’
πŸ”

SSH Key Generator

Generate Ed25519 and RSA 4096-bit SSH key pairs entirely in your browser. Keys are never sent to any server β€” 100% client-side using the Web Crypto API.

Use Tool β†’
πŸ”

Secret and Credential Scanner

Scan pasted text, code, or config files for accidentally exposed API keys, tokens, passwords, and private keys. Detects 50+ secret types across AWS, GitHub, Stripe, OpenAI, and more β€” all client-side, nothing leaves your browser.

Use Tool β†’
πŸ”’

PIN Generator

Generate secure numeric PINs for devices, accounts, and security systems. Create random PINs with strength analysis and security recommendations.

Use Tool β†’

Share Your Feedback

Help us improve this tool by sharing your experience

We will only use this to follow up on your feedback