About the Random String Generator
Test data, coupon codes, API tokens and file names often need random strings. This generator uses the browser’s cryptographically secure random number generator with rejection sampling, so every character is equally likely.
Choose the length, how many strings you need and the character set: letters and numbers, hex, lowercase, digits, URL-safe or a Base64 token.
How to use the Random String Generator
- Set the length and how many strings to make.
- Choose a character set.
- Generate, then copy or download.
Features
- Generation history: the last 10 results of your visit stay one click away
- crypto.getRandomValues, no modulo bias
- Alphanumeric, hex, lowercase, digits, URL-safe, Base64
- Up to 500 strings at once
- Download as .txt
Supported formats
- Plain text
Frequently asked questions
Are these suitable as secrets?
Yes, they come from a secure source. Use at least 32 characters for API keys or tokens.
Is my text sent anywhere?
No. Everything runs in your browser, so nothing you paste is uploaded or stored.