ToolkitPro

Security

Secret Key Generator

Secret Key Generator creates cryptographically secure random keys -- 128, 192, 256 or 512 bits long -- formatted as hex, standard Base64, or URL-safe Base64.

Useful for generating API secrets, encryption keys, JWT signing secrets and other credentials that need to be genuinely random and sufficiently long. Keys are generated using the Web Crypto API's cryptographically secure random number generator, entirely in your browser.

Open Secret Key Generator Now →
Share this tool: WhatsApp Twitter / X

How to Use the Secret Key Generator

  1. Open the Secret Key Generator tool.
  2. Choose the key length in bits (128, 192, 256 or 512).
  3. Choose the output format: Hex, Base64, or URL-safe Base64.
  4. Click Generate key.
  5. Copy the key and store it securely -- treat it like a password.

Frequently Asked Questions

How is this different from the Random String / Token Generator?

The Random String / Token Generator produces alphanumeric strings sized by character count, aimed at IDs and tokens. This tool is sized by cryptographic bit-length and outputs hex or Base64, matching the format most APIs and encryption libraries expect for keys and secrets.

What key length should I use?

256-bit is a strong, widely-recommended default for most symmetric encryption and API-secret use cases. Check your specific system's documentation for its required key length.

Is the generated key stored anywhere?

No. It's generated and displayed entirely client-side and is never transmitted or saved once you leave the page.

Advertisement
Sponsored