Random String Generator
Create random strings for API keys, coupon codes, test data or IDs, using your browser’s secure random generator.
How to use the Random String Generator
- Set the length and countChoose how long each string is and how many to make, up to 10,000.
- Choose the charactersTick uppercase, lowercase, digits and symbols, remove look-alike characters, or type your own set (for example only hex digits).
- Generate and copyAdd a prefix, suffix or dashes if you like, then copy or download the list.
Example
16 characters from A–Z, a–z and 0–9 (62 possible characters) give about 95 bits of randomness: practically impossible to guess.
For coupon codes, use A–Z and 0–9 without look-alikes, length 8, grouped every 4: K7QM-X3TR.
Frequently asked questions
Are these strings secure?
Yes. They use crypto.getRandomValues, the browser’s cryptographically secure generator, with rejection sampling so every character is equally likely. They are suitable for tokens and passwords.
How many bits do I need?
About 128 bits for API keys and secrets, 80 or more for passwords, and 40–60 bits is enough for short-lived codes like coupons. The tool shows the bits for your settings.
Are the strings stored anywhere?
No. They are created in your browser and never sent or saved. Generate again to get a completely new set.