Skip to main content
Premier SEO Services

Text tools

Random String Generator

Create random strings of letters, digits and symbols for test data, IDs and tokens, choosing the length, quantity and characters. A second tab shuffles the characters or words of your own text.

  • Runs in your browser
  • Free, no sign-up
  • Unlimited use
  • Updated 30 September 2026

Random String Generator

Set the options, then copy or download the result

  • Up to 1,000 strings of up to 1,024 characters each.
  • Shuffling keeps every character of your text; it only changes the order.

How to use the random string generator

  1. 1On Generate random strings, set the Length and How many strings.
  2. 2Pick a preset (Alphanumeric, Hex, Letters only…) or tick the character sets you want; add your own under Also use these characters.
  3. 3Tick Exclude look-alike characters if people will read or type the strings.
  4. 4Press Generate, then copy or download the list. To rearrange your own text instead, open Shuffle my text, paste it and press Shuffle text.

Alphanumeric, 10 characters, look-alikes excluded

Input
Length 10 · How many strings 3 · Uppercase + Lowercase + Digits · Exclude look-alike characters
Output
D5XFDSGVkx
m28WrweEZX
Wncy8J5Lp2

A real batch. The pool is 56 characters (62 minus I, l, 1, O, 0 and o), about 58 bits of randomness per string. Your output will differ.

Choosing character sets

Each ticked set is added to one pool, and every character of every string is drawn from that pool with equal chance:

SetCharactersPool size
UppercaseA–Z26
Lowercasea–z26
Digits0–910
Symbols! @ # $ % ^ & * ( ) - _ = + [ ] { } ; : , . ? / ~25

Hex fills the custom field with 0–9 and a–f for hexadecimal IDs; Digits only makes numeric codes such as PINs. Anything typed under Also use these characters joins the pool once, so typing aab adds just a and b.

Length, quantity and uniqueness

The panel shows the pool size and the randomness per string: length × log2(pool size). A 16-character alphanumeric string has 16 × log2(62) ≈ 95 bits, and a 32-character hex string has 32 × 4 = 128 bits. No duplicate strings guarantees every string in the batch is different. With short lengths and small pools that can be impossible (there are only 100 two-digit codes), and the tool says so rather than returning fewer strings.

Excluding similar characters

In many fonts the capital I, lowercase l, digit 1 and the pipe | look alike, as do capital O, digit 0 and lowercase o. Exclude look-alike characters removes those seven characters from the pool. Use it for codes people copy by hand, such as voucher codes or guest Wi-Fi keys; skip it for strings only machines read, where a larger pool means more randomness per character.

Shuffling an existing string

Shuffle my text rearranges text you paste instead of generating new characters. All characters mixes every character (tick Keep spaces in place to keep the word lengths), Letters inside each word mixes letters but keeps words in order (“hello world” can become “lleho dwolr”), and Word order shuffles whole words. Shuffle each line separately keeps line breaks where they are, handy for lists. Accented letters and emoji stay intact because the text is split into whole characters, not code units. For puzzle-style scrambling that keeps first and last letters, use the word scrambler.

Random strings vs passwords vs UUIDs

All three should come from a cryptographically secure generator; this tool uses crypto.getRandomValues with rejection sampling, never Math.random. The difference is format. A password generator adds rules such as “at least one symbol”. A UUID generator produces the standard 36-character format (RFC 9562) that databases expect. For encryption keys, use the encryption key generator, which outputs exact key sizes in hex or Base64.

Is anything I enter stored?

This tool runs entirely in your browser. Your text is not uploaded to our servers.

Sources

Questions about the random string generator

Can I use these strings as passwords?

The randomness is strong enough: a 16-character string from all four sets (87 characters) has about 103 bits. Store it in a password manager, and use a password generator if a site insists on specific character rules.

How do I make a random hex string?

Press the Hex preset, set the length (32 hex characters = 128 bits) and press Generate.

Can I shuffle the letters of my own text?

Yes. Open Shuffle my text, paste the text, choose what to shuffle and press Shuffle text. Press Shuffle again for another order.

Last updated 30 September 2026Maintained by Premier SEO Services

Report a problem