4.2. Random Token Generator
Generate cryptographically secure random tokens for API keys, secrets and identifiers in hex, Base64, URL-safe or numeric form — entirely in your browser.
- Custody
- local · runs in this tab. Input never leaves the page.
Example: Generate a 32-byte hex token
Generate a 64-character random hex token, the kind you might use as an API key or secret.
Frequently Asked Questions
4.2.1Are these tokens actually random?
Yes. They are produced by crypto.getRandomValues, a cryptographically secure random source backed by your device’s operating system entropy. They are unpredictable to attackers.
4.2.2Hex vs Base64 URL — which should I use?
URL-safe Base64 encodes more entropy per character, so tokens are shorter at the same strength. Use hex if your system expects a hexadecimal format; otherwise URL-safe Base64 is a good default.
4.2.3Can I use this to generate passwords?
You can, but Random Token Generator just produces raw randomness. For a password you typically want the strength checker’s guidance, or set an appropriate length here and treat the output as case-sensitive.
4.2.4Why would I pick the JWT option?
The JWT (HS256) mode signs your custom payload JSON with a secret, producing a complete, valid JWT — handy for testing tokens without a separate signing setup.