Skip to content
NMSnabbit.

Random String Generator

Generate secure random strings of any length and character set.

Generators Runs in your browser
16

What is a random string generator?

Need an opaque token? This generator assembles strings up to 128 characters from whichever pools you enable: lowercase, uppercase, digits, symbols. Randomness comes from crypto.getRandomValues rather than Math.random, so output is unpredictable enough for session IDs and API keys. Since generation happens on-device, a freshly minted secret exists nowhere but your screen until you paste it somewhere.

How to use the Random String Generator

  1. 1 Choose a length between 1 and 128.
  2. 2 Enable the pools you want: a-z, A-Z, 0-9, symbols.
  3. 3 Click Generate for a fresh draw.
  4. 4 Copy the string into your secret store.

What you can use it for

  • Minting API keys, tokens and session IDs.
  • Generating unique identifiers for records.
  • Producing random seed data for tests.
  • Building one-off passwords or passphrase parts.

Frequently asked questions

Are the random strings cryptographically secure?
Yes. Every character is drawn from crypto.getRandomValues, the same CSPRNG the browser uses for its own key material, which makes the output fit for tokens and secrets.
Can I exclude look-alike characters?
The “No look-alikes” switch removes l, I, O, 0 and friends. Use it for anything a human will retype; skip it for machine-only tokens, where those characters add entropy.
How long can the string be?
From 1 to 128 characters. For reference, a 22-character string over 62 alphanumerics already packs about 131 bits of entropy, more than a UUID’s 122 random bits.

Related tools

More Generators

More tools like this:

All Generators