Random String Generator
Create sample identifiers and varied test data without repeatedly typing predictable values. The generator uses crypto.getRandomValues and rejection sampling to choose characters from the enabled alphabet. Unlike the Password Generator, it does not force every selected character group to appear in each result. This makes it suitable for testing identifier fields, randomized fixtures and development utilities with a known alphabet. Output is generated locally, is not stored by the tool and is not sent as an analytics event value.
Your workspace
Runs locally in your browserResult
Your input is processed locally in your browser unless explicitly stated otherwise. Inputs are not saved by this tool.
How to use this tool
Choose length and character sets, optionally exclude ambiguous characters, then generate and copy a string.
Example
Input
Length 12; lowercase and digitsOutput
k7mp2x9aq4nb (example only)What does this tool do?
A length of one is valid, and the maximum is 4096 characters. Choose lowercase, uppercase, digits or symbols; at least one group must remain enabled. The ambiguous-character option removes I, l, 1, O, 0 and o. This is helpful for values people must read aloud or transcribe, but it reduces the alphabet and therefore the number of possible strings.
Common mistakes and limitations
Randomness does not guarantee uniqueness. If an identifier must be unique in a stored collection, enforce that requirement where the collection is written. Collision risk depends on both alphabet size and the number of generated values. For standardized UUIDs, use the UUID Generator rather than inventing a UUID-shaped string.
Frequently asked questions
Will every selected character type appear?
Not necessarily. Each position is sampled from the combined alphabet without per-group requirements.
Related tools
UUID Generator
Generate random version 4 UUIDs using browser cryptography.
Open tool Security & GeneratorsPassword Generator
Create random passwords with configurable character sets.
Open tool Security & GeneratorsSHA Hash Generator
Generate SHA-256, SHA-384 or SHA-512 hex digests from UTF-8 text locally.
Open tool