- on device
- random
- generator
Random Token Generator
Choose how many random bytes you need and how to encode them. Change encoding without replacing those bytes.
Your random result will appear here.
Values and hash sources stay in this tab. Only preset settings are saved on this device; custom alphabets and free text are never saved.
1–65,536 per value. Formatting adds characters to the result.
1–1,000 values per batch.
More settings
Optional: up to 32 printable ASCII characters, including spaces.
Optional: up to 32 printable ASCII characters, including spaces.
Formatted values plus line breaks: at most 1,048,576 bytes. JSON export: at most 3,145,728 bytes. Formatting adds no randomness.
Download options
Questions
Is token length measured in bytes or characters?
The default byte mode measures random input bytes. Encoding determines the output length: 32 bytes become 43 unpadded Base64url characters or 64 hex characters. Alphabet mode measures random characters instead.
Does changing the encoding create new random bytes?
No. Encoding, case, padding and formatting reuse the current bytes. New values replaces them. A change to byte length, count or uniqueness creates a new batch.
What is the difference between Base64 and Base64url?
Base64 uses + and / and defaults to = padding. Base64url uses - and _ and defaults to no padding. Both encode the same random bytes; padding can be changed under More settings.
Does this issue an API key for a service?
It creates random token values locally. A service must separately register and accept a credential; generating a value here does not grant access to any service.
Related tools
Random String Generator
Generate random strings with an exact character length and your chosen alphabet.
- on device
- random
- generator
Random Hex Generator
Generate hexadecimal strings with an exact character length or byte length.
- on device
- random
- generator
Random Hash Generator
Generate real hash digests from fresh random bytes using SHA-256 and 14 other algorithms.
- on device
- random
- generator