TextArray
100% local

Random string generator

Generate random strings of any length from a character set you choose.

Output

Random string generator

Generate one random string or a thousand of them at once. Pick the length, pick how many you need, and choose the character set: letters and digits, letters only, lowercase, uppercase, digits, hexadecimal, or your own custom alphabet. Each string lands on its own line, so the output drops straight into a spreadsheet column, a seed file or a test fixture.

Typical uses are throwaway API keys and tokens for a local project, unique identifiers for test records, salts, nonces, cache-busting suffixes, or bulk placeholder data when you need a thousand distinct values that look plausible. Hexadecimal is handy for anything that will end up in a config file or a colour-adjacent field; lowercase-only suits identifiers that must survive case-insensitive systems like DNS or some file systems.

The custom option takes any characters you paste in, and it counts by character rather than by byte — accented letters and emoji work as single units, and duplicates you paste are collapsed automatically. The tally under the output shows how many strings you asked for, their length, the size of the character set and the approximate entropy per string in bits, so you can tell at a glance whether a value is long enough to be unguessable.

Random values come from crypto.getRandomValues with rejection sampling, so every character in the set is equally likely — no modulo bias. Generation happens entirely in your browser and nothing is uploaded, which is what makes it safe to use for values you actually intend to keep. Output is capped at 10 MB so a very large request cannot freeze the tab.

FAQ

Are the strings sent anywhere?
No. They are generated in your browser and never leave your device. Nothing is uploaded, stored or logged.
Are the strings guaranteed to be unique?
They are drawn independently, so there is no explicit uniqueness check. With a long enough string a collision is astronomically unlikely — for guaranteed-unique identifiers use the UUID generator instead.
Can I use my own alphabet?
Yes. Choose the custom character set and paste the characters you want. Accented letters and emoji count as single characters, and repeated characters are ignored.
How large can a batch be?
Up to 1000 strings of up to 4096 characters from the options, and the tool refuses anything that would exceed 10 MB of output so the page stays responsive.
Is this safe for API keys and tokens?
The randomness is cryptographically secure via crypto.getRandomValues, so the values themselves are sound. Aim for at least 128 bits of entropy — the tally tells you what you are getting.