ilovekit

Secret/API Key Generator

7 tools

Generate a random hex or Base64 secret key.

Runs in your browser — your files and text stay on your device

Generate a random hex or Base64 secret key for API keys, tokens and signing secrets. Longer keys are stronger, and a secret should be stored in an environment variable or secrets manager, never committed to code. It's generated in your browser with a secure random source.

Password GeneratorPassphrase GeneratorPassword Strength CheckerPIN GeneratorBulk GeneratorUsername GeneratorSecret/API Key Generator
Length (bytes)32

How to use this tool

  1. 1Choose the key length in bytes and an encoding.
  2. 2A random secret generates automatically.
  3. 3Copy it into an .env file or secrets manager.

Frequently asked questions

What's a good length for an API secret?

32 bytes (256 bits) is a strong default for most session secrets and API keys.

Is this cryptographically secure?

Yes — it uses crypto.getRandomValues, the Web Crypto API's secure random source.

Is my generated secret sent anywhere?

No — everything happens locally in your browser.

Guides

All guides →