Random String Generator

Generate random strings, passwords, and tokens with customizable length and character sets.

Configuration
Entropy: ~95 bits
How It Works

This random string generator builds your output by combining characters from your selected sets (uppercase, lowercase, numbers, symbols). For each position in the string, it uses crypto.getRandomValues() to produce a cryptographically secure random index into the character pool. The pool size determines entropy: with 94 possible characters (all sets), each character adds ~6.55 bits of entropy. A 16-character string with all sets yields approximately 105 bits of entropy, making it virtually unguessable. The entire process runs client-side — nothing is sent to any server.

Frequently Asked Questions
How long should a random password be?
Security experts recommend passwords of at least 12 characters for general use, and 16 to 20 characters for sensitive accounts. Longer passwords with a mix of uppercase, lowercase, numbers, and symbols are significantly harder to crack through brute force attacks.
Is this random string generator secure enough for passwords?
This tool uses crypto.getRandomValues() when available, providing cryptographically strong randomness. For maximum security, the generated strings include the full range of selected character sets and are produced entirely in your browser with no server involvement.
Can I generate API tokens and keys with this tool?
Yes. You can customize the length and character set to generate API tokens, API keys, secret keys, and other identifiers. For tokens, use alphanumeric characters (uppercase + lowercase + numbers) at 32 to 64 characters. For hex keys, use only numbers and lowercase letters.
Free tools by TUNA — energy supply from vetted manufacturers