API Key Generator
Generate cryptographically secure API keys with configurable format, length, and entropy. Nothing ever leaves your browser.
Click Generate to create secure API keys
Key Statistics
Keys are generated entirely in your browser using the Web Crypto API. Nothing is stored or transmitted.
API Key Generator FAQ
Are these keys cryptographically secure?
Yes. Keys are generated using the Web Crypto API (crypto.getRandomValues), which provides cryptographically secure pseudo-random numbers suitable for security-sensitive applications.
What format should I choose?
Base62 (a-z, A-Z, 0-9) is the most common format for API keys — URL-safe, no special characters. Hex is standard for tokens and secrets. Base64 packs more entropy per character but may contain + and / characters.
How long should my API key be?
For most applications, 32 characters in Base62 provides ~190 bits of entropy — more than sufficient. For extremely high-security use, consider 48+ characters. The minimum recommended is 20 characters.
What does collision probability mean?
Collision probability estimates the chance that two independently generated keys will be identical. We show the probability among 1 million keys using the birthday problem formula. For 32+ character Base62 keys, this is effectively zero.
Need to share API keys securely?
Don't paste API keys into Slack or email. Use CredenShare to deliver them with end-to-end encryption, expiration, and audit logging.