🛡️

Secret Key Generator

Generate strong secret keys for JWT signing, symmetric encryption, HMAC signing and other cryptographic operations. Everything is generated in your browser using the Web Crypto API (crypto.getRandomValues), so no secret ever leaves your device.

Code Maker
Very Strong 381 bits entropy

Excellent for API keys and security tokens.

Character Sets
Generated Output
NfHvJwxHSCaItph6KAibopJ4KLUyAWS0hm3thb64XzCJgU4Vs5Ha2x3d0CifJbcr
UOh9RPjaheDfCkbPdhFwx2AsXXSJcQWZsVbE941zIBYk4nBl4dBRSpUsnYJnlfNq

Frequently Asked Questions

What length should a JWT secret be?

For HS256, at least 32 bytes (256 bits) is required. Use a 44-character alphanumeric key for a safe margin.

Can I use this for AES encryption keys?

For AES-256 you need exactly 32 bytes. Generate a 32-character key and encode it as Base64 or hex for use in most libraries.

Related Tools

Further Reading