Random String Generator
Set Length, check the character sets you want, then click Generate. The result shows Length and Value so you can confirm the string matches the size you requested.
Click Generate.
About this tool
Characters come only from the sets you enable: A–Z, a–z, 0–9, and a fixed symbol list. Random indices use crypto.getRandomValues. Length must be 1–1024; leaving every checkbox off returns an error instead of an empty string.
How to use
- Open the generator: Load Length and the Uppercase, Lowercase, Digits, and Symbols checkboxes.
- Set the length: Enter how many characters you need, for example 16.
- Choose character sets: Tick only the alphabets you want in the output string.
- Generate: Click Generate and copy the Value line from the result area.
Common use cases
- Create opaque tokens for staging APIs when a full password policy is overkill.
- Build sample IDs with only uppercase letters for barcode-style tests.
- Mix letters and digits for invite codes without requiring symbols.
- Regenerate a fresh string after copying the previous Value line.
Tips
- Enable at least one character set or Generate will refuse to run.
- Cap is 1024 characters; raise Length only as far as your form field allows.
FAQ
How is randomness produced?
The tool fills a typed array with crypto.getRandomValues, then maps each value onto the enabled charset.
What if no checkbox is selected?
Generate returns Select at least one character set.
Can length be zero?
No. Length must be greater than zero and at most 1024.
How does this differ from the password generator?
Here you choose which sets to include; the password tool uses a fixed mixed charset.