Quick guide
How to use the Random String Generator
- Enter or choose string length, characters, how many strings?.
- Select Generate string.
- Review the main result, supporting breakdown, and step-by-step calculation notes.
- Copy the output or download the generated file when available.
What this tool does
Generate cryptographically secure random strings, tokens, API test secrets, and hex keys up to 2,048 characters long directly inside your browser. Using Web Crypto API rejection sampling guarantees uniform character distribution with zero modulo bias and zero server transmission.
Calculation method
- Build the chosen character alphabet: Alphanumeric (62 chars), Letters (52), Hexadecimal (16), or Full ASCII with symbols (78).
- Sample every character position independently with crypto.getRandomValues() and rejection sampling to eliminate modulo bias.
- Generate between 1 and 100 strings per batch and present them line-by-line for quick copy.
Example: five 24-character alphanumeric tokens
Input: Length: 24; Characters: Letters and numbers (62 chars); Count: 5
Result: 5 unique 24-character strings (~142.9 bits of entropy each)
With 62 possible characters per position, 24 × log₂(62) ≈ 142.9 bits of entropy—exceeding standard 128-bit cryptographic token strength.
Approximate entropy by alphabet and length
| Alphabet | Size | 16 chars | 24 chars | 32 chars |
|---|---|---|---|---|
| Hexadecimal (0–9, a–f) | 16 | 64 bits | 96 bits | 128 bits |
| Letters only (A–Z, a–z) | 52 | 91 bits | 137 bits | 182 bits |
| Alphanumeric | 62 | 95 bits | 143 bits | 190 bits |
| Letters, numbers & symbols | 78 | 101 bits | 151 bits | 201 bits |
Practical uses
- Generating local development API keys and webhook secrets
- Creating strong random passphrases or salt values
- Producing 32-char or 64-char hex keys for testing
- Creating unique coupon or invite codes
Accuracy tips and common mistakes
- For cryptographic signing secrets, choose at least 32 hexadecimal characters (128 bits) or 64 hex characters (256 bits).
- Because strings are created locally in memory and never sent over the network, nothing is logged on WebToolDock servers.
- Avoid using generated strings in place of an established password manager’s vault when you need secure long-term storage.