API Key Generator
Choose a format and length, then generate cryptographically secure API keys instantly — all client-side using WebCrypto. No server, no logging.
Key Options
864128256
Click Generate Key to create your first key
Copied!
Summary
Choose a format and length, then generate cryptographically secure API keys instantly — all client-side using WebCrypto. No server, no logging.
How it works
- window.crypto.getRandomValues() fills a Uint8Array with cryptographically random bytes drawn from the operating system entropy pool.
- The random bytes are encoded into your chosen character set: lowercase hex, URL-safe Base64, or alphanumeric.
- For UUID mode, the bytes are formatted as an RFC 4122 version 4 identifier with the version and variant bits set correctly.
- The finished key is rendered instantly in the browser and is never transmitted or logged.
Use cases
- Create API authentication tokens for REST APIs and webhooks.
- Generate secret keys for HMAC signing or JWT secrets.
- Produce random UUIDs for database primary keys or session IDs.
- Bulk-generate test credentials for staging environments.
- Generate client secrets for OAuth 2.0 application registration.
Frequently Asked Questions
Last updated: 2026-06-09 ·
Reviewed by Nham Vu