Which encoding should I choose?
Hexadecimal is widely compatible, Base64 is more compact and Base64URL is suitable for URLs and cookies.
Security
Generate cryptographically secure random tokens in hexadecimal, Base64 or Base64URL format.
Generate cryptographically secure random tokens in hexadecimal, Base64 or Base64URL format.
This tool runs in your browser. Your input is processed locally and is not uploaded.
Use this random token generator for API tokens, reset links, session identifiers and test data. Random bytes are produced locally through the browser cryptography API.
Hexadecimal is widely compatible, Base64 is more compact and Base64URL is suitable for URLs and cookies.
The required size depends on its purpose. A token containing at least 128 bits of random entropy is common for many security-sensitive uses.
Yes. The tool uses cryptographically secure random values provided by the browser.