Random Token Generator
Generate a random URL-safe token (Base64URL) for sessions & APIs. All values are generated on your device using a cryptographically secure random generator — nothing is sent to a server.
Everything runs in your browser. Your data is never sent to our servers.
Example
Example Input
32 bytes
Example Output
k7Q-9Zrf…(Base64URL)
How to Use
- 1Open "More settings" to adjust parameters (e.g. size/length) if needed.
- 2Click the Generate button.
- 3Copy the result with the Copy button.
About Random Token
Random tokens are used for session IDs, API keys, password-reset links, and CSRF tokens. Their strength depends on secure randomness and sufficient length.
This tool generates a token in Base64URL — the URL-safe Base64 variant (uses - and _, no padding). Its source is the browser CSPRNG.
Specify the number of random bytes (≥16 recommended, ≥32 for high security). For plain hex use Random Hex; for a JWT secret use the JWT Secret Generator.
FAQ
Are my data or keys sent to a server?
No. Random Token runs entirely in your browser using the Web Crypto API and client-side libraries. Your data, passwords, and keys never leave your device.