Skip to content

API Key Generator

Create cryptographically secure API keys, access tokens, and client secrets in multiple formats — hex, base64, base62, and UUID-style.

Format
32
16 256
1–50 keys

How to use the API Key Generator

  1. Choose a key format and length.

  2. Set how many keys to generate.

  3. Copy individual keys or download as JSON/CSV.

What makes a good API key?

API keys should be cryptographically random, long enough to resist brute-force attacks (128+ bits of entropy), and in a format your system accepts. This generator uses crypto.getRandomValues to produce truly random keys and offers common formats: hex (for database-friendly keys), Base64 (compact), Base62 (URL-safe, no special chars), and prefixed variants like sk_live_ (Stripe-style).

Key features

  • Cryptographically secure randomness via Web Crypto API
  • Hex, Base64, Base62, UUID, and prefixed key formats
  • Adjustable length (16-256 characters)
  • Batch generation — create up to 50 keys at once

Frequently asked questions

Are these keys truly random?

Yes — they use crypto.getRandomValues, the browser's cryptographically secure random number generator.

Can I use these in production?

Yes — keys generated here are as secure as any server-side generator. For production, also consider key rotation and hashing.

Are the keys stored or sent anywhere?

No. Generation happens entirely in your browser and nothing is saved.