Secure Token Generator

Generate cryptographically random tokens for API keys, session secrets, password salts, share links, anything. Uses the browser's CSPRNG (Web Crypto API) — never Math.random().

What makes a token "secure"?

A secure token is unpredictable — an attacker can't guess it faster than brute-forcing the entire keyspace. Two requirements:

  1. Cryptographically secure source. Use crypto.getRandomValues() (browser) or crypto.randomBytes() (Node) — never Math.random(), which is predictable from a few outputs.
  2. Enough entropy. A 16-byte (128-bit) random token has 2128 possibilities — about the same as AES-128 keys. Anything below ~80 bits is brute-forceable by motivated attackers.

Length recommendations

About the formats

Privacy

Generation happens entirely in your browser using the Web Crypto API. The tokens never leave the page; nothing is logged or sent anywhere.