Random Key Generator

Strong random keys are essential for API tokens, session IDs, encryption keys, and passwords. This tool uses the browser's crypto.getRandomValues API for true randomness. Choose your length, character sets, and how many keys to generate at once.

Processed on your deviceNo signup required100% free

~191 bits entropy

Format:
Generated Keys

No keys generated yet

Configure options and click Generate

How to Use

  1. Set the desired key length in characters.
  2. Toggle character sets: uppercase, lowercase, digits, symbols.
  3. Choose output format: string, hex, or base64.
  4. Set how many keys to generate (1-20).
  5. Click Generate and copy the keys you need.

Related Tools

Frequently Asked Questions

How long should a key be?
For API keys, 32-64 characters is standard. For encryption keys, match the algorithm's key size (e.g., 32 bytes for AES-256).
Is this truly random?
Yes. It uses the Web Crypto API which sources entropy from your operating system's CSPRNG.
Can I use this for passwords?
Absolutely. Enable all character sets and use 16+ characters for strong passwords.