Random String Generator
Generate cryptographically secure random strings for API keys, tokens, passwords, or any use case requiring unpredictable output. Configure the length, character set (lowercase, uppercase, digits, symbols), and quantity. Uses crypto.getRandomValues() for cryptographically secure randomness — not Math.random().

What it does
- ▸Generates cryptographically secure random strings using crypto.getRandomValues()
- ▸Configurable length (1 to 10,000 characters)
- ▸Character set options: lowercase, uppercase, digits, symbols, custom
- ▸Bulk generation — create multiple strings at once
- ▸Exclude ambiguous characters (0, O, l, 1, I) for human-readable codes
Use cases
- ▸Generating API keys and secret tokens for authentication
- ▸Creating random passwords with specific character requirements
- ▸Generating verification codes or coupon codes
- ▸Creating random IDs for test data or temporary resources
How it works
Set the string length and select the character sets to include
Optionally exclude ambiguous characters for readability
Set the quantity if you need multiple strings
The generated strings appear in the output pane
Frequently asked questions
1Are these strings cryptographically secure?
Yes. The generator uses crypto.getRandomValues(), which provides cryptographically secure random numbers from the operating system's entropy source. The output is suitable for API keys, session tokens, and other security-sensitive uses.
2What's the 'exclude ambiguous characters' option?
When enabled, the generator skips characters that look similar: 0 (zero) vs O (letter), 1 (one) vs l (lowercase L) vs I (uppercase i). This makes the strings easier to read and type, which is useful for verification codes or manual entry.
3How long should my API key be?
For most applications, 32 characters (about 190 bits of entropy with a 62-character alphabet) is sufficient. For high-security applications, use 64 characters or more. The tool shows the entropy in bits so you can assess the strength.
Related tools

UUID/ULID Generate/Decode
Generate UUIDs/ULIDs in bulk, or decode one from the input

Password Strength
Estimate password entropy, weaknesses and crack time

Hash Generator
MD5 / SHA / CRC32 / Blake hashes and HMACs of the input text

Mock Data Faker
Generate realistic mock data from JSON templates with {{faker}} placeholders
Use Random String Generator offline in Devinity
All 95 tools run locally on your Mac. No internet required, no data sent to servers.
Download Devinity →