API Key and Token Generator

Random API keys, webhook signing secrets, session secrets and tokens, generated in your browser in the format you need.

Runs entirely in your browser. Nothing you type here is sent anywhere.

Nothing yet
256 bits of randomnessUnguessable. Fine for API keys, session secrets and signing keys.
32 (256 bits)
1

A recognisable prefix lets secret scanners spot a leaked key. Letters, numbers, underscore, hyphen and dot only.

Encrypted in your browser, then shared as a link that works once and self-destructs.

Choosing a format

  • Hex: two characters per byte. The safe default for config files and environment variables, and what openssl rand -hex 32 gives you.
  • Base64url: shorter for the same randomness and safe in URLs and headers. Common for session secrets and JWT signing keys.
  • Base62: letters and digits only, so it survives double-click selection and systems that choke on symbols.
  • UUID v4: 122 random bits in the standard 8-4-4-4-12 layout. Fine as an identifier; prefer 32 random bytes for anything secret.

How long should a key be?

128 bits (16 bytes) is enough that guessing is impossible. 256 bits (32 bytes) is the usual choice for signing secrets like AUTH_SECRET or a webhook secret, because some algorithms expect a key that size. Going longer does no harm.

Add a prefix

Prefixes like sk_live_ or ghp_ tell people what a key is and let secret scanners on GitHub and elsewhere catch it if it leaks. If you're issuing keys to your own users, pick a distinctive prefix and register it with your scanner.

Handing the key over

Keys usually end up in a .env file, a CI variable or a client's inbox. Instead of pasting them into email, Send it once puts them in an encrypted link that self-destructs after it's opened. Sending a whole config? Use the .env file sharer. Sending keys from a script or pipeline? The Burn the Secret API creates one-time links programmatically. See also how to send API keys to clients.

Frequently asked questions

Are these API keys cryptographically secure?

Yes. They are generated with crypto.getRandomValues (crypto.randomUUID for UUIDs), the browser's cryptographically secure random number generator. Base62 output uses rejection sampling so every character is equally likely.

How many bytes should an API key be?

Use at least 16 random bytes (128 bits). 32 bytes (256 bits) is the common choice for signing and encryption secrets.

Is a UUID secure enough for an API key?

A version 4 UUID has 122 random bits, which is hard to guess, but UUIDs are often treated as public identifiers and logged freely. For secrets, use 32 random bytes in hex or base64url.

Can I generate several keys at once?

Yes, up to 20 at a time. They are shown one per line and can be sent together in a single one-time link.

See all 11 tools →

Need to share something sensitive?

Free, no signup, encrypted in your browser. The link self-destructs after it's opened.

Create a secure link