Random token & API key generator

Generate cryptographically secure random tokens in hex, Base64 URL-safe or alphanumeric. Useful for API keys, secrets and session IDs.

Runs in your browser ยท nothing is sentPasswords & secrets

The result appears here

About this tool

Choose a format and length. Values come from the browserโ€™s secure random generator and are never sent anywhere.

๐Ÿ”’ Your input stays in your browser and is never sent anywhere.

Frequently asked questions

How long should a secret be?

At least 32 random bytes (256 bits) for signing keys and long-lived secrets.

What to do next

Also useful

  • UUID generatorGenerate one or more random UUIDs (version 4) with one click. Local and cryptographically secure.

Found a problem or have a suggestion? Tell us