Random String Generator
Create random strings for API keys, coupon codes, invitation codes, file names or test data. Choose the length, how many and exactly which characters to use.
No data needed
How to use
- Set the length and number of strings.
- Choose character sets or add your own.
- Click Generate and copy the list.
How it works
Each character is drawn independently and uniformly from the chosen alphabet using a cryptographically secure generator. Duplicate characters in your custom alphabet are removed so no character is favoured.
With 32 characters from 62 letters and digits, a string has about 190 bits of entropy — collisions are practically impossible.
Examples
- Coupon codes
- 100 codes of 8 uppercase letters and digits.
- Hex token
- 32 hex characters = 128 bits.
Common uses
- Coupon and invitation codes
- Test data and fixtures
- Tokens and identifiers
Privacy & security
This tool does not take any personal data or files. Results are generated on your device. How each tool handles files
Frequently asked questions
Can two generated strings be identical?
It's possible in theory but vanishingly unlikely for reasonable lengths. For guaranteed-unique IDs, use UUIDs.
Are the strings stored?
No, they exist only in your browser.
Last updated: